test(cookies): Remove duplicated test. (#3492)
We have the same test on line 130 https://github.com/GoogleChrome/puppeteer/blob/v1.10.0/test/cookies.spec.js#L130
This commit is contained in:
parent
52a103024b
commit
b9f2104f43
@ -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}) => {
|
it('should set a cookie on a different domain', async({page, server}) => {
|
||||||
await page.goto(server.PREFIX + '/grid.html');
|
await page.goto(server.PREFIX + '/grid.html');
|
||||||
await page.setCookie({name: 'example-cookie', value: 'best', url: 'https://www.example.com'});
|
await page.setCookie({name: 'example-cookie', value: 'best', url: 'https://www.example.com'});
|
||||||
|
Loading…
Reference in New Issue
Block a user