-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): more reliable api test suite
This changes the way we enter API address/config from programmatic to full simulation of user input and adds tiny slow down between each key stroke. This should solve the problem of newly added UI feedback not engaging, and make CI both more reliable and green again. While at it, made it CI-agnostic, in preparation for move to GithubActions
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
const debug = process.env.DEBUG === 'true' | ||
const travis = process.env.TRAVIS === 'true' | ||
const ci = process.env.TRAVIS === 'true' || process.env.CI === 'true' | ||
module.exports = { | ||
launch: { | ||
dumpio: debug, // print all IO to the console | ||
headless: (!debug || travis), // show browser window when in debug mode | ||
slowMo: debug ? 50 : undefined // slow down scripted tests when debugging in non-headless mode | ||
headless: (!debug || ci), // show browser window when in debug mode | ||
slowMo: debug ? 50 : 5 // slow down scripted tests when debugging in non-headless mode | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters