diff options
author | ddavison <ddavison@gitlab.com> | 2019-06-07 08:34:42 +0300 |
---|---|---|
committer | ddavison <ddavison@gitlab.com> | 2019-07-11 02:10:28 +0300 |
commit | 98fc3f23db648a16096994ba3b70d461b5b1ccf0 (patch) | |
tree | 9c90a98890950b3512708d22d7431bd80da1d478 /qa | |
parent | 390e0d8906c066996e8bbb14aa5824643f9798f8 (diff) |
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.rb | 6 |
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 |