Skip to content

Commit

Permalink
Adds coverage for PDF file download
Browse files Browse the repository at this point in the history
  • Loading branch information
filipefurtad0 committed Mar 1, 2023
1 parent 3eed4e5 commit 4934af7
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,15 @@
fixture_xlsx.row(5)]
expect(downloaded_content).to eq(fixture_content)
end

it 'as pdf' do
expect(downloaded_filenames.length).to eq(0) # downloads folder should be empty
select "PDF", from: "report_format"
click_on "Go"
wait_for_download
expect(downloaded_filenames.length).to eq(1) # downloads folder should contain 1 file
expect(downloaded_filename).to match(/.*\.pdf/)
end
end
end
end

0 comments on commit 4934af7

Please sign in to comment.