test(web): disambiguate workspace rows during reconnect

This commit is contained in:
_Kerman committed 2026-09-15 17:22:49 +08:00
1 parent 992a932a16
commit f3c0ae620b
1 file changed
+3 -1
+3 -1
View File
@@ -130,7 +130,9 @@ describe('web e2e: workspace recency', () => {
await socket.close()
await expect.poll(() => releaseWorkspace !== undefined).toBe(true)
const workspaceTitle = basename(scaffold.workspaceCwd)
await page.getByRole('treeitem').filter({ has: page.getByText(workspaceTitle, { exact: true }) }).hover()
// Session titles can fall back to the workspace name while reconnect projections reload.
await page.locator('[role="treeitem"][aria-expanded]')
.filter({ has: page.getByText(workspaceTitle, { exact: true }) }).hover()
await page.getByRole('button', { name: `New session in ${workspaceTitle}` }).click()
await pick('In one list')
await expect.poll(titles).toEqual(['New Session', ...TITLES])