Skip to content

Commit

Permalink
added id for login fields
Browse files Browse the repository at this point in the history
  • Loading branch information
balaji-jr committed Oct 11, 2024
1 parent 381a8f0 commit 018e567
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ const Login: FC = () => {
</Text>

{error && (
<Text mt="xs" className={errorStyle}>
<Text mt="xs" id="login-error-message" className={errorStyle}>
{error}
</Text>
)}
<TextInput
id="username-field"
mt="sm"
className={formInput}
placeholder="J.Doe"
Expand All @@ -66,13 +67,14 @@ const Login: FC = () => {
/>
<PasswordInput
mt="lg"
id="password-field"
className={formInput}
placeholder="**********"
label="Password"
withAsterisk
{...getInputProps('password')}
/>
<Button type="submit" my="xl" className={loginBtnStyle} disabled={!isValid()}>
<Button id="login-submit" type="submit" my="xl" className={loginBtnStyle} disabled={!isValid()}>
Login
</Button>

Expand Down

0 comments on commit 018e567

Please sign in to comment.