diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-08 10:51:14 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-08 11:20:34 +0200 |
commit | 7fa14c6be981c79be8eb3de4855a10332ede3002 (patch) | |
tree | edb3554c8cc150224d3ead798aba9aa54e6d036c /qa | |
parent | bce1c50928e4885d54dd11221a9c8197a7fb1a7d (diff) | |
download | gitlab-ce-7fa14c6be981c79be8eb3de4855a10332ede3002.tar.gz |
Fix GitLab QA for new navigation enabled by defaultfix/gb/qa/new-navigation-support
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/main/menu.rb | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/qa/qa/page/main/menu.rb b/qa/qa/page/main/menu.rb index 7ce4e9009f5..74e53d86266 100644 --- a/qa/qa/page/main/menu.rb +++ b/qa/qa/page/main/menu.rb @@ -3,20 +3,19 @@ module QA module Main class Menu < Page::Base def go_to_groups - within_global_menu { click_link 'Groups' } + within_top_menu { click_link 'Groups' } end def go_to_projects - within_global_menu { click_link 'Projects' } + within_top_menu { click_link 'Projects' } end def go_to_admin_area - within_user_menu { click_link 'Admin area' } + within_top_menu { click_link 'Admin area' } end def sign_out within_user_menu do - find('.header-user-dropdown-toggle').click click_link('Sign out') end end @@ -27,17 +26,19 @@ module QA private - def within_global_menu - find('.global-dropdown-toggle').click - - page.within('.global-dropdown-menu') do + def within_top_menu + page.within('.navbar') do yield end end def within_user_menu - page.within('.navbar-nav') do - yield + within_top_menu do + find('.header-user-dropdown-toggle').click + + page.within('.dropdown-menu-nav') do + yield + end end end end |