summaryrefslogtreecommitdiff
path: root/qa/qa/page/main/groups.rb
blob: 169c5ebc9674148c83868d267d12679bfb4d9c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module QA
  module Page
    module Main
      class Groups < Page::Base
        def prepare_test_namespace
          return if page.has_content?(Runtime::Namespace.name)

          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