Skip to content

Commit

Permalink
Updated test for Edit page to account for files uploaded via ActiveSt…
Browse files Browse the repository at this point in the history
…orage
  • Loading branch information
hectorcorrea committed Aug 15, 2022
1 parent 966581d commit 4dd8d1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/system/view_data_in_s3_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@
work.deposit_uploads.attach(file)
end

it "shows data from S3", js: true do
it "shows data from S3 on the Show and Edit pages", js: true do
visit work_path(work)
expect(page).to have_content work.title
expect(page).to have_content "us_covid_2019.csv"

expect(page).to have_content file1.filename
expect(page).to have_content file1.last_modified
Expand All @@ -54,6 +55,7 @@
expect(page).to have_content file2.last_modified
expect(page).to have_content "12.4 KB"

click_on "Edit"
expect(page).to have_content "us_covid_2019.csv"
end
end
Expand Down

0 comments on commit 4dd8d1e

Please sign in to comment.