summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2019-06-28 11:19:01 +0500
committerSanad Liaquat <sliaquat@gitlab.com>2019-06-28 11:19:01 +0500
commit6a3a812ce01568e5968beff0b9170e0cac7f8843 (patch)
tree603c9320a42fb35f9980616c83481cb17a324e19
parentae68c7ea142b12fe179a4027b17d31ac6fb2649c (diff)
downloadgitlab-ce-qa-staging-59-fix-project-template-spec-ce.tar.gz
Use 'has_css?' because 'first' does not return booleanqa-staging-59-fix-project-template-spec-ce
-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 8cd0b6bb49c..bede3fde105 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 first('button', text: 'Collapse')
+ click_button 'Expand' unless has_css?('button', text: 'Collapse')
has_content?('Collapse')
end