diff options
author | Stan Hu <stanhu@gmail.com> | 2017-09-29 21:21:31 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-09-29 23:20:24 -0700 |
commit | 018771516ea360bdc02cdc6659a0fd5c881c7350 (patch) | |
tree | d55bf42974a1201b5330d4738351e6430cb30f0a /qa | |
parent | 171714c9231deb95136088ba1c0621379467de39 (diff) | |
download | gitlab-ce-018771516ea360bdc02cdc6659a0fd5c881c7350.tar.gz |
Fix Admin -> License selector for GitLab QA specs
Closes gitlab-qa#68
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/admin/menu.rb | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/qa/qa/page/admin/menu.rb b/qa/qa/page/admin/menu.rb index b01a4e10f93..f4619042e34 100644 --- a/qa/qa/page/admin/menu.rb +++ b/qa/qa/page/admin/menu.rb @@ -3,15 +3,10 @@ module QA module Admin class Menu < Page::Base def go_to_license - within_middle_menu { click_link 'License' } - end - - private - - def within_middle_menu - page.within('.nav-control') do - yield - end + link = find_link 'License' + # Click space to scroll this link into the view + link.send_keys(:space) + link.click end end end |