summaryrefslogtreecommitdiff
path: root/test/support/browser_integration_test.rb
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2014-05-09 11:03:53 +0200
committerazul <azul@riseup.net>2014-05-09 11:03:53 +0200
commit726244f1c6bb72fb53a257c084dfbdf7b9c2b03c (patch)
tree1f4bf66497851265a62081124a4ff5b23d0cd09e /test/support/browser_integration_test.rb
parentcf6aa0a6c8852424e39e4785a1bd783ab475376b (diff)
parent616313b406e561b45a73e34f54fd5fc7595f9658 (diff)
Merge pull request #156 from azul/bugfix/5548-hide-signup-forms-without-js0.5.1-rc2
hide srp forms when no js is available
Diffstat (limited to 'test/support/browser_integration_test.rb')
-rw-r--r--test/support/browser_integration_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/support/browser_integration_test.rb b/test/support/browser_integration_test.rb
index 2885c3a..9cae8cb 100644
--- a/test/support/browser_integration_test.rb
+++ b/test/support/browser_integration_test.rb
@@ -60,7 +60,6 @@ class BrowserIntegrationTest < ActionDispatch::IntegrationTest
end
def save_state
- page.save_screenshot screenshot_path
File.open(logfile_path, 'w') do |test_log|
test_log.puts self.class.name
test_log.puts "========================="
@@ -76,6 +75,9 @@ class BrowserIntegrationTest < ActionDispatch::IntegrationTest
test_log.puts "------------------------"
test_log.puts `tail log/test.log -n 200`
end
+ page.save_screenshot screenshot_path
+ # some drivers do not support screenshots
+ rescue Capybara::NotSupportedByDriverError
end
end