Don't open live_debug browser in non-headless mode
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
- Add
live_debug
to a feature spec - Run the feature spec.
WEBDRIVER_HEADLESS=0 bin/rspec spec/features/whatever.rb
- When test pauses, current url should not open in your default browser
Edited by Simon Knox