Commit 0370f421 authored by Walmyr Lima's avatar Walmyr Lima

Add test for exporting issues as csv

parent f2097833
# frozen_string_literal: true
require 'securerandom'
module QA
context 'Plan' 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
issue.title = "Issue-#{SecureRandom.hex(4)}"
end
end
project.visit!
Page::Project::Menu.perform(&:click_issues)
end
it 'successfully exports issues list as CSV' 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment