X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/293b52241445edf9eb86e0a0f9b63fccc3aa7fbd..4b9317289ef903fb74d681d3bf245d038be23514:/apps/workbench/test/integration_helper.rb diff --git a/apps/workbench/test/integration_helper.rb b/apps/workbench/test/integration_helper.rb index ebfbc584e8..81ea67c3c5 100644 --- a/apps/workbench/test/integration_helper.rb +++ b/apps/workbench/test/integration_helper.rb @@ -54,11 +54,17 @@ class ActionDispatch::IntegrationTest end end - @@screenshot_count = 0 + @@screenshot_count = 1 def screenshot - image_file = "./tmp/workbench-fail-#{@@screenshot_count += 1}.png" - page.save_screenshot image_file - puts "Saved #{image_file}" + image_file = "./tmp/workbench-fail-#{@@screenshot_count}.png" + begin + page.save_screenshot image_file + rescue Capybara::NotSupportedByDriverError + # C'est la vie. + else + puts "Saved #{image_file}" + @@screenshot_count += 1 + end end teardown do