Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(e2e): assert root state after file deletion

Alfredo Lopezf238a7785ef8
diff --git a/desktop-app/test/e2e-playwright/gfs-desktop-operator-parity.test.ts b/desktop-app/test/e2e-playwright/gfs-desktop-operator-parity.test.ts
index 83d87707d..0c51074a9 100644
--- a/desktop-app/test/e2e-playwright/gfs-desktop-operator-parity.test.ts
+++ b/desktop-app/test/e2e-playwright/gfs-desktop-operator-parity.test.ts
@@ -394,7 +394,12 @@ test.describe.serial('GFS Desktop linked-operator parity', () => {
)
.toMatchObject({ deleted: true })
- await page.getByTestId('gfs-root-operator').click()
+ // Deleting the current file returns the visible browser to the operator
+ // root. The root breadcrumb is intentionally disabled because it is
+ // already the active location; assert that state instead of clicking a
+ // non-actionable control.
+ await expect(page.getByTestId('gfs-root-operator')).toBeDisabled()
+ await expect(page.getByTestId('gfs-view-operator')).toBeVisible()
const renamedFolderAfterChildDelete = operatorJourney.readResource(
rootId,
operatorJourney.names.renamedFolder