Adjust the timeout depending on whether percy is running or not

This commit is contained in:
Tessa Kelly 2022-04-14 11:07:01 -07:00
parent a027415740
commit 379bbb2f02
3 changed files with 2 additions and 3 deletions

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
set -euo pipefail
npx mocha script/puppeteer-tests.js --exit
npx mocha script/puppeteer-tests.js --timeout 15000 --exit

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
set -euo pipefail
npx percy exec -- mocha script/puppeteer-tests.js --exit
npx percy exec -- mocha script/puppeteer-tests.js --timeout 50000 --exit

View File

@ -12,7 +12,6 @@ const { AxePuppeteer } = require('@axe-core/puppeteer');
const assert = require('assert');
describe('UI tests', function () {
this.timeout(30000);
let page;
let server;
let browser;