Commit 6a3a812c authored by Sanad Liaquat's avatar Sanad Liaquat

Use 'has_css?' because 'first' does not return boolean

parent ae68c7ea
......@@ -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 first('button', text: 'Collapse')
click_button 'Expand' unless has_css?('button', text: 'Collapse')
has_content?('Collapse')
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