Skip to content

Commit

Permalink
change test inputs with a mind for black box testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson committed Jan 3, 2025
1 parent fc7807d commit 66022ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ describe('ChangePassword tests', () => {
screen.getByText('A valid password must be at least 8 characters long'),
).toBeInTheDocument()
await user.clear(newPasswordField)
await user.type(newPasswordField, '12345678')
await user.type(newPasswordField, '1234567$')
expect(
screen.getByText('A valid password must include letters'),
).toBeInTheDocument()
await user.clear(newPasswordField)
await user.type(newPasswordField, 'abcdefgh')
await user.type(newPasswordField, 'abcdefg$')
expect(
screen.getByText('A valid password must include digits (0-9)'),
).toBeInTheDocument()
Expand Down

0 comments on commit 66022ea

Please sign in to comment.