Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/support/page/logging.rb')
-rw-r--r--qa/qa/support/page/logging.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/qa/qa/support/page/logging.rb b/qa/qa/support/page/logging.rb
index 79ea4a8d001..2e97325aff0 100644
--- a/qa/qa/support/page/logging.rb
+++ b/qa/qa/support/page/logging.rb
@@ -79,9 +79,12 @@ module QA
super
end
+ # @param name [Symbol] name of the data_qa_selector element
+ # @param page [Class] a target page class to check existence of (class must inherit from QA::Page::Base)
+ # @param kwargs [Hash] keyword arguments to pass to Capybara finder
def click_element(name, page = nil, **kwargs)
msg = ["clicking :#{highlight_element(name)}"]
- msg << ", expecting to be at #{page.class}" if page
+ msg << "and ensuring #{page} is present" if page
log(msg.join(' '), :info)
log("with args #{kwargs}")