diff --git a/packages/app-tests/e2e/document-auth/next-recipient-dictation.spec.ts b/packages/app-tests/e2e/document-auth/next-recipient-dictation.spec.ts index 28ede1f5f..3f3b47724 100644 --- a/packages/app-tests/e2e/document-auth/next-recipient-dictation.spec.ts +++ b/packages/app-tests/e2e/document-auth/next-recipient-dictation.spec.ts @@ -343,11 +343,14 @@ test('[NEXT_RECIPIENT_DICTATION]: should allow assistant to dictate next signer' await expect(page.getByRole('dialog')).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 const dialog = page.getByRole('dialog'); - await dialog.getByRole('button', { name: 'Update Recipient' }).click(); - await dialog.getByLabel('Name').fill('New Signer'); - await dialog.getByLabel('Email').fill('new.signer@example.com'); + await dialog.getByLabel('Name').fill('New Recipient'); + await dialog.getByLabel('Email').fill('new.recipient@example.com'); // Submit and verify completion await page.getByRole('button', { name: /Continue|Proceed/i }).click();