Skip to content

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

TypeScript

test(e2e): disambiguate visible replace-file trigger

Alfredo Lopez4be1b13e20d4
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 ed81213e1..43d0000db 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
@@ -329,7 +329,7 @@ test.describe.serial('GFS Desktop linked-operator parity', () => {
})
await expect(dialog).toBeVisible()
- await uploadVisibleFile(page, dialog.getByRole('button', { name: 'Replace file' }), {
+ await uploadVisibleFile(page, dialog.locator('button').filter({ hasText: 'Replace file' }), {
name: operatorJourney.names.renamedFile,
mimeType: 'text/markdown',
buffer: Buffer.from('# nested version two\n', 'utf8'),