lib/generic_test/setup.rb in generic_test-0.1.12 vs lib/generic_test/setup.rb in generic_test-0.1.13

- old
+ new

@@ -32,8 +32,10 @@ login_button.click login_button.wait_while(&:present?) puts "Login through #{ENV[GT_LOGIN_URL]} successful!" end +ENV['PAGE_URL'] = RestClient.get(ENV['PAGE_URL']).request.url # Check page exists +puts "Checking #{ENV['PAGE_URL']}" browser.goto ENV['PAGE_URL'] sleep 2.5 # Give a bit of time for page to load GenericTest.pages << GenericTest::Page.new(browser)