Skip to content

Commit

Permalink
Merge pull request #3229 from DFE-Digital/fix-flakey-admin-spec
Browse files Browse the repository at this point in the history
Fix flakey test
  • Loading branch information
rjlynch authored Sep 25, 2024
2 parents 3b5429f + eb215fe commit 0daffb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/features/admin/admin_claims_filtering_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0daffb3

Please sign in to comment.