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(webkit): uncomment clearCookies test w/ right expectations
Pavel Feldman401a9167328b
diff --git a/test/defaultbrowsercontext.spec.js b/test/defaultbrowsercontext.spec.jsindex d2981bde64..d8bafc208b 100644--- a/test/defaultbrowsercontext.spec.js+++ b/test/defaultbrowsercontext.spec.js@@ -72,7 +72,7 @@ module.exports.describe = function ({ testRunner, expect, defaultBrowserOptions,sameSite: 'None',}]);});- it.fail(WEBKIT)('context.clearCookies() should work', async({page, server}) => {+ it('context.clearCookies() should work', async({page, server}) => {await page.goto(server.EMPTY_PAGE);await page.context().setCookies([{url: server.EMPTY_PAGE,@@ -85,6 +85,8 @@ module.exports.describe = function ({ testRunner, expect, defaultBrowserOptions,}]);expect(await page.evaluate('document.cookie')).toBe('cookie1=1; cookie2=2');await page.context().clearCookies();+ await page.reload();+ expect(await page.context().cookies([])).toEqual([]);expect(await page.evaluate('document.cookie')).toBe('');});});