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.
This commit is contained in:
Joffrey JAFFEUX 2024-06-03 09:38:03 +02:00 committed by GitHub
parent fed9055818
commit 82cccf89e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,13 +112,6 @@ module SystemHelpers
end end
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) def select_text_range(selector, start = 0, offset = 5)
js = <<-JS js = <<-JS
const node = document.querySelector(arguments[0]).childNodes[0]; const node = document.querySelector(arguments[0]).childNodes[0];