diff options
author | Sanad Liaquat <sliaquat@gitlab.com> | 2019-06-28 11:19:01 +0500 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-06-28 11:19:01 +0500 |
commit | 6a3a812ce01568e5968beff0b9170e0cac7f8843 (patch) | |
tree | 603c9320a42fb35f9980616c83481cb17a324e19 /qa | |
parent | ae68c7ea142b12fe179a4027b17d31ac6fb2649c (diff) | |
download | gitlab-ce-6a3a812ce01568e5968beff0b9170e0cac7f8843.tar.gz |
Use 'has_css?' because 'first' does not return booleanqa-staging-59-fix-project-template-spec-ce
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 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 |