Skip to content

Commit

Permalink
test(cookies): Remove duplicated test. (#3492)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored and aslushnikov committed Nov 4, 2018
1 parent 52a1030 commit b9f2104
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/cookies.spec.js
Expand Up @@ -158,18 +158,6 @@ module.exports.addTests = function({testRunner, expect}) {
);
});

it('should not set a cookie with blank page URL', async function({page, server}) {
let error = null;
await page.goto(server.PREFIX + '/grid.html');
try {
await page.setCookie({name: 'example-cookie', value: 'best'}, {url: 'about:blank', name: 'example-cookie-blank', value: 'best'});
} catch (e) {
error = e;
}
expect(error).toBeTruthy();
expect(error.message).toEqual(`Blank page can not have cookie "example-cookie-blank"`);
});

it('should set a cookie on a different domain', async({page, server}) => {
await page.goto(server.PREFIX + '/grid.html');
await page.setCookie({name: 'example-cookie', value: 'best', url: 'https://www.example.com'});
Expand Down

0 comments on commit b9f2104

Please sign in to comment.