chore: update test

This commit is contained in:
Catalin Pit
2026-07-23 14:15:16 +03:00
parent a4e24b387d
commit c0efb4f0b3
2 changed files with 7 additions and 6 deletions
@@ -767,11 +767,12 @@ export function TemplateUseDialog({
name="customDocumentName"
render={({ field }) => (
<FormItem className="ml-6">
<FormLabel>
<Trans>Custom document name</Trans>
</FormLabel>
<FormControl>
<Input {...field} placeholder={_(msg`Enter a document name`)} />
<Input
{...field}
aria-label={_(msg`Custom document name`)}
placeholder={_(msg`Enter a document name`)}
/>
</FormControl>
<FormMessage />
</FormItem>
@@ -156,8 +156,8 @@ test('[TEMPLATES]: use template', async ({ page }) => {
// Get input with Email label placeholder.
await page.getByLabel('Email').click();
await page.getByLabel('Email').fill(teamMemberUser.email);
await page.getByLabel('Name').click();
await page.getByLabel('Name').fill('name');
await page.getByRole('textbox', { name: 'Name', exact: true }).click();
await page.getByRole('textbox', { name: 'Name', exact: true }).fill('name');
await page.getByRole('button', { name: 'Create as draft' }).click();
await page.waitForURL(/\/t\/.+\/documents/);