* feat(app): expand command center actions Keep command center navigation stable by revealing only clipped rows without smooth centering. Prioritize a concise default list while making workspace, Git, pane, and creation actions searchable through the existing contribution and action-policy paths. * test(app): search for query-only command action Add project is intentionally absent from the unfiltered command center. Exercise the overlay flow through search before selecting it.
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import { test } from "./fixtures";
|
|
import { gotoAppShell } from "./helpers/app";
|
|
import { openCommandCenter } from "./helpers/command-center";
|
|
import {
|
|
createTerminalFromCommandCenter,
|
|
expectDefaultWorkspaceActions,
|
|
expectWorkspaceActionsAvailableThroughSearch,
|
|
makeWorkspacePrimaryGitActionCommit,
|
|
openWorkspaceFromCommandCenter,
|
|
} from "./helpers/command-center-workspace-actions";
|
|
import { seedWorkspace } from "./helpers/seed-client";
|
|
|
|
test("workspace actions use the Git policy and dispatch through the active workspace", async ({
|
|
page,
|
|
}) => {
|
|
const title = "Command Center Workspace Actions";
|
|
const seeded = await seedWorkspace({
|
|
repoPrefix: "command-center-workspace-actions-",
|
|
title,
|
|
});
|
|
|
|
try {
|
|
await makeWorkspacePrimaryGitActionCommit(seeded);
|
|
await gotoAppShell(page);
|
|
await openWorkspaceFromCommandCenter(page, seeded, title);
|
|
|
|
const panel = await openCommandCenter(page);
|
|
await expectDefaultWorkspaceActions(panel);
|
|
await expectWorkspaceActionsAvailableThroughSearch(panel);
|
|
await createTerminalFromCommandCenter(page, panel);
|
|
} finally {
|
|
await seeded.cleanup();
|
|
}
|
|
});
|