Skip to content

Commit

Permalink
chore(test): re-enable Firefox testing on CI (#5608)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfranklin committed Apr 8, 2020
1 parent 83d9d53 commit 262da92
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Expand Up @@ -21,3 +21,16 @@ jobs:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script: ./travis/chromium.sh
- node_js: "10.19.0"
dist: trusty
env:
- FIREFOX=true
- FIREFOX_HOME=$TRAVIS_HOME/firefox-latest
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "pyenv shell 3.6 && pip3 install --user mozdownload"
- "rm -rf $FIREFOX_HOME && mozdownload -t daily -d $FIREFOX_HOME/latest.tar.bz --log-level DEBUG"
- "cd $FIREFOX_HOME; tar -xvf latest.tar.bz; cd -; ls $FIREFOX_HOME/firefox/firefox"
script:
- "BINARY=$FIREFOX_HOME/firefox/firefox npm run funit"
2 changes: 2 additions & 0 deletions utils/browser/test.js
Expand Up @@ -72,6 +72,8 @@ describe('Puppeteer-Web', () => {
await session.send('Target.exposeDevToolsProtocol', {targetId: pageInfo.targetId});
await session.detach();

await new Promise(resolve => setTimeout(resolve, 1000));

// Use in-page puppeteer to create a new page and navigate it to the EMPTY_PAGE
await page.evaluate(async serverConfig => {
const puppeteer = require('puppeteer');
Expand Down

0 comments on commit 262da92

Please sign in to comment.