Skip to content

Commit

Permalink
Rspec fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie committed Feb 4, 2025
1 parent a387768 commit 47ad7f8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def then_i_see_the_check_your_answers_page
expect(page).to have_h1("Check your answers")
expect(page).to have_element(
:div,
text: "Rejecting these mentors will update the claim status to ‘claim not approved’ and move it to the clawback queue.",
text: "This will update the claim status to ‘rejected by school’ and move it to the clawback queue.",
class: "govuk-warning-text",
)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def then_i_see_the_check_your_answers_page
expect(page).to have_h1("Check your answers")
expect(page).to have_element(
:div,
text: "Rejecting these mentors will update the claim status to ‘claim not approved’ and move it to the clawback queue.",
text: "This will update the claim status to ‘rejected by school’ and move it to the clawback queue.",
class: "govuk-warning-text",
)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def then_i_see_the_errors_page
def and_i_see_the_csv_contained_claims_not_with_the_status_sampling_in_progress
expect(page).to have_h1("Upload provider response")
expect(page).to have_element(:div, text: "You need to fix 1 error related to specific rows", class: "govuk-error-summary")
expect(page).to have_element(:td, text: "Not a valid claim reference 22222222", class: "govuk-table__cell")
expect(page).to have_element(:td, text: "Enter a valid claim reference 22222222", class: "govuk-table__cell")
expect(page).to have_element(:p, text: "Only showing rows with errors", class: "govuk-!-text-align-centre")
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def then_i_see_the_errors_page
def and_i_see_the_csv_contained_invalid_claim_references
expect(page).to have_h1("Upload provider response")
expect(page).to have_element(:div, text: "You need to fix 2 errors related to specific rows", class: "govuk-error-summary")
expect(page).to have_element(:td, text: "Not a valid claim reference 11111111", class: "govuk-table__cell", count: 2)
expect(page).to have_element(:td, text: "Enter a valid claim reference 11111111", class: "govuk-table__cell", count: 2)
expect(page).to have_element(:p, text: "Only showing rows with errors", class: "govuk-!-text-align-centre")
end
end

0 comments on commit 47ad7f8

Please sign in to comment.