Skip to content

Commit

Permalink
fix: print out the name of the browser during setup (#178)
Browse files Browse the repository at this point in the history
Since aegir went from `--browsers  FirefoxHeadless` to `--browser firefox` it's really easy to accidentally run tests in Chromium when you think you're running in Firefox.

The change here is just to print the name of the browser being used during the setup phase for a little sanity check.
  • Loading branch information
achingbrain authored Apr 8, 2021
1 parent 7de86a4 commit 5393493
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class Runner {
}

async run() {
let spinner = ora('Setting up browser').start()
let spinner = ora(`Setting up ${this.options.browser}`).start()

try {
// get the context
Expand All @@ -244,7 +244,7 @@ class Runner {
'Uncaught exception happened within the page. Run with --debug.'
)
})
spinner.succeed('Browser setup')
spinner.succeed(`${this.options.browser} set up`)

// bundle tests
spinner = ora('Bundling tests').start()
Expand Down Expand Up @@ -309,7 +309,7 @@ class Runner {
}

async watch() {
const spinner = ora('Setting up browser').start()
const spinner = ora(`Setting up ${this.options.browser}`).start()

const context = await this.launch()
if (this.options.before) {
Expand Down

0 comments on commit 5393493

Please sign in to comment.