diff options
Diffstat (limited to 'qa/qa/page/dashboard/groups.rb')
-rw-r--r-- | qa/qa/page/dashboard/groups.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/qa/qa/page/dashboard/groups.rb b/qa/qa/page/dashboard/groups.rb new file mode 100644 index 00000000000..3690f40dcfe --- /dev/null +++ b/qa/qa/page/dashboard/groups.rb @@ -0,0 +1,22 @@ +module QA + module Page + module Dashboard + class Groups < Page::Base + def prepare_test_namespace + if page.has_content?(Runtime::Namespace.name) + return click_link(Runtime::Namespace.name) + end + + click_on 'New group' + + fill_in 'group_path', with: Runtime::Namespace.name + fill_in 'group_description', + with: "QA test run at #{Runtime::Namespace.time}" + choose 'Private' + + click_button 'Create group' + end + end + end + end +end |