Welcome to mirror list, hosted at ThFree Co, Russian Federation.

show.rb « registry « project « page « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0deeb5b4ae08584ed0bd8ece9e7b2fe5c610e9f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# frozen_string_literal: true

module QA
  module Page
    module Project
      module Registry
        class Show < QA::Page::Base
          view 'app/assets/javascripts/packages_and_registries/container_registry/explorer/components/list_page/image_list_row.vue' do
            element 'details-link'
          end

          view 'app/assets/javascripts/packages_and_registries/container_registry/explorer/components/details_page/tags_list_row.vue' do
            element 'additional-actions'
            element 'single-delete-button'
            element :name
          end

          def has_registry_repository?(name)
            find_element('details-link', text: name)
          end

          def click_on_image(name)
            click_element('details-link', text: name)
          end

          def has_tag?(tag_name)
            has_element?(:name, text: tag_name)
          end

          def has_no_tag?(tag_name)
            has_no_element?(:name, text: tag_name)
          end

          def click_delete
            click_element('additional-actions')
            click_element('single-delete-button')
            find_button('Delete').click
          end
        end
      end
    end
  end
end