From 82cccf89e1e5bdf80cfbe537dbdbbbf462946653 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 3 Jun 2024 09:38:03 +0200 Subject: [PATCH] DEV: attempts to remove using_session patch (#27292) I suspect it's not useful anymore, if it ever was, and might cause more harm than good. --- spec/support/system_helpers.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/spec/support/system_helpers.rb b/spec/support/system_helpers.rb index 22ab72411fe..77f97740ee5 100644 --- a/spec/support/system_helpers.rb +++ b/spec/support/system_helpers.rb @@ -112,13 +112,6 @@ module SystemHelpers end end - # When using parallelism, Capybara's `using_session` method can cause - # intermittent failures as two sessions can be created with the same name - # in different tests and be run at the same time. - def using_session(name, &block) - Capybara.using_session(name.to_s + self.method_name, &block) - end - def select_text_range(selector, start = 0, offset = 5) js = <<-JS const node = document.querySelector(arguments[0]).childNodes[0];