mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
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:
parent
fed9055818
commit
82cccf89e1
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user