From 1d02634b7df8ea6aeec7b3e4310a9502f9f5d9b7 Mon Sep 17 00:00:00 2001 From: sbpipb Date: Sun, 13 Oct 2024 16:36:15 +0800 Subject: [PATCH] change test assertion to check h1 tag --- spec/system/annual_reports_system_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")