Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: enable route.continue cookie tests in firefox (#35320)
Yury Semikhatsky8eea065aeb7a
diff --git a/tests/android/androidTest.ts b/tests/android/androidTest.tsindex 0a5292c763..b11ca339d6 100644--- a/tests/android/androidTest.ts+++ b/tests/android/androidTest.ts@@ -82,5 +82,6 @@ export const androidTest = baseTest.extend<PageTestFixtures & AndroidTestFixtureawait androidContext.pages()[1].close();const page = await androidContext.newPage();await run(page);+ await androidContext.clearCookies();},});diff --git a/tests/page/page-request-continue.spec.ts b/tests/page/page-request-continue.spec.tsindex 5e57bf7b2c..f65a0d0c64 100644--- a/tests/page/page-request-continue.spec.ts+++ b/tests/page/page-request-continue.spec.ts@@ -484,8 +484,7 @@ it('continue should not override cookie', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35168' },]-}, async ({ page, server, browserName }) => {- it.fixme(browserName === 'firefox', 'We currently clear all headers during interception in firefox');+}, async ({ page, server }) => {server.setRoute('/set-cookie', (request, response) => {response.writeHead(200, { 'Set-Cookie': 'foo=bar;' });response.end();diff --git a/tests/page/page-route.spec.ts b/tests/page/page-route.spec.tsindex bb74bd9977..f8ae508532 100644--- a/tests/page/page-route.spec.ts+++ b/tests/page/page-route.spec.ts@@ -168,7 +168,6 @@ it('should properly return navigation response when URL has cookies', async ({ pit('should not override cookie header', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16773' });- it.fixme(browserName === 'firefox', 'We currently clear all headers during interception in firefox');await page.goto(server.EMPTY_PAGE);await page.evaluate(() => document.cookie = 'original=value');