-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EY find reference form keeps params in URL
- this means if the user causes a validation error we are able to maintain state of the email address
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,19 @@ | |
|
||
expect(page).to have_content "Track your application" | ||
end | ||
|
||
scenario "after multiple attempts should work" do | ||
when_early_years_payment_practitioner_journey_configuration_exists | ||
|
||
visit "/early-years-payment-practitioner/find-reference?skip_landing_page=true&[email protected]" | ||
expect(page).to have_content "Track your application" | ||
fill_in "Claim reference number", with: "foo" | ||
click_button "Submit" | ||
|
||
expect(page).to have_content "Track your application" | ||
fill_in "Claim reference number", with: claim.reference | ||
click_button "Submit" | ||
|
||
expect(page).to have_content "login page goes here" | ||
end | ||
end |