Skip to content

Commit

Permalink
fix: tup-712 "Username" not "User Name" (#453)
Browse files Browse the repository at this point in the history
* fix: tup-712 "Username" not "User Name"

* test: tup-712 "Username" not "User Name"
  • Loading branch information
wesleyboar authored Apr 29, 2024
1 parent 48e1a11 commit 2473e1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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(/User Name/);
const username = getByLabelText(/Username/);
const password = getByLabelText(/Password/);
const submit = getByRole('button');
await act(async () => {
Expand All @@ -50,7 +50,7 @@ describe('LoginComponent', () => {
const { getByLabelText, getByRole, getAllByText } = testRender(
<LoginComponent />
);
const username = getByLabelText(/User Name/);
const username = getByLabelText(/Username/);
const password = getByLabelText(/Password/);
const submit = getByRole('button');
await act(async () => {
Expand Down Expand Up @@ -79,7 +79,7 @@ describe('LoginComponent', () => {
const { getByLabelText, getByRole, getAllByText } = testRender(
<LoginComponent />
);
const username = getByLabelText(/User Name/);
const username = getByLabelText(/Username/);
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 @@ -118,7 +118,7 @@ const LoginComponent: React.FC<LoginProps> = ({ className }) => {
<LoginError status={status} isError={isError} />
<FormikInput
name="username"
label="User Name"
label="Username"
type="text"
autoComplete="username"
required
Expand Down

0 comments on commit 2473e1b

Please sign in to comment.