Skip to content

Commit

Permalink
Adjust the test (#2006)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcorrea authored Jan 8, 2025
1 parent 65121d7 commit 033e979
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/system/work_wizard_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@

click_on "Next"
expect(page).to have_css(validate_form_css)
# Force the work to have two files (readme + another file)
stub_s3 data: [FactoryBot.build(:s3_readme, work:), FactoryBot.build(:s3_file, work:)]

click_on "Previous"
expect(page).to have_css(file_upload_form_css)
Expand All @@ -96,7 +98,6 @@
click_on "Grant License and Complete"
page.driver.browser.switch_to.alert.accept
expect(page).to have_content("5-10 business days")
expect(page).to have_content(work.title)
end

context "User submits their work" do
Expand Down

0 comments on commit 033e979

Please sign in to comment.