Skip to content

Commit a9b7bcf

Browse files
committed
test(webkit): expect cookies to be deleted after reload
1 parent d542ef8 commit a9b7bcf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/cookies.spec.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ module.exports.describe = function({testRunner, expect, playwright, defaultBrows
465465
});
466466

467467
describe('BrowserContext.clearCookies', function() {
468-
it.fail(WEBKIT)('should clear cookies', async({context, page, server}) => {
468+
it('should clear cookies', async({context, page, server}) => {
469469
await page.goto(server.EMPTY_PAGE);
470470
await context.setCookies([{
471471
url: server.EMPTY_PAGE,
@@ -474,6 +474,8 @@ module.exports.describe = function({testRunner, expect, playwright, defaultBrows
474474
}]);
475475
expect(await page.evaluate('document.cookie')).toBe('cookie1=1');
476476
await context.clearCookies();
477+
expect(await context.cookies()).toEqual([]);
478+
await page.reload();
477479
expect(await page.evaluate('document.cookie')).toBe('');
478480
});
479481
it('should isolate cookies when clearing', async({context, server, browser}) => {

0 commit comments

Comments
 (0)