mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 09:35:36 +01:00
add prelim website tests
This commit is contained in:
parent
14c0c5060a
commit
7ded5fc6c9
7 changed files with 73 additions and 11 deletions
|
|
@ -38,12 +38,17 @@ export function WebsiteAddForm({
|
|||
return (
|
||||
<Form onSubmit={handleSubmit} error={error}>
|
||||
<FormRow label={formatMessage(labels.name)}>
|
||||
<FormInput name="name" rules={{ required: formatMessage(labels.required) }}>
|
||||
<FormInput
|
||||
data-cy="input-name"
|
||||
name="name"
|
||||
rules={{ required: formatMessage(labels.required) }}
|
||||
>
|
||||
<TextField autoComplete="off" />
|
||||
</FormInput>
|
||||
</FormRow>
|
||||
<FormRow label={formatMessage(labels.domain)}>
|
||||
<FormInput
|
||||
data-cy="input-domain"
|
||||
name="domain"
|
||||
rules={{
|
||||
required: formatMessage(labels.required),
|
||||
|
|
@ -54,7 +59,7 @@ export function WebsiteAddForm({
|
|||
</FormInput>
|
||||
</FormRow>
|
||||
<FormButtons flex>
|
||||
<SubmitButton variant="primary" disabled={false}>
|
||||
<SubmitButton data-cy="button-submit" variant="primary" disabled={false}>
|
||||
{formatMessage(labels.save)}
|
||||
</SubmitButton>
|
||||
{onClose && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue