-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PWA-3273:Get Minimum Password Length from configuration (#4319)
* PWA-3273:Get Minimum Password Length from configuration * PWA-3273 adding updated testcases * correcting minimum password code * PWA-3341: Customet login (#4322) --------- Co-authored-by: Aanchal Pawar <[email protected]>
- Loading branch information
Showing
16 changed files
with
732 additions
and
7,554 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`errros should render properly 1`] = ` | ||
Map { | ||
"createAccountQuery" => "Create Account Mutation Error", | ||
"signInMutation" => "Sign In Mutation Error", | ||
} | ||
`; | ||
|
||
exports[`handle submit event creates an account, dispatches event, signs in, and generates a new cart 1`] = ` | ||
Object { | ||
"payload": Object { | ||
|
@@ -12,6 +19,30 @@ Object { | |
} | ||
`; | ||
|
||
exports[`handle submit event should dispatch create account event 1`] = ` | ||
Object { | ||
"payload": Object { | ||
"email": "[email protected]", | ||
"firstName": "Bender", | ||
"isSubscribed": false, | ||
"lastName": "Rodriguez", | ||
}, | ||
"type": "USER_CREATE_ACCOUNT", | ||
} | ||
`; | ||
|
||
exports[`handleSubmit should dispatch create account event 1`] = ` | ||
Object { | ||
"payload": Object { | ||
"email": "[email protected]", | ||
"firstName": "Bender", | ||
"isSubscribed": false, | ||
"lastName": "Rodriguez", | ||
}, | ||
"type": "USER_CREATE_ACCOUNT", | ||
} | ||
`; | ||
|
||
exports[`returns the correct shape 1`] = ` | ||
Object { | ||
"errors": Map { | ||
|
@@ -29,6 +60,7 @@ Object { | |
}, | ||
"isDisabled": false, | ||
"recaptchaWidgetProps": Object {}, | ||
"minimumPasswordLength":8 | ||
} | ||
`; | ||
|
||
|
@@ -49,5 +81,28 @@ Object { | |
}, | ||
"isDisabled": false, | ||
"recaptchaWidgetProps": Object {}, | ||
minimumPasswordLength:8 | ||
} | ||
`; | ||
|
||
exports[`should return properly 1`] = ` | ||
Object { | ||
"errors": Map { | ||
"createAccountQuery" => null, | ||
"signInMutation" => null, | ||
}, | ||
"handleEnterKeyPress": [Function], | ||
"handleSubmit": [Function], | ||
"initialValues": Object { | ||
"customer": Object { | ||
"email": "[email protected]", | ||
"firstname": "Gooseton", | ||
"lastname": "Jr", | ||
}, | ||
"userName": "gooseton", | ||
}, | ||
"isDisabled": false, | ||
"minimumPasswordLength": 8, | ||
"recaptchaWidgetProps": Object {}, | ||
} | ||
`; |
Oops, something went wrong.