mirror of
https://github.com/documenso/documenso.git
synced 2026-07-26 01:45:08 +10:00
chore: update test
This commit is contained in:
@@ -767,11 +767,12 @@ export function TemplateUseDialog({
|
|||||||
name="customDocumentName"
|
name="customDocumentName"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem className="ml-6">
|
<FormItem className="ml-6">
|
||||||
<FormLabel>
|
|
||||||
<Trans>Custom document name</Trans>
|
|
||||||
</FormLabel>
|
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input {...field} placeholder={_(msg`Enter a document name`)} />
|
<Input
|
||||||
|
{...field}
|
||||||
|
aria-label={_(msg`Custom document name`)}
|
||||||
|
placeholder={_(msg`Enter a document name`)}
|
||||||
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|||||||
@@ -156,8 +156,8 @@ test('[TEMPLATES]: use template', async ({ page }) => {
|
|||||||
// Get input with Email label placeholder.
|
// Get input with Email label placeholder.
|
||||||
await page.getByLabel('Email').click();
|
await page.getByLabel('Email').click();
|
||||||
await page.getByLabel('Email').fill(teamMemberUser.email);
|
await page.getByLabel('Email').fill(teamMemberUser.email);
|
||||||
await page.getByLabel('Name').click();
|
await page.getByRole('textbox', { name: 'Name', exact: true }).click();
|
||||||
await page.getByLabel('Name').fill('name');
|
await page.getByRole('textbox', { name: 'Name', exact: true }).fill('name');
|
||||||
|
|
||||||
await page.getByRole('button', { name: 'Create as draft' }).click();
|
await page.getByRole('button', { name: 'Create as draft' }).click();
|
||||||
await page.waitForURL(/\/t\/.+\/documents/);
|
await page.waitForURL(/\/t\/.+\/documents/);
|
||||||
|
|||||||
Reference in New Issue
Block a user