Explicitly disable JS with other file formats

JavaScripts drivers emulate browser behavior and browsers might download
these files instead of opening them.
This commit is contained in:
Javi Martín
2021-03-27 13:10:35 +01:00
parent 5a7298cefc
commit 1747d85c90
3 changed files with 3 additions and 3 deletions

View File

@@ -1692,7 +1692,7 @@ describe "Admin budget investments", :admin do
end
end
context "Selecting csv" do
context "Selecting csv", :no_js do
scenario "Downloading CSV file" do
admin = create(:administrator, user: create(:user, username: "Admin"))
valuator = create(:valuator, user: create(:user, username: "Valuator"))

View File

@@ -22,7 +22,7 @@ describe "Admin download user emails" do
admin_without_email.update_column(:email, nil)
end
scenario "returns the selected users segment csv file" do
scenario "returns the selected users segment csv file", :no_js do
visit admin_emails_download_index_path
within("#admin_download_emails") do

View File

@@ -165,7 +165,7 @@ describe "Legislation" do
expect(page).to have_link "Comment 3"
end
scenario "excel download" do
scenario "excel download", :no_js do
visit summary_legislation_process_path(process)
click_link "Download summary"