Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(chat-thread-list): query delete confirmation by alertdialog role

Steven Enamakel0e7c6b73cd47
diff --git a/app/test/playwright/specs/chat-thread-list-lifecycle.spec.ts b/app/test/playwright/specs/chat-thread-list-lifecycle.spec.ts
index 4ab0b4137a..456d0cab85 100644
--- a/app/test/playwright/specs/chat-thread-list-lifecycle.spec.ts
+++ b/app/test/playwright/specs/chat-thread-list-lifecycle.spec.ts
@@ -201,7 +201,7 @@ test.describe('Chat thread list — create, deep link, rename, delete', () => {
// Confirmation is required — the row must still be there while the dialog
// is open, or the "are you sure" is decorative.
- const dialog = page.getByRole('dialog', { name: 'Delete Thread', exact: true });
+ const dialog = page.getByRole('alertdialog');
await expect(dialog).toBeVisible();
await expect(page.getByTestId(`thread-row-${doomed}`)).toBeVisible();
@@ -218,7 +218,7 @@ test.describe('Chat thread list — create, deep link, rename, delete', () => {
await selectThreadAction(page, threadId, 'Delete');
- const dialog = page.getByRole('dialog', { name: 'Delete Thread', exact: true });
+ const dialog = page.getByRole('alertdialog');
await expect(dialog).toBeVisible();
await dialog.getByRole('button', { name: 'Cancel' }).click();