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

jira_import.rb « issue « project « page « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d3be24464ab379cc62a56202d9f45b29eac2f3cb (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
# frozen_string_literal: true

module QA
  module Page
    module Project
      module Issue
        class JiraImport < Page::Base
          view 'app/assets/javascripts/jira_import/components/jira_import_form.vue' do
            element :jira_project_dropdown
            element :jira_issues_import_button
          end

          def select_jira_project(jira_project)
            select_element(:jira_project_dropdown, jira_project)
          end

          def select_project_and_import(jira_project)
            select_jira_project(jira_project)
            click_element(:jira_issues_import_button)
          end
        end
      end
    end
  end
end