add playwright debug helper

This commit is contained in:
Paul Chavard 2024-09-11 10:52:51 +02:00
parent 6d752fa0d1
commit 1577fdd6af
No known key found for this signature in database

View file

@ -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