diff options
author | Walmyr Lima <walmyr@gitlab.com> | 2019-08-30 12:30:20 +0200 |
---|---|---|
committer | Walmyr Lima <walmyr@gitlab.com> | 2019-08-30 19:00:30 +0200 |
commit | 20b45b8ce1557282e00283d74604cbfc2121ee8d (patch) | |
tree | 71debf6eb0e0e1187ecbad751823e9153f0d1347 /qa | |
parent | 5d5ba9fc7cf8f7bcfa0d91bd13390d3f3fc26a17 (diff) | |
download | gitlab-ce-20b45b8ce1557282e00283d74604cbfc2121ee8d.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.
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/settings/common.rb | 2 |
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 |