Skip to content

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

test(playwright): update notification feed selectors

Steven Enamakel37c609a3828e
diff --git a/app/test/playwright/specs/notifications-feed-interaction.spec.ts b/app/test/playwright/specs/notifications-feed-interaction.spec.ts
index 928ac0f249..b3c468ef79 100644
--- a/app/test/playwright/specs/notifications-feed-interaction.spec.ts
+++ b/app/test/playwright/specs/notifications-feed-interaction.spec.ts
@@ -255,7 +255,7 @@ test.describe('Notifications — read state', () => {
item('n-system-1', 'system', 'Core restarted'),
]);
- const markAll = page.getByRole('button', { name: /mark all read/i });
+ const markAll = page.getByRole('button', { name: /mark all as read/i });
await expect(markAll).toBeEnabled({ timeout: 20_000 });
await markAll.click();
@@ -268,7 +268,7 @@ test.describe('Notifications — read state', () => {
await openFeedWith(page, [item('n-agents-1', 'agents', 'Agent finished a task', true)]);
await expect(rows(page)).toHaveCount(1, { timeout: 20_000 });
- await expect(page.getByRole('button', { name: /mark all read/i })).toBeDisabled();
+ await expect(page.getByRole('button', { name: /mark all as read/i })).toBeDisabled();
});
test('read state survives a reload', async ({ page }) => {
@@ -276,8 +276,8 @@ test.describe('Notifications — read state', () => {
// not, the feed re-accuses the user of everything they just dismissed.
await openFeedWith(page, [item('n-agents-1', 'agents', 'Agent finished a task')]);
- await page.getByRole('button', { name: /mark all read/i }).click();
- await expect(page.getByRole('button', { name: /mark all read/i })).toBeDisabled({
+ await page.getByRole('button', { name: /mark all as read/i }).click();
+ await expect(page.getByRole('button', { name: /mark all as read/i })).toBeDisabled({
timeout: 10_000,
});
@@ -310,7 +310,7 @@ test.describe('Notifications — read state', () => {
await waitForAppReady(page);
await dismissWalkthroughIfPresent(page);
- await expect(page.getByRole('button', { name: /mark all read/i })).toBeDisabled({
+ await expect(page.getByRole('button', { name: /mark all as read/i })).toBeDisabled({
timeout: 20_000,
});
});