Commit 09ba91ed authored by Bob Van Landuyt's avatar Bob Van Landuyt

Use the new buttons for creating groups and projects in QA tests

parent 490cce63
...@@ -2,10 +2,6 @@ module QA ...@@ -2,10 +2,6 @@ module QA
module Page module Page
module Group module Group
class Show < Page::Base class Show < Page::Base
def go_to_subgroups
click_link 'Subgroups'
end
def go_to_subgroup(name) def go_to_subgroup(name)
click_link name click_link name
end end
...@@ -15,11 +11,19 @@ module QA ...@@ -15,11 +11,19 @@ module QA
end end
def go_to_new_subgroup def go_to_new_subgroup
click_on 'New Subgroup' within '.new-project-subgroup' do
find('.dropdown-toggle').click
find("li[data-value='new-subgroup']").click
end
find("input[data-action='new-subgroup']").click
end end
def go_to_new_project def go_to_new_project
click_on 'New Project' within '.new-project-subgroup' do
find('.dropdown-toggle').click
find("li[data-value='new-project']").click
end
find("input[data-action='new-project']").click
end end
end end
end end
......
...@@ -15,8 +15,6 @@ module QA ...@@ -15,8 +15,6 @@ module QA
Scenario::Gitlab::Sandbox::Prepare.perform Scenario::Gitlab::Sandbox::Prepare.perform
Page::Group::Show.perform do |page| Page::Group::Show.perform do |page|
page.go_to_subgroups
if page.has_subgroup?(Runtime::Namespace.name) if page.has_subgroup?(Runtime::Namespace.name)
page.go_to_subgroup(Runtime::Namespace.name) page.go_to_subgroup(Runtime::Namespace.name)
else else
......
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