-
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.
Merge pull request #3371 from DFE-Digital/rm-ey-signup-email
[CAPT-1936] Remove email from EY practitioner magic link
- Loading branch information
Showing
8 changed files
with
11 additions
and
42 deletions.
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
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 |
---|---|---|
|
@@ -318,7 +318,7 @@ def complete_practitioner_journey( | |
|
||
create(:journey_configuration, :early_years_payment_practitioner) | ||
|
||
visit "/early-years-payment-practitioner/find-reference?skip_landing_page=true&[email protected]" | ||
visit "/early-years-payment-practitioner/find-reference?skip_landing_page=true" | ||
|
||
fill_in "Claim reference number", with: claim.reference | ||
|
||
|
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 |
---|---|---|
|
@@ -10,32 +10,10 @@ | |
) | ||
end | ||
|
||
scenario "when correct email address with different case" 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 "Enter your claim reference" | ||
fill_in "Claim reference number", with: claim.reference | ||
click_button "Submit" | ||
|
||
expect(page).to have_content "Sign in with GOV.UK One Login" | ||
end | ||
|
||
scenario "when different email address" 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 "Enter your claim reference" | ||
fill_in "Claim reference number", with: claim.reference | ||
click_button "Submit" | ||
|
||
expect(page).to have_content "This claim reference isn’t correct." | ||
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]" | ||
visit "/early-years-payment-practitioner/find-reference?skip_landing_page=true" | ||
expect(page).to have_content "Enter your claim reference" | ||
fill_in "Claim reference number", with: claim.reference | ||
click_button "Submit" | ||
|
@@ -52,7 +30,7 @@ | |
scenario "should show ineligibility page when an invalid reference is given" do | ||
when_early_years_payment_practitioner_journey_configuration_exists | ||
|
||
visit "/early-years-payment-practitioner/find-reference?skip_landing_page=true&[email protected]" | ||
visit "/early-years-payment-practitioner/find-reference?skip_landing_page=true" | ||
expect(page).to have_content "Enter your claim reference" | ||
fill_in "Claim reference number", with: "invalid" | ||
click_button "Submit" | ||
|
@@ -87,7 +65,7 @@ | |
scenario "should show ineligibility page when a submitted claim reference is given" do | ||
when_early_years_payment_practitioner_journey_configuration_exists | ||
|
||
visit "/early-years-payment-practitioner/find-reference?skip_landing_page=true&[email protected]" | ||
visit "/early-years-payment-practitioner/find-reference?skip_landing_page=true" | ||
expect(page).to have_content "Enter your claim reference" | ||
fill_in "Claim reference number", with: claim.reference | ||
click_button "Submit" | ||
|
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 |
---|---|---|
|
@@ -7,12 +7,11 @@ | |
let(:journey_session) { create(:early_years_payment_practitioner_session) } | ||
|
||
let(:reference_number) { nil } | ||
let(:email) { nil } | ||
|
||
let(:eligible_ey_provider) { create(:eligible_ey_provider) } | ||
|
||
let(:params) do | ||
ActionController::Parameters.new(claim: {reference_number:, email:}) | ||
ActionController::Parameters.new(claim: {reference_number:}) | ||
end | ||
|
||
describe "validations" do | ||
|
@@ -25,14 +24,12 @@ | |
|
||
context "when EY claim" do | ||
let(:reference_number) { claim.reference } | ||
let(:email) { claim.practitioner_email_address } | ||
|
||
let(:claim) do | ||
create( | ||
:claim, | ||
policy: Policies::EarlyYearsPayments, | ||
reference: "foo", | ||
practitioner_email_address: "[email protected]" | ||
reference: "foo" | ||
) | ||
end | ||
|
||
|
@@ -120,13 +117,11 @@ | |
|
||
context "when reference is a non EY claim" do | ||
let(:reference_number) { claim.reference } | ||
let(:email) { claim.practitioner_email_address } | ||
|
||
let(:claim) do | ||
create( | ||
:claim, | ||
reference: "foo", | ||
practitioner_email_address: "[email protected]" | ||
reference: "foo" | ||
) | ||
end | ||
|
||
|
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