diff --git a/spec/support/system_helpers.rb b/spec/support/system_helpers.rb index db31abd4f..3b302edd7 100644 --- a/spec/support/system_helpers.rb +++ b/spec/support/system_helpers.rb @@ -96,6 +96,13 @@ module SystemHelpers end end + def playwright_debug + page.driver.with_playwright_page do |page| + page.context.enable_debug_console! + page.pause + end + end + def pause $stderr.write 'Spec paused. Press enter to continue:' $stdin.gets