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 <noreply@anthropic.com>
This commit is contained in:
Ettore Di GiacintoandClaude Sonnet 5.5 committed 2026-11-03 13:49:04 +00:00
1 parent 91be89bed0
commit 3d0f299808
1 file changed
+1 -1
@@ -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)