diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-09-30 07:37:24 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-09-30 07:37:24 +0000 |
commit | 0781e956e4a4174494aa28b62b8dfc92a92e8e84 (patch) | |
tree | 442c26f08561e25c4bc498d248c0781ea9edc409 /qa | |
parent | 0635c7273ce54b0797eeda7caf44dcd9d10b7964 (diff) | |
parent | 018771516ea360bdc02cdc6659a0fd5c881c7350 (diff) | |
download | gitlab-ce-0781e956e4a4174494aa28b62b8dfc92a92e8e84.tar.gz |
Merge branch 'sh-fix-gitlab-qa-admin' into 'master'
Fix Admin -> License selector for GitLab QA specs
Closes gitlab-qa#68
See merge request gitlab-org/gitlab-ce!14599
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 |