diff options
Diffstat (limited to 'qa/qa/page/group/new.rb')
-rw-r--r-- | qa/qa/page/group/new.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/qa/qa/page/group/new.rb b/qa/qa/page/group/new.rb new file mode 100644 index 00000000000..50e317f0980 --- /dev/null +++ b/qa/qa/page/group/new.rb @@ -0,0 +1,24 @@ +module QA + module Page + module Group + class New < Page::Base + def create_group(group_name = nil, group_description = nil) + if page.has_content?('New Subgroup') + click_on 'New Subgroup' + else + click_on 'New group' + end + + group_name ||= Runtime::Namespace.name + group_description ||= "QA test run at #{Runtime::Namespace.name}" + + fill_in 'group_path', with: group_name + fill_in 'group_description', with: group_description + choose 'Private' + + click_button 'Create group' + end + end + end + end +end |