summaryrefslogtreecommitdiff
path: root/qa/spec/page/logging_spec.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-06-05 08:46:30 +0000
committerRémy Coutable <remy@rymai.me>2019-06-05 08:46:30 +0000
commitac1662e67929d0b7543977a2fb303c1751d2290d (patch)
tree9701299c3333e3cda044b9ba65e888865e65b98c /qa/spec/page/logging_spec.rb
parent765917dc088bee52a3f95d76fc7f32d408a2af20 (diff)
parent5cccf313c3f473cf7104ce846d6daed86cfeb392 (diff)
downloadgitlab-ce-ac1662e67929d0b7543977a2fb303c1751d2290d.tar.gz
Merge branch 'qa-ml-fix-add-file-template-tests' into 'master'
[QA] Fix add file template tests Closes gitlab-org/quality/staging#46 and gitlab-org/quality/nightly#97 See merge request gitlab-org/gitlab-ce!28915
Diffstat (limited to 'qa/spec/page/logging_spec.rb')
-rw-r--r--qa/spec/page/logging_spec.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/qa/spec/page/logging_spec.rb b/qa/spec/page/logging_spec.rb
index 99e96b81a51..092c6a17c9c 100644
--- a/qa/spec/page/logging_spec.rb
+++ b/qa/spec/page/logging_spec.rb
@@ -64,11 +64,21 @@ describe QA::Support::Page::Logging do
it 'logs find_element with text' do
expect { subject.find_element(:element, text: 'foo') }
- .to output(/finding :element with text "foo"/).to_stdout_from_any_process
+ .to output(/finding :element with args {:text=>"foo"}/).to_stdout_from_any_process
expect { subject.find_element(:element, text: 'foo') }
.to output(/found :element/).to_stdout_from_any_process
end
+ it 'logs find_element with wait' do
+ expect { subject.find_element(:element, wait: 0) }
+ .to output(/finding :element with args {:wait=>0}/).to_stdout_from_any_process
+ end
+
+ it 'logs find_element with class' do
+ expect { subject.find_element(:element, class: 'active') }
+ .to output(/finding :element with args {:class=>\"active\"}/).to_stdout_from_any_process
+ end
+
it 'logs click_element' do
expect { subject.click_element(:element) }
.to output(/clicking :element/).to_stdout_from_any_process