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

Just a minor `it` name change.
This commit is contained in:
Darío Kondratiuk 2020-01-29 09:03:24 -03:00 committed by GitHub
parent 492304be41
commit 8ec641dc03
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';