Skip to content

Commit

Permalink
change test assertion to check h1 tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sbpipb committed Oct 13, 2024
1 parent 531c2ca commit 1d02634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/system/annual_reports_system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
visit subject
year = 1.year.ago.year
click_on(year.to_s)
expect(page).to have_content("Diapers")
expect(page).to have_selector("h1", text: "Diapers")
expect(page).to have_content("Warehouse and Storage")
expect(page).to have_content("Adult Incontinence")
expect(page).to have_content("Other Items")
Expand Down

0 comments on commit 1d02634

Please sign in to comment.