Commit 2e46a584 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix/gb/qa/fix-new-project-selectors' into 'master'

Fix new project selectors in GitLab QA

Closes gitlab-qa#57

See merge request !13012
parents 43a67584 a6ac872b
......@@ -48,7 +48,14 @@ module QA
module Main
autoload :Entry, 'qa/page/main/entry'
autoload :Menu, 'qa/page/main/menu'
autoload :Groups, 'qa/page/main/groups'
end
module Dashboard
autoload :Groups, 'qa/page/dashboard/groups'
end
module Group
autoload :Show, 'qa/page/group/show'
end
module Project
......
module QA
module Page
module Main
module Dashboard
class Groups < Page::Base
def prepare_test_namespace
return if page.has_content?(Runtime::Namespace.name)
if page.has_content?(Runtime::Namespace.name)
return click_link(Runtime::Namespace.name)
end
click_on 'New group'
......
module QA
module Page
module Group
class Show < Page::Base
def go_to_new_project
click_link 'New Project'
end
end
end
end
end
......@@ -14,13 +14,6 @@ module QA
within_user_menu { click_link 'Admin area' }
end
def go_to_new_project
within_user_menu do
find('.header-new-dropdown-toggle').click
click_link('New project')
end
end
def sign_out
within_user_menu do
find('.header-user-dropdown-toggle').click
......
......@@ -13,8 +13,8 @@ module QA
def perform
Page::Main::Menu.act { go_to_groups }
Page::Main::Groups.act { prepare_test_namespace }
Page::Main::Menu.act { go_to_new_project }
Page::Dashboard::Groups.act { prepare_test_namespace }
Page::Group::Show.act { go_to_new_project }
Page::Project::New.perform do |page|
page.choose_test_namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment