Skip to content
Snippets Groups Projects
Commit 2a347758 authored by Mark Lapierre's avatar Mark Lapierre
Browse files

Merge branch 'extract-capybata-wait-time-to-env-variable' into 'master'

Extract capybara max wait time to env var

See merge request !90988
parents 2ef0caee b1624f8f
No related branches found
No related tags found
1 merge request!90988Extract capybara max wait time to env var
Pipeline #575545957 passed
......@@ -16,7 +16,7 @@ class Browser
NotRespondingError = Class.new(RuntimeError)
CAPYBARA_MAX_WAIT_TIME = 10
CAPYBARA_MAX_WAIT_TIME = Env.max_capybara_wait_time
def self.blank_page?
['', 'about:blank', 'data:,'].include?(Capybara.current_session.driver.browser.current_url)
......
......@@ -461,6 +461,10 @@ def skip_smoke_reliable?
enabled?(ENV['QA_SKIP_SMOKE_RELIABLE'], default: false)
end
def max_capybara_wait_time
ENV.fetch('MAX_CAPYBARA_WAIT_TIME', 10).to_i
end
private
def remote_grid_credentials
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment