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
This commit is contained in:
Grzegorz Bizon 2017-09-30 07:37:24 +00:00
commit 0781e956e4
1 changed files with 4 additions and 9 deletions

View File

@ -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