Skip to content

Commit

Permalink
Infrastructure: Make 'npm run regression' run as headless by default (#…
Browse files Browse the repository at this point in the history
…1888)

* Make 'npm run regression' run as headless by default

Use 'DEBUG=1 npm run regression' to opt-in to non-headless.

Fixes #1885

* Add a console message when running npm run regression to inform about DEBUG=1

* Revert "Add a console message when running npm run regression to inform about DEBUG=1"

This reverts commit addc8e7.
  • Loading branch information
zcorpan authored Oct 29, 2021
1 parent b62ebaf commit 3b62c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const queryElement = require('./util/queryElement');
const queryElements = require('./util/queryElements');

let session, geckodriver;
const firefoxArgs = process.env.CI ? ['-headless'] : [];
const firefoxArgs = process.env.DEBUG ? [] : ['-headless'];
const testWaitTime = parseInt(process.env.TEST_WAIT_TIME) || 500;
const coverageReportRun = process.env.REGRESSION_COVERAGE_REPORT;

Expand Down

0 comments on commit 3b62c9c

Please sign in to comment.