From 042fbdc3a3261fe503d2c4c6146a3a446e80ebc8 Mon Sep 17 00:00:00 2001 From: wvengen Date: Wed, 30 Oct 2013 00:49:35 +0100 Subject: [PATCH] maximise window before running tests --- spec/spec_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index adbc4248..0c036fec 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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