Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: unskip WK tests (#21033)

Max Schmitt4efa9e5ea0bf
diff --git a/tests/library/browsercontext-add-cookies.spec.ts b/tests/library/browsercontext-add-cookies.spec.ts
index 185819c661..418967e439 100644
--- a/tests/library/browsercontext-add-cookies.spec.ts
+++ b/tests/library/browsercontext-add-cookies.spec.ts
@@ -454,8 +454,7 @@ it('should allow unnamed cookies', async ({ page, context, server, browserName,
expect.soft(await page.evaluate('document.cookie')).toBe('unnamed-via-js');
});
-it('should set cookies on WebSocket', async ({ contextFactory, httpsServer, browserName, platform }) => {
- it.fixme(browserName === 'webkit' && platform === 'win32', 'WebKit on win32 does not send any cookies over the WebSocket connection');
+it('should set secure cookies on secure WebSocket', async ({ contextFactory, httpsServer }) => {
let resolveResceivedWebSocketHeaders = (headers: IncomingHttpHeaders) => { };
const receivedWebSocketHeaders = new Promise<IncomingHttpHeaders>(resolve => resolveResceivedWebSocketHeaders = resolve);
httpsServer.onceWebSocketConnection((ws, req) => resolveResceivedWebSocketHeaders(req.headers));
diff --git a/tests/library/capabilities.spec.ts b/tests/library/capabilities.spec.ts
index 5bcdcdee17..8e0048a848 100644
--- a/tests/library/capabilities.spec.ts
+++ b/tests/library/capabilities.spec.ts
@@ -168,15 +168,14 @@ it('should not crash on storage.getDirectory()', async ({ page, server, browserN
}
});
-it('navigator.clipboard should be present', async ({ page, server, browserName, browserMajorVersion }) => {
+it('navigator.clipboard should be present', async ({ page, server }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18901' });
await page.goto(server.EMPTY_PAGE);
expect(await page.evaluate(() => navigator.clipboard)).toBeTruthy();
});
-it('should set CloseEvent.wasClean to false when the server terminates a WebSocket connection', async ({ page, server, browserName, platform }) => {
+it('should set CloseEvent.wasClean to false when the server terminates a WebSocket connection', async ({ page, server }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/12353' });
- it.fixme(browserName === 'webkit' && platform === 'win32');
server.onceWebSocketConnection(socket => {
socket.terminate();
});