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

module QA
  module Page
    module Project
      module Operations
        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)
              wait(reload: false) do
                find(element_selector_css(:environment_link), text: environment_name).click
              end
            end
          end
        end
      end
    end
  end
end