generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 21
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 #603 from hackforla/update-validation-schemas
Update validation schemas
- Loading branch information
Showing
5 changed files
with
40 additions
and
57 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 |
---|---|---|
|
@@ -39,15 +39,4 @@ describe('<SignInForm />', () => { | |
expect(emailInput).toHaveValue('[email protected]'); | ||
expect(passwordInput).toHaveValue('password'); | ||
}); | ||
|
||
it('should display error text', async () => { | ||
const {emailInput, passwordInput, submitButton} = prepare(); | ||
|
||
fireEvent.change(emailInput, {target: {value: 'invalid'}}); | ||
fireEvent.change(passwordInput, {target: {value: 'password'}}); | ||
fireEvent.click(submitButton); | ||
|
||
await screen.findByText('email must be a valid email'); | ||
await screen.findByText(/password must contain/i); | ||
}); | ||
}); |
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