Skip to content

Don't open live_debug browser in non-headless mode

Simon Knox requested to merge psi-no-open-headless into master

What does this MR do?

Flip an if statement.

When running feature specs with WEBDRIVER_HEADLESS=false, we don't need to open the URL as it's open already (in the running browser instance).

How to test

  1. Add live_debug to a feature spec
  2. Run the feature spec. WEBDRIVER_HEADLESS=0 bin/rspec spec/features/whatever.rb
  3. When test pauses, current url should not open in your default browser
Edited by Simon Knox

Merge request reports