Skip to content

Commit

Permalink
clarification comment
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkim-det committed Aug 26, 2024
1 parent fae3744 commit a77e410
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webui/react/src/components/DeterminedAuth.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ describe('DeterminedAuth', () => {
// onFinish ends:
expect(screen.getByRole('button')).not.toBeDisabled();

// not.toBeInTheDocument is only a valid assertion after onFinish begins and ends:
expect(screen.queryByText(WEAK_PASSWORD_SUBJECT)).not.toBeInTheDocument();
expect(vi.mocked(login)).toHaveBeenLastCalledWith(
{ password: STRONG_PASSWORD, username: USERNAME },
Expand Down

0 comments on commit a77e410

Please sign in to comment.