summaryrefslogtreecommitdiff
path: root/qa/spec
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2019-05-13 11:14:15 +0000
committerSanad Liaquat <sliaquat@gitlab.com>2019-05-13 11:14:15 +0000
commit3061eee6ed00708225931bab566c20d91a06a5c0 (patch)
tree7a10a24c34ffc9bc05512c516c84b0d32fc71f48 /qa/spec
parentdacc96460e215e427781f8461de4e0bc68a9b8cc (diff)
parentf00286bc0c5aa01431cc2b337e9db374e68a8395 (diff)
downloadgitlab-ce-3061eee6ed00708225931bab566c20d91a06a5c0.tar.gz
Merge branch 'qa-ml-fix-branches-test' into 'master'
Fix E2E test - wait for branches to not be present See merge request gitlab-org/gitlab-ce!27805
Diffstat (limited to 'qa/spec')
-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