summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalmyr Lima <walmyr@gitlab.com>2019-08-30 12:30:20 +0200
committerWalmyr Lima <walmyr@gitlab.com>2019-08-30 19:00:30 +0200
commit20b45b8ce1557282e00283d74604cbfc2121ee8d (patch)
tree71debf6eb0e0e1187ecbad751823e9153f0d1347
parent5d5ba9fc7cf8f7bcfa0d91bd13390d3f3fc26a17 (diff)
downloadgitlab-ce-qa/e2e-test-custom-email.tar.gz
Improve tests speedqa/e2e-test-custom-email
Before this change, by default the expand button would only be clicked after 10 seconds, but now it will only wait for 1 sec.
-rw-r--r--qa/qa/page/settings/common.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/page/settings/common.rb b/qa/qa/page/settings/common.rb
index bede3fde105..2d7b41c76e1 100644
--- a/qa/qa/page/settings/common.rb
+++ b/qa/qa/page/settings/common.rb
@@ -11,7 +11,7 @@ module QA
within_element(element_name) do
# Because it is possible to click the button before the JS toggle code is bound
wait(reload: false) do
- click_button 'Expand' unless has_css?('button', text: 'Collapse')
+ click_button 'Expand' unless has_css?('button', text: 'Collapse', wait: 1)
has_content?('Collapse')
end