-
Notifications
You must be signed in to change notification settings - Fork 3
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 #314 from ministryofjustice/feature/RST-679-email-…
…mandatory Applicant has to fill the email
- Loading branch information
Showing
12 changed files
with
18 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,7 @@ en: | |
forms/contact: | ||
attributes: | ||
email: | ||
invalid: Enter a valid email address | ||
invalid: Please enter a valid email address in the format [email protected] | ||
too_long: Email must be less than 100 characters | ||
phone: | ||
blank: Enter your phone number | ||
|
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 |
---|---|---|
|
@@ -25,7 +25,6 @@ | |
|
||
When(/^I enter a valid email address$/) do | ||
expect(step_seventeen_page.form_group[1].text).to have_content 'Email address' | ||
expect(step_seventeen_page.hint.text).to eq '(Optional)' | ||
step_seventeen_page.contact_email.set('[email protected]') | ||
common_page.continue_button.click | ||
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
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
context 'completing the form correctly' do | ||
before do | ||
fill_in :contact_email, with: '[email protected]' | ||
click_button 'Continue' | ||
end | ||
|
||
|
@@ -27,7 +28,7 @@ | |
end | ||
|
||
scenario 'I expect the fields to have specific errors' do | ||
expect(page).to have_xpath('//span[@class="error-message"]', text: 'Enter a valid email address') | ||
expect(page).to have_xpath('//span[@class="error-message"]', text: 'Please enter a valid email address in the format [email protected]') | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,7 +86,7 @@ | |
end | ||
|
||
scenario 'I expect confirmation ' do | ||
expect(page).to have_content 'ContactContact details not provided' | ||
expect(page).to have_content 'Please enter a valid email address in the format [email protected]' | ||
end | ||
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