Skip to content

Commit

Permalink
enhance(tup-comp…): username label also say email (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar authored Oct 23, 2024
1 parent bfa2a11 commit 5511205
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('LoginComponent', () => {
value: { replace: mockNavigate },
});
const { getByLabelText, getByRole } = testRender(<LoginComponent />);
const username = getByLabelText(/Username/);
const username = getByLabelText(/Username or Email/);
const password = getByLabelText(/Password/);
const submit = getByRole('button');
await act(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ const LoginComponent: React.FC<LoginProps> = ({ className }) => {
<LoginError status={status} isError={isError} />
<FormikInput
name="username"
label="Username"
label="Username or Email"
type="text"
autoComplete="username"
autoComplete="username email"
required
/>
<FormikInput
Expand Down

0 comments on commit 5511205

Please sign in to comment.