Skip to content

Commit

Permalink
test(firefox): run puppeteer-firefox tests in browser contexts (#3887)
Browse files Browse the repository at this point in the history
This patch starts running all Puppeteer-Firefox tests in separate
browser contexts.
  • Loading branch information
aslushnikov committed Feb 1, 2019
1 parent bd34755 commit fd67fa7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion experimental/puppeteer-firefox/package.json
Expand Up @@ -8,7 +8,7 @@
"node": ">=8.9.4"
},
"puppeteer": {
"firefox_revision": "2a2b2cd2c5e5b7062e7ede93b235a5a062d4dc9a"
"firefox_revision": "ca4758c475a9c05dc88b7b8811fbbb7e5acf95b4"
},
"scripts": {
"install": "node install.js",
Expand Down
6 changes: 4 additions & 2 deletions experimental/puppeteer-firefox/test/puppeteer.spec.js
Expand Up @@ -63,11 +63,13 @@ module.exports.addTests = ({testRunner, product, puppeteer}) => testRunner.descr

describe('Page', () => {
beforeEach(async state => {
state.page = await state.browser.newPage();
state.context = await state.browser.createIncognitoBrowserContext();
state.page = await state.context.newPage();
});

afterEach(async state => {
await state.page.close();
await state.context.close();
state.context = null;
state.page = null;
});

Expand Down

0 comments on commit fd67fa7

Please sign in to comment.