Skip to content

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

TypeScript

test(desktop-e2e): read hostRefs, not display names, in stateless-wake scenario 0

Alfredo Lopez26ee0d012810
diff --git a/desktop-app/test/e2e-playwright/stateless-wake.test.ts b/desktop-app/test/e2e-playwright/stateless-wake.test.ts
index d94b0c954..1384168ce 100644
--- a/desktop-app/test/e2e-playwright/stateless-wake.test.ts
+++ b/desktop-app/test/e2e-playwright/stateless-wake.test.ts
@@ -168,11 +168,23 @@ function requireSuspendPrecondition(): void {
}
}
-async function visibleAgentNames(appPage: import('@playwright/test').Page): Promise<string[]> {
+// The row's <strong> is the agent's display name (e.g. "chatLLM"), which is not a
+// hostRef: an RPC token requested for it is refused, and that refusal fails the
+// status read of every Host in the same request. FleetBoard renders the hostRef
+// in `.agent-row-description` whenever it differs from the display name.
+async function visibleAgentHostRefs(appPage: import('@playwright/test').Page): Promise<string[]> {
return appPage
.locator('.agents-table-row-clickable')
.evaluateAll(rows =>
- rows.map(row => row.querySelector('strong')?.textContent?.trim() || '').filter(Boolean)
+ rows
+ .map(row =>
+ (
+ row.querySelector('.agent-row-description')?.textContent ||
+ row.querySelector('strong')?.textContent ||
+ ''
+ ).trim()
+ )
+ .filter(Boolean)
)
}
@@ -226,7 +238,7 @@ test('Scenario 0 — authenticated catalog prewarms every visible agent before s
appPage.locator('.agents-table-row-clickable', { hasText: HOST_REF }).first(),
`[stateless-wake] Expected authorized agent row for "${HOST_REF}" before any stateless chat interaction.`
).toBeVisible({ timeout: 20_000 })
- const names = await visibleAgentNames(appPage)
+ const names = await visibleAgentHostRefs(appPage)
expect(names, 'Agents page should expose at least one visible authorized agent').toContain(
HOST_REF
)