mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 13:45:36 +03:00
test(browsercontext): cookies() is a BrowserContext function (#741)
This commit is contained in:
parent
492304be41
commit
a65bf4179f
@ -30,7 +30,7 @@ module.exports.describe = function ({ testRunner, expect, defaultBrowserOptions,
|
||||
delete state.browser;
|
||||
delete state.page;
|
||||
});
|
||||
it('page.cookies() should work', async({page, server}) => {
|
||||
it('context.cookies() should work', async({page, server}) => {
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
await page.evaluate(() => {
|
||||
document.cookie = 'username=John Doe';
|
||||
|
Loading…
Reference in New Issue
Block a user