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)