Skip to content

Commit

Permalink
test: Change cookies unsecure test title (puppeteer#4187)
Browse files Browse the repository at this point in the history
I think we wanted to say "HTTP Website" there.
  • Loading branch information
kblok authored and aslushnikov committed Mar 20, 2019
1 parent 0d0e620 commit 72866e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/cookies.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}) => {
Expand Down

0 comments on commit 72866e9

Please sign in to comment.