* 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
53 lines
1.9 KiB
TypeScript
53 lines
1.9 KiB
TypeScript
import { buildHostAgentDetailRoute } from "@/utils/host-routes";
|
|
import { expect, test } from "../support/fixtures";
|
|
import { createIdleAgent } from "../support/helpers/archive-tab";
|
|
import { expectComposerVisible } from "../support/helpers/composer";
|
|
import { seedWorkspace } from "../support/helpers/seed-client";
|
|
import { getServerId } from "../support/helpers/server-id";
|
|
import { waitForWorkspaceTabsVisible } from "../support/helpers/workspace-tabs";
|
|
|
|
test.describe("Workspace pane mounting", () => {
|
|
test("opening the first split pane keeps the existing agent composer mounted", async ({
|
|
page,
|
|
}) => {
|
|
test.setTimeout(90_000);
|
|
const serverId = getServerId();
|
|
|
|
const workspace = await seedWorkspace({ repoPrefix: "pane-remount-" });
|
|
|
|
try {
|
|
const agent = await createIdleAgent(workspace.client, {
|
|
cwd: workspace.repoPath,
|
|
workspaceId: workspace.workspaceId,
|
|
title: `pane-remount-${Date.now()}`,
|
|
});
|
|
|
|
await page.goto(buildHostAgentDetailRoute(serverId, agent.id, agent.workspaceId));
|
|
await page.waitForURL(
|
|
(url) => url.pathname.includes("/workspace/") && !url.searchParams.has("open"),
|
|
{ timeout: 60_000 },
|
|
);
|
|
await waitForWorkspaceTabsVisible(page);
|
|
await expectComposerVisible(page);
|
|
|
|
const originalComposer = await page
|
|
.getByTestId("message-input-root")
|
|
.filter({ visible: true })
|
|
.first()
|
|
.elementHandle();
|
|
expect(originalComposer).not.toBeNull();
|
|
|
|
await page.getByRole("button", { name: "Split pane right" }).first().click();
|
|
await expect(page.getByTestId("message-input-root").filter({ visible: true })).toHaveCount(
|
|
2,
|
|
{ timeout: 30_000 },
|
|
);
|
|
|
|
const originalStillConnected = await originalComposer!.evaluate((node) => node.isConnected);
|
|
expect(originalStillConnected).toBe(true);
|
|
} finally {
|
|
await workspace.cleanup();
|
|
}
|
|
});
|
|
});
|