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

export_as_csv_spec.rb « issue « 2_plan « browser_ui « features « specs « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3914dbf4cd2d0192a759e204f4ab46a53e33d1a9 (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
# frozen_string_literal: true

module QA
  RSpec.describe 'Plan', :reliable do
    describe 'Issues list' do
      let(:project) do
        Resource::Project.fabricate_via_api! do |project|
          project.name = 'project-to-test-export-issues-as-csv'
        end
      end

      before do
        Flow::Login.sign_in

        2.times do
          Resource::Issue.fabricate_via_api! do |issue|
            issue.project = project
          end
        end

        project.visit!
        Page::Project::Menu.perform(&:click_issues)
      end

      it 'successfully exports issues list as CSV', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1210' do
        Page::Project::Issue::Index.perform do |index|
          index.click_export_as_csv_button

          expect(index.export_issues_modal).to have_content('2 issues selected')

          index.click_export_issues_button

          expect(index).to have_content(/Your CSV export has started. It will be emailed to (\S+) when complete./)
        end
      end
    end
  end
end