Skip to content

Commit b20b423

Browse files
committed
test(reminder): stabilize reminder action e2e
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent c4352b3 commit b20b423

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

playwright/e2e/send-reminder.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ test('admin can send a reminder to a pending signer', async ({ page }) => {
6767
// The signer row renders as NcListItem with force-display-actions, so the
6868
// three-dots NcActions toggle is always visible (aria-label="Actions").
6969
await page.locator('li').filter({ hasText: 'Signer 01' }).getByRole('button', { name: 'Actions' }).click()
70-
await page.getByRole('menuitem', { name: 'Send reminder' }).click()
70+
const sendReminderAction = page.locator('[role="menuitem"], [role="dialog"] button').filter({ hasText: /^Send reminder$/i }).first()
71+
await expect(sendReminderAction).toBeVisible({ timeout: 8000 })
72+
await sendReminderAction.click()
7173

7274
// The reminder uses a different subject: "LibreSign: Changes into a file for you to sign".
7375
await waitForEmailTo(mailpit, 'signer01@libresign.coop', 'LibreSign: Changes into a file for you to sign')

0 commit comments

Comments
 (0)