diff --git a/spec/features/admin/admin_claims_filtering_spec.rb b/spec/features/admin/admin_claims_filtering_spec.rb index 888a2ab4a4..1efc8f778b 100644 --- a/spec/features/admin/admin_claims_filtering_spec.rb +++ b/spec/features/admin/admin_claims_filtering_spec.rb @@ -49,10 +49,10 @@ click_on "View claims" - expect(page.find("table")).to have_content("ECP").exactly(10).times - expect(page.find("table")).to have_content("TSLR").exactly(7).times - expect(page.find("table")).to have_content("STRI").exactly(2).times - expect(page.find("table")).to have_content("FE").exactly(2).times + expect(page).to have_selector("td[text()='ECP']", count: 10) + expect(page).to have_selector("td[text()='TSLR']", count: 7) + expect(page).to have_selector("td[text()='STRI']", count: 2) + expect(page).to have_selector("td[text()='FE']", count: 2) click_on "View claims" select "Student Loans", from: "policy"