Skip to content

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

TypeScript

test(control-ui): keep the pre-creation qa-recorder assertion on the agents list (review R1-M1)

M3df5d8f7698a
diff --git a/control-ui/e2e/qa-recorder-agent-create.spec.ts b/control-ui/e2e/qa-recorder-agent-create.spec.ts
index 83c9d2cc2..238b13e4a 100644
--- a/control-ui/e2e/qa-recorder-agent-create.spec.ts
+++ b/control-ui/e2e/qa-recorder-agent-create.spec.ts
@@ -92,11 +92,9 @@ test.describe('optional QA recorder: Control UI agent creation', () => {
await cleanupAgentFlowResources(sessionRequest, { agentName })
await page.getByRole('link', { name: 'Agents', exact: true }).click()
- // TASK-229: creation lands on the new agent's detail page (header shows
- // the agent's name + route URL), not back on the agents list.
- await expect(page).toHaveURL(
- new RegExp(`\\/(?:hosts|agents)\\/${agentName}(?:\\/overview)?$`)
- )
+ // Pre-creation (review R1-M1): this is still the Agents LIST — the detail
+ // URL is only asserted after Create Agent completes below.
+ await expect(page).toHaveURL(/\/(?:hosts|agents)$/)
const createAgent = page.getByRole('button', { name: 'Create agent', exact: true })
await expect(createAgent).toBeEnabled()
@@ -128,8 +126,9 @@ test.describe('optional QA recorder: Control UI agent creation', () => {
await expect(submitAgent).toBeEnabled()
await submitAgent.click()
- // TASK-229: creation lands on the new agent's detail page (header shows
- // the agent's name + route URL), not back on the agents list.
+ // TASK-229 (review R1-M1): only NOW — after Create Agent succeeds — does
+ // the wizard land on the new agent's detail page (header leads with the
+ // display name while its data loads; no route-URL eyebrow is rendered).
await expect(page).toHaveURL(
new RegExp(`\\/(?:hosts|agents)\\/${agentName}(?:\\/overview)?$`)
)
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 03eccd756..74da16267 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.577",
+ "version": "0.1.578",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.577",
+ "version": "0.1.578",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/frontend-components": "file:../packages/frontend-components",
diff --git a/control-ui/package.json b/control-ui/package.json
index 3028160ce..1b1fd6549 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.577",
+ "version": "0.1.578",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",