Files
openproject/spec/support/selenium_hub_waiter.rb
T
Jan Sandbrink 0b87e7543f Freeze string literals in specs
Rolling out frozen string literals further by freezing all
string literals in core specs.
2025-05-05 09:29:55 +02:00

12 lines
264 B
Ruby

# frozen_string_literal: true
module SeleniumHubWaiter
module_function
# frontend not fast enough to bind click handlers on buttons?
# only happens when using the Selenium Hub
def wait
sleep 1 if ENV.fetch("SELENIUM_GRID_URL", "").present?
end
end