Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(desktop): select the L chat from the sidebar preview
Alfredo Lopezbcd097f9231a
diff --git a/desktop-app/test/e2e-playwright/chat-open-ab.spec.ts b/desktop-app/test/e2e-playwright/chat-open-ab.spec.tsindex aa2e6c36b..74a9707ec 100644--- a/desktop-app/test/e2e-playwright/chat-open-ab.spec.ts+++ b/desktop-app/test/e2e-playwright/chat-open-ab.spec.ts@@ -626,7 +626,16 @@ if (}}))}- const selected = report.catalogs[0]!.chats[0]!+ // L times the selected chat's sidebar row, so it must be a measured chat inside the preview.+ await expect(page!.locator(rows(HOSTS[0])).first()).toBeVisible()+ const previewIds = await page!+ .locator(rows(HOSTS[0]))+ .evaluateAll(elements => elements.map(element => element.getAttribute('data-chat-id')))+ const selected = report.catalogs[0]!.chats.find(chat => previewIds.includes(chat.id))+ if (!selected)+ throw new Error(+ `precondition: L needs a measured ${HOSTS[0]} chat inside the sidebar preview.`+ )await openChat(page!, HOSTS[0], hostLabels[HOSTS[0]]!, selected)await expect.poll(() => page!.evaluate(host => window.clerum.chat.getLastActive(host), HOSTS[0]))