summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorddavison <ddavison@gitlab.com>2019-06-06 22:34:42 -0700
committerddavison <ddavison@gitlab.com>2019-07-10 16:10:28 -0700
commit98fc3f23db648a16096994ba3b70d461b5b1ccf0 (patch)
tree9c90a98890950b3512708d22d7431bd80da1d478 /qa
parent390e0d8906c066996e8bbb14aa5824643f9798f8 (diff)
downloadgitlab-ce-98fc3f23db648a16096994ba3b70d461b5b1ccf0.tar.gz
Fix Main::Menu locators
Fix the locators to not use a regex Add requirement
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/main/menu.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/qa/page/main/menu.rb b/qa/qa/page/main/menu.rb
index 9c99e43d4c0..c98d85d7911 100644
--- a/qa/qa/page/main/menu.rb
+++ b/qa/qa/page/main/menu.rb
@@ -12,7 +12,7 @@ module QA
view 'app/views/layouts/header/_default.html.haml' do
element :navbar, required: true
element :user_avatar, required: true
- element :user_menu, '.dropdown-menu' # rubocop:disable QA/ElementWithPattern
+ element :user_menu, required: true
end
view 'app/views/layouts/nav/_dashboard.html.haml' do
@@ -82,7 +82,7 @@ module QA
private
def within_top_menu
- page.within('.qa-navbar') do
+ within_element(:navbar) do
yield
end
end
@@ -91,7 +91,7 @@ module QA
within_top_menu do
click_element :user_avatar
- page.within('.dropdown-menu') do
+ within_element(:user_menu) do
yield
end
end