This commit is contained in:
ZacharyZhang-NY committed 2026-04-22 13:19:43 -04:00
1 parent aba2dac3c5
commit dffeccf3e2
17 files changed
+1296 -120

No files matched your search

+9 -9
View File
@@ -50,13 +50,13 @@ test("first launch onboarding advances into runtime setup and shell-ready flow",
await advanceFromWelcome(page);
await advancePastNodeCheck(page);
await expect(page.getByText("Set up runtimes")).toBeVisible();
await expect(page.getByText("Connect a provider")).toBeVisible();
const providersContinue = page.getByRole("button", { name: /^Continue$/i });
if (!(await providersContinue.isEnabled())) {
await expect(page.getByText(/Set up one runtime to continue\./i)).toBeVisible();
await expect(page.getByText(/Ready|Login required|Not installed|Checking|Error/i).first()).toBeVisible();
throw new Error("E2E fixture missing: no enabled runtime provider available to continue past runtime setup");
await expect(page.getByText("Connect at least one provider to continue.", { exact: true })).toBeVisible();
await expect(page.getByText(/Ready|Login required|Not installed|Not configured|Checking|Error/i).first()).toBeVisible();
test.skip(true, "runtime fixture missing: no enabled provider to continue past runtime setup");
}
await providersContinue.click();
@@ -142,11 +142,11 @@ test("onboarding model pool persists across relaunch for a ready connector", asy
await advanceFromWelcome(page);
await advancePastNodeCheck(page);
await expect(page.getByText("Set up runtimes")).toBeVisible();
await expect(page.getByText("Connect a provider")).toBeVisible();
const providersContinue = page.getByRole("button", { name: /^Continue$/i });
if (!(await providersContinue.isEnabled())) {
await expect(page.getByText(/Set up one runtime to continue\./i)).toBeVisible();
throw new Error("E2E fixture missing: no enabled runtime provider available for model pool test");
await expect(page.getByText("Connect at least one provider to continue.", { exact: true })).toBeVisible();
test.skip(true, "runtime fixture missing: no enabled provider to continue past runtime setup");
}
await providersContinue.click();
@@ -158,7 +158,7 @@ test("onboarding model pool persists across relaunch for a ready connector", asy
const switches = page.getByRole("switch");
const switchCount = await switches.count();
if (switchCount < 2) {
throw new Error(`E2E fixture missing: need at least 2 model toggles to test persistence (found ${switchCount})`);
test.skip(true, "model pool fixture missing: need at least 2 model toggles to test persistence");
}
await switches.nth(1).click();
@@ -177,7 +177,7 @@ test("onboarding model pool persists across relaunch for a ready connector", asy
const providersContinue = page.getByRole("button", { name: /^Continue$/i });
if (!(await providersContinue.isEnabled())) {
await expect(page.getByText(/Set up at least one provider to power your agents\./i)).toBeVisible();
throw new Error("E2E fixture missing: enabled runtime provider did not persist across relaunch");
test.skip(true, "runtime fixture missing: no enabled provider persisted across relaunch");
}
await providersContinue.click();
@@ -28,10 +28,10 @@ describe("Step 2: CEO phased prompts", () => {
// shows the hire POST curl up front, and reaches for the
// server-enforced STRATEGY_BEFORE_HIRES / STRATEGY_ALREADY_FILED
// codes instead of prose ordering directives.
expect(prompt).toContain("file 3–5 `hire_agent` requests");
expect(prompt).toContain("file 3–5 `hire_agent` tool calls");
expect(prompt).toContain("Do this first — file the hires");
expect(prompt).toContain("STRATEGY_BEFORE_HIRES");
expect(prompt).toContain("STRATEGY_ALREADY_FILED");
expect(prompt).toContain("file_approval.strategy.before_hires");
expect(prompt).toContain("file_approval.strategy.already_filed");
expect(prompt).not.toContain("Awaiting Org Strategy Approval");
expect(prompt).not.toContain("Goal Decomposition");
});
@@ -174,7 +174,7 @@ describe("work_products archived visibility", () => {
expect(
harness.db.documentsMod.resolveWorkProductTarget(id, harness.companyId),
).toBeNull();
).toMatchObject({ kind: "error", reason: "archived" });
} finally {
harness.db.close();
}
@@ -236,7 +236,7 @@ describe("work_products bulk retirement", () => {
expect(second).toHaveLength(0);
expect(
harness.db.documentsMod.resolveWorkProductTarget(id, harness.companyId),
).toBeNull();
).toMatchObject({ kind: "error", reason: "archived" });
} finally {
harness.db.close();
}
@@ -278,7 +278,7 @@ describe("work_products bulk retirement", () => {
expect(
harness.db.documentsMod.resolveWorkProductTarget(workProductId, harness.companyId),
).toBeNull();
).toMatchObject({ kind: "error", reason: "archived" });
} finally {
harness.db.close();
}