diff --git a/spec/system/annual_reports_system_spec.rb b/spec/system/annual_reports_system_spec.rb index 44975b2143..8dbc872a82 100644 --- a/spec/system/annual_reports_system_spec.rb +++ b/spec/system/annual_reports_system_spec.rb @@ -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")