summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/deployments/environments/index.rb
blob: 598e1f2681539ea39f2b469b2ce1b3de520d6a54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module QA
  module Page
    module Project
      module Deployments
        module Environments
          class Index < Page::Base
            view 'app/assets/javascripts/environments/components/environment_item.vue' do
              element :environment_link
            end

            def click_environment_link(environment_name)
              click_element(:environment_link, text: environment_name)
            end
          end
        end
      end
    end
  end
end