mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 01:55:36 +01:00
add more website tests, support functions, login
This commit is contained in:
parent
e5c19482ab
commit
72090d778b
11 changed files with 169 additions and 59 deletions
|
|
@ -43,7 +43,7 @@ export function LoginForm() {
|
|||
<Form className={styles.form} onSubmit={handleSubmit} error={getMessage(error)}>
|
||||
<FormRow label={formatMessage(labels.username)}>
|
||||
<FormInput
|
||||
data-cy="input-username"
|
||||
data-test="input-username"
|
||||
name="username"
|
||||
rules={{ required: formatMessage(labels.required) }}
|
||||
>
|
||||
|
|
@ -52,7 +52,7 @@ export function LoginForm() {
|
|||
</FormRow>
|
||||
<FormRow label={formatMessage(labels.password)}>
|
||||
<FormInput
|
||||
data-cy="input-password"
|
||||
data-test="input-password"
|
||||
name="password"
|
||||
rules={{ required: formatMessage(labels.required) }}
|
||||
>
|
||||
|
|
@ -61,7 +61,7 @@ export function LoginForm() {
|
|||
</FormRow>
|
||||
<FormButtons>
|
||||
<SubmitButton
|
||||
data-cy="button-submit"
|
||||
data-test="button-submit"
|
||||
className={styles.button}
|
||||
variant="primary"
|
||||
disabled={isPending}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue