From 3d0f299808937219148456d00727110ba356c22d Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 3 Nov 2026 13:49:04 +0000 Subject: [PATCH] test(ui): find the All chats entry by its test id The entry gets a badge with an accessible label when automated chats wait for the person, which changes the link name. The exact name match then found nothing whenever other specs left such chats on the shared test server. Co-Authored-By: Claude Sonnet 5.5 --- core/http/react-ui/e2e/models-cleanup.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/http/react-ui/e2e/models-cleanup.spec.js b/core/http/react-ui/e2e/models-cleanup.spec.js index f62bfeed99..b016cdee34 100644 --- a/core/http/react-ui/e2e/models-cleanup.spec.js +++ b/core/http/react-ui/e2e/models-cleanup.spec.js @@ -315,7 +315,7 @@ test.describe('Cleanup sheet - removal with an undo window', () => { test('leaving the page during the window deletes nothing and says so', async ({ page }) => { const state = await removeSafe(page) await page.keyboard.press('Escape') - await page.getByRole('link', { name: 'All chats', exact: true }).first().click() + await page.getByTestId('sidebar-all-chats').first().click() await expect(page).toHaveURL(/\/app\/chats\/all$/) await expect(page.getByText('You left the page, so 1 model was not deleted.')).toBeVisible() await page.clock.fastForward(120_000)