-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10207 required email changes to prod (#33567)
- Loading branch information
1 parent
eb23afa
commit 0e27439
Showing
9 changed files
with
12 additions
and
206 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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import environment from 'platform/utilities/environment'; | ||
import { | ||
testNumberOfErrorsOnSubmit, | ||
testNumberOfErrorsOnSubmitForWebComponents, | ||
|
@@ -16,12 +15,7 @@ const pageTitle = 'Your point of contact'; | |
|
||
let data = {}; | ||
|
||
let expectedNumberOfWebComponentFields = 2; | ||
|
||
// test on dev before making this change | ||
if (environment.isDev() || environment.isLocalhost()) { | ||
expectedNumberOfWebComponentFields = 3; | ||
} | ||
const expectedNumberOfWebComponentFields = 3; | ||
|
||
testNumberOfWebComponentFields( | ||
formConfig, | ||
|
@@ -35,11 +29,6 @@ testNumberOfWebComponentFields( | |
// veteran with email - point of contact should not be required | ||
let expectedNumberOfWebComponentErrors = 0; | ||
|
||
// test on dev before making this change | ||
if (environment.isDev() || environment.isLocalhost()) { | ||
expectedNumberOfWebComponentErrors = 0; | ||
} | ||
|
||
data = { | ||
preparerType: 'veteran', | ||
veteranEmailAddress: '[email protected]', | ||
|
@@ -55,12 +44,7 @@ testNumberOfErrorsOnSubmitForWebComponents( | |
); | ||
|
||
// veteran without email - point of contact should be required | ||
expectedNumberOfWebComponentErrors = 0; | ||
|
||
// test on dev before making this change | ||
if (environment.isDev() || environment.isLocalhost()) { | ||
expectedNumberOfWebComponentErrors = 1; | ||
} | ||
expectedNumberOfWebComponentErrors = 1; | ||
|
||
data = { | ||
preparerType: 'veteran', | ||
|
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