mirror of
https://github.com/stablyai/orca.git
synced 2026-10-22 08:03:37 +00:00
test(vm): retry transient removal menu
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user