mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
test: Change cookies unsecure test title (#4187)
I think we wanted to say "HTTP Website" there.
This commit is contained in:
parent
0d0e620405
commit
72866e9467
@ -260,15 +260,15 @@ module.exports.addTests = function({testRunner, expect}) {
|
||||
const [cookie] = await page.cookies(SECURE_URL);
|
||||
expect(cookie.secure).toBe(true);
|
||||
});
|
||||
it('should be able to set unsecure cookie for HTTPS website', async({page, server}) => {
|
||||
it('should be able to set unsecure cookie for HTTP website', async({page, server}) => {
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
const SECURE_URL = 'http://example.com';
|
||||
const HTTP_URL = 'http://example.com';
|
||||
await page.setCookie({
|
||||
url: SECURE_URL,
|
||||
url: HTTP_URL,
|
||||
name: 'foo',
|
||||
value: 'bar',
|
||||
});
|
||||
const [cookie] = await page.cookies(SECURE_URL);
|
||||
const [cookie] = await page.cookies(HTTP_URL);
|
||||
expect(cookie.secure).toBe(false);
|
||||
});
|
||||
it('should set a cookie on a different domain', async({page, server}) => {
|
||||
|
Loading…
Reference in New Issue
Block a user