Commit 20b45b8c authored by Walmyr Lima's avatar Walmyr Lima

Improve tests speed

Before this change, by default the expand button would only be
clicked after 10 seconds, but now it will only wait for 1 sec.
parent 5d5ba9fc
...@@ -11,7 +11,7 @@ module QA ...@@ -11,7 +11,7 @@ module QA
within_element(element_name) do within_element(element_name) do
# Because it is possible to click the button before the JS toggle code is bound # Because it is possible to click the button before the JS toggle code is bound
wait(reload: false) do 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') has_content?('Collapse')
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment