diff --git a/test/support/dummy_rails_integration.rb b/test/support/dummy_rails_integration.rb index c1604b16..9f617988 100644 --- a/test/support/dummy_rails_integration.rb +++ b/test/support/dummy_rails_integration.rb @@ -19,7 +19,7 @@ def screenshot! path = "tmp/#{name}.png" full_path = File.join(GEM_PATH, path) FileUtils.mkdir_p(File.dirname(full_path)) - page.driver.render(full_path, full: true) + page.driver.save_screenshot(full_path, full: true) STDERR.puts "Screenshot saved to #{path}" end