Skip to content

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

TypeScript

test(gfs): use visible revoke error assertion

Alfredo Lopezc3740c5fef24
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 dcd3f74cd..44d31ee33 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
@@ -653,9 +653,7 @@ test.describe.serial('GFS Desktop linked-operator parity', () => {
.fill(`gfs://main/${operatorJourney.rootResourceId!.replace(/-/g, '')}`)
await linkDialog.getByRole('button', { name: 'Open', exact: true }).click()
- await expect(linkDialog.getByRole('alert')).toContainText('403 Forbidden', {
- timeout: 30_000,
- })
+ await expect(linkDialog.getByText(/403 Forbidden/)).toBeVisible({ timeout: 30_000 })
await expect(page.getByTestId('gfs-error-unauthorized')).toHaveCount(0)
await expect(page.getByTestId('gfs-create-folder-action')).toBeVisible()
await expect(page.getByTestId('gfs-upload-action')).toBeVisible()