test(vm): retry transient removal menu

This commit is contained in:
Jinwoo-H
2026-08-14 17:53:15 -04:00
parent 05d1a8d27d
commit c152befbc4
@@ -82,12 +82,16 @@ test('adopts a recipe-provisioned SSH root without creating a linked worktree',
)
).toBe(workspaceName)
await orcaPage
.getByRole('option', { name: new RegExp(workspaceName) })
.click({ button: 'right' })
await orcaPage.getByRole('menuitem', { name: 'Remove Project from Orca' }).click()
const removeDialog = orcaPage.getByRole('dialog', { name: 'Remove Project' })
await expect(removeDialog).toBeVisible()
await expect(async () => {
await orcaPage
.getByRole('option', { name: new RegExp(workspaceName) })
.click({ button: 'right' })
await orcaPage
.getByRole('menuitem', { name: 'Remove Project from Orca' })
.click({ timeout: 1_000 })
await expect(removeDialog).toBeVisible({ timeout: 1_000 })
}).toPass({ timeout: 10_000 })
await removeDialog.getByRole('button', { name: 'Remove', exact: true }).click()
await expect
.poll(