* fix(ci): skip unrelated required checks cleanly Matrix jobs had to start no-op runners to preserve interpolated required-check names. Static named jobs let GitHub report genuine skipped conclusions while keeping those names stable. * fix(ci): gate changes to install patching script * fix(ci): route cross-package test contracts narrowly * fix(ci): keep routed contracts merge-blocking * fix(server): exclude nested test utilities from builds * fix(ci): cover app-owned native and browser domains * refactor(ci): align tests with runtime domains Own browser specs, desktop specs, and Electron-only app code by stable directories so PR routing does not depend on filename conventions. Keep desktop integration coverage inside the required desktop check. * fix(ci): keep routing and desktop suites isolated The routing regression must run before dependency installation, and desktop Vitest must not collect Playwright-owned specs. * fix(ci): isolate desktop e2e runtime * perf(test): isolate Playwright workers * perf(test): parallelize Playwright within specs * fix(test): keep Playwright file scheduling * fix(test): share dynamic Metro fixture * fix(test): preserve own-host restart fixtures * fix(ci): preserve routed contracts after rebase * Stabilize Playwright wheel-scroll assertions
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import { expect, test } from "../support/fixtures";
|
|
import { allowPermission, waitForPermissionPrompt } from "../support/helpers/permissions";
|
|
import { openAgentRoute, seedMockAgentWorkspace } from "../support/helpers/mock-agent";
|
|
|
|
test.describe("Codex plan approval", () => {
|
|
test("shows a single actionable plan panel and removes it after implementation starts", async ({
|
|
page,
|
|
}) => {
|
|
test.setTimeout(180_000);
|
|
|
|
const session = await seedMockAgentWorkspace({
|
|
repoPrefix: "codex-plan-approval-",
|
|
title: "Codex plan approval e2e",
|
|
initialPrompt: "Emit synthetic plan approval.",
|
|
});
|
|
|
|
try {
|
|
await openAgentRoute(page, session);
|
|
|
|
await waitForPermissionPrompt(page, 120_000);
|
|
|
|
await expect(page.getByTestId("permission-plan-card")).toHaveCount(1);
|
|
await expect(page.getByTestId("timeline-plan-card")).toHaveCount(0);
|
|
|
|
await allowPermission(page);
|
|
|
|
await expect(page.getByTestId("permission-plan-card")).toHaveCount(0, {
|
|
timeout: 30_000,
|
|
});
|
|
await expect(page.getByTestId("timeline-plan-card")).toHaveCount(0);
|
|
} finally {
|
|
await session.cleanup();
|
|
}
|
|
});
|
|
});
|