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/page/base.rb')
-rw-r--r--qa/qa/page/base.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/qa/qa/page/base.rb b/qa/qa/page/base.rb
index ab83da7dacf..616c12bd900 100644
--- a/qa/qa/page/base.rb
+++ b/qa/qa/page/base.rb
@@ -6,7 +6,7 @@ module QA
module Page
class Base
prepend Support::Page::Logging
- prepend Mobile::Page::Base if QA::Runtime::Env.remote_mobile_device_name
+ prepend Mobile::Page::Base if QA::Runtime::Env.mobile_layout?
include Capybara::DSL
include Scenario::Actable
@@ -234,13 +234,14 @@ module QA
page.validate_elements_present! if page
end
- # Uses capybara to locate and click an element instead of `click_element`.
- # This can be used when it's not possible to add a QA selector but we still want to log the click
+ # Uses capybara to locate and interact with an element instead of using `*_element`.
+ # This can be used when it's not possible to add a QA selector but we still want to log the action
#
# @param [String] method the capybara method to use
# @param [String] locator the selector used to find the element
- def click_via_capybara(method, locator)
- page.public_send(method, locator)
+ # @param [Hash] **kwargs optional arguments
+ def act_via_capybara(method, locator, **kwargs)
+ page.public_send(method, locator, **kwargs)
end
def fill_element(name, content)