A platform for community discussion. Free, open, simple.
DEV: introduces `pause_test` system tests helper (#19378)
Joffrey JAFFEUXae409658969d
diff --git a/spec/support/system_helpers.rb b/spec/support/system_helpers.rbindex 4cb66747a9d..ba02fd0a7e5 100644--- a/spec/support/system_helpers.rb+++ b/spec/support/system_helpers.rb@@ -1,6 +1,16 @@# frozen_string_literal: true+require "highline/import"module SystemHelpers+ def pause_test+ result =+ ask(+ "\n\e[33mTest paused, press enter to resume, type `d` and press enter to start debugger.\e[0m",+ )+ byebug if result == "d" # rubocop:disable Lint/Debugger+ self+ end+def sign_in(user)visit "/session/#{user.encoded_username}/become"end