mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
chore: update tests
This commit is contained in:
@ -343,11 +343,14 @@ test('[NEXT_RECIPIENT_DICTATION]: should allow assistant to dictate next signer'
|
|||||||
await expect(page.getByRole('dialog')).toBeVisible();
|
await expect(page.getByRole('dialog')).toBeVisible();
|
||||||
await expect(page.getByText('The next recipient to sign this document will be')).toBeVisible();
|
await expect(page.getByText('The next recipient to sign this document will be')).toBeVisible();
|
||||||
|
|
||||||
|
// Update next recipient
|
||||||
|
await page.locator('button').filter({ hasText: 'Update Recipient' }).click();
|
||||||
|
await page.waitForTimeout(1000);
|
||||||
|
|
||||||
// Use dialog context to ensure we're targeting the correct form fields
|
// Use dialog context to ensure we're targeting the correct form fields
|
||||||
const dialog = page.getByRole('dialog');
|
const dialog = page.getByRole('dialog');
|
||||||
await dialog.getByRole('button', { name: 'Update Recipient' }).click();
|
await dialog.getByLabel('Name').fill('New Recipient');
|
||||||
await dialog.getByLabel('Name').fill('New Signer');
|
await dialog.getByLabel('Email').fill('new.recipient@example.com');
|
||||||
await dialog.getByLabel('Email').fill('new.signer@example.com');
|
|
||||||
|
|
||||||
// Submit and verify completion
|
// Submit and verify completion
|
||||||
await page.getByRole('button', { name: /Continue|Proceed/i }).click();
|
await page.getByRole('button', { name: /Continue|Proceed/i }).click();
|
||||||
|
|||||||
Reference in New Issue
Block a user