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): expect cookies to be deleted after reload
Pavela9b7bcf905e2
diff --git a/test/cookies.spec.js b/test/cookies.spec.jsindex 6a67ccb27b..d7d08c0b68 100644--- a/test/cookies.spec.js+++ b/test/cookies.spec.js@@ -465,7 +465,7 @@ module.exports.describe = function({testRunner, expect, playwright, defaultBrows});describe('BrowserContext.clearCookies', function() {- it.fail(WEBKIT)('should clear cookies', async({context, page, server}) => {+ it('should clear cookies', async({context, page, server}) => {await page.goto(server.EMPTY_PAGE);await context.setCookies([{url: server.EMPTY_PAGE,@@ -474,6 +474,8 @@ module.exports.describe = function({testRunner, expect, playwright, defaultBrows}]);expect(await page.evaluate('document.cookie')).toBe('cookie1=1');await context.clearCookies();+ expect(await context.cookies()).toEqual([]);+ await page.reload();expect(await page.evaluate('document.cookie')).toBe('');});it('should isolate cookies when clearing', async({context, server, browser}) => {