maximise window before running tests
This commit is contained in:
parent
7779c15dc9
commit
042fbdc3a3
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ RSpec.configure do |config|
|
|||
config.before(:each) do
|
||||
DatabaseCleaner.strategy = (example.metadata[:js] ? :truncation : :transaction)
|
||||
DatabaseCleaner.start
|
||||
# maximise window so that buttons can be found on popups
|
||||
page.driver.browser.manage.window.maximize
|
||||
end
|
||||
config.after(:each) do
|
||||
DatabaseCleaner.clean
|
||||
|
|
Loading…
Reference in a new issue