test(browsercontext): cookies() is a BrowserContext function (#741)

This commit is contained in:
Darío Kondratiuk 2020-01-29 14:39:43 -03:00 committed by GitHub
parent 492304be41
commit a65bf4179f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';