* 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
54 lines
1.8 KiB
TypeScript
54 lines
1.8 KiB
TypeScript
import { test } from "../support/fixtures";
|
|
import { gotoAppShell } from "../support/helpers/app";
|
|
import {
|
|
expectCommandCenterToRemainAtTheTop,
|
|
expectPrimaryCommandCenterActions,
|
|
expectTightTwoLineResultSpacing,
|
|
expectVisibleKeyboardNavigationNotToScroll,
|
|
expectWorkspaceResultsToBeLimitedUntilSearch,
|
|
observeCommandCenterScroll,
|
|
openCommandCenterWithKeyboard,
|
|
} from "../support/helpers/command-center-scroll";
|
|
import { seedWorkspace } from "../support/helpers/seed-client";
|
|
|
|
test.use({
|
|
userAgent:
|
|
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 Chrome/145.0 Safari/537.36",
|
|
});
|
|
|
|
test("opening the command center keeps its first result fully visible", async ({ page }) => {
|
|
const seeded = await seedWorkspace({
|
|
repoPrefix: "command-center-scroll-",
|
|
title: "Command Center Scroll 00",
|
|
});
|
|
|
|
try {
|
|
for (let index = 1; index <= 8; index += 1) {
|
|
const created = await seeded.client.createWorkspace({
|
|
source: {
|
|
kind: "worktree",
|
|
projectId: seeded.projectId,
|
|
baseBranch: "main",
|
|
worktreeSlug: `command-center-scroll-${index}`,
|
|
},
|
|
title: `Command Center Scroll ${String(index).padStart(2, "0")}`,
|
|
});
|
|
if (!created.workspace) {
|
|
throw new Error(created.error ?? `Failed to seed workspace ${index}`);
|
|
}
|
|
}
|
|
|
|
await gotoAppShell(page);
|
|
await observeCommandCenterScroll(page);
|
|
const panel = await openCommandCenterWithKeyboard(page);
|
|
|
|
await expectCommandCenterToRemainAtTheTop(page);
|
|
await expectPrimaryCommandCenterActions(panel);
|
|
await expectVisibleKeyboardNavigationNotToScroll(page, panel);
|
|
await expectTightTwoLineResultSpacing(panel, "Command Center Scroll 00");
|
|
await expectWorkspaceResultsToBeLimitedUntilSearch(panel);
|
|
} finally {
|
|
await seeded.cleanup();
|
|
}
|
|
});
|