summaryrefslogtreecommitdiff
path: root/qa/spec/page
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2018-12-28 12:39:07 -0500
committerMark Lapierre <mlapierre@gitlab.com>2018-12-28 13:15:46 -0500
commit441dee4c315cb728e61ae5e5e42f36d782ef8e29 (patch)
tree368761bfe175e0c01633560fb0d29005f4e20ba4 /qa/spec/page
parente962baf4417e59cbb2ef8621ef0662f93f180f92 (diff)
downloadgitlab-ce-441dee4c315cb728e61ae5e5e42f36d782ef8e29.tar.gz
Log text_filter arg of find_element
Diffstat (limited to 'qa/spec/page')
-rw-r--r--qa/spec/page/logging_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/qa/spec/page/logging_spec.rb b/qa/spec/page/logging_spec.rb
index a54ff424f53..f108a5ca318 100644
--- a/qa/spec/page/logging_spec.rb
+++ b/qa/spec/page/logging_spec.rb
@@ -47,6 +47,15 @@ describe QA::Support::Page::Logging do
it 'logs find_element' do
expect { subject.find_element(:element) }
+ .to output(/finding :element/).to_stdout_from_any_process
+ expect { subject.find_element(:element) }
+ .to output(/found :element/).to_stdout_from_any_process
+ end
+
+ it 'logs find_element with text_filter' do
+ expect { subject.find_element(:element, 'foo') }
+ .to output(/finding :element with text_filter "foo"/).to_stdout_from_any_process
+ expect { subject.find_element(:element, 'foo') }
.to output(/found :element/).to_stdout_from_any_process
end