Commit a6ac872b authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Fix new project selectors in GitLab QA

parent b7673124f30a
......@@ -48,7 +48,14 @@ module Page
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 @@ def go_to_admin_area
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 @@ def name=(name)
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