summaryrefslogtreecommitdiff
path: root/qa/spec/page
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-05-07 12:43:10 +1000
committerMark Lapierre <mlapierre@gitlab.com>2019-05-07 12:43:10 +1000
commitf00286bc0c5aa01431cc2b337e9db374e68a8395 (patch)
tree5c90d07e39e92f8f2281d014f30884aafc11177a /qa/spec/page
parent99a4e97389eb7e9e5a8122a336d7541b46097339 (diff)
downloadgitlab-ce-f00286bc0c5aa01431cc2b337e9db374e68a8395.tar.gz
Add branch_name qa selectorqa-ml-fix-branches-test
Uses the branch_name element to find a branch with a specific name, instead of using a dynamic CSS class that can't be validated by the sanity selector test
Diffstat (limited to 'qa/spec/page')
-rw-r--r--qa/spec/page/logging_spec.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/qa/spec/page/logging_spec.rb b/qa/spec/page/logging_spec.rb
index 707a7ff6d98..99e96b81a51 100644
--- a/qa/spec/page/logging_spec.rb
+++ b/qa/spec/page/logging_spec.rb
@@ -93,7 +93,14 @@ describe QA::Support::Page::Logging do
allow(page).to receive(:has_no_css?).and_return(true)
expect { subject.has_no_element?(:element) }
- .to output(/has_no_element\? :element returned true/).to_stdout_from_any_process
+ .to output(/has_no_element\? :element \(wait: 2\) returned: true/).to_stdout_from_any_process
+ end
+
+ it 'logs has_no_element? with text' do
+ allow(page).to receive(:has_no_css?).and_return(true)
+
+ expect { subject.has_no_element?(:element, text: "more text") }
+ .to output(/has_no_element\? :element with text \"more text\" \(wait: 2\) returned: true/).to_stdout_from_any_process
end
it 'logs has_text?' do