test: enable route.continue cookie tests in firefox (#35320)

This commit is contained in:
Yury Semikhatsky 2025-03-21 11:35:06 -07:00 committed by GitHub
parent b452896d4a
commit 8eea065aeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 3 deletions

View File

@ -82,5 +82,6 @@ export const androidTest = baseTest.extend<PageTestFixtures & AndroidTestFixture
await androidContext.pages()[1].close();
const page = await androidContext.newPage();
await run(page);
await androidContext.clearCookies();
},
});

View File

@ -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();

View File

@ -168,7 +168,6 @@ it('should properly return navigation response when URL has cookies', async ({ p
it('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');