I was wondering if it’s possible to rename the default file that’s created when using save_and_open_page in Capybara for the Scenario name?
I’ve created the following so far:
After do |scenario|
if(scenario.failed?)
save_and_open_page
end
end
Cheers!
save_and_open_pagecan take an optional filename parameter: