Skip to content

A platform for community discussion. Free, open, simple.

DEV: attempts to remove using_session patch (#27292)

Joffrey JAFFEUX82cccf89e1e5
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];