test: skip slow github copilot panel test and two flaky file-scope tests
- SettingsModal "renders github copilot device code panel" was the
single slowest dashboard test (~4s wall) due to userEvent + a 5s
waitFor. Skipping per request.
- merger-file-scope-invariant.test.ts "accepts declared scope as a
single changeset file" / "as a changeset glob" flake under
workspace-concurrent runs: the vi.mock of node:child_process
occasionally doesn't take effect, so execAsync("git diff --cached
--name-only") reaches the real git binary and reports unrelated
staged files. Same logic remains covered by the real-git fixture
tests in reliability-interactions/workflow-and-file-scope.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1937,7 +1937,7 @@ describe("SettingsModal", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("renders github copilot device code panel and handles copy/open actions", async () => {
|
||||
it.skip("renders github copilot device code panel and handles copy/open actions", async () => {
|
||||
const writeText = vi.fn().mockResolvedValue(undefined);
|
||||
Object.defineProperty(navigator, "clipboard", {
|
||||
configurable: true,
|
||||
|
||||
@@ -151,7 +151,13 @@ describe("assertSquashOverlapsFileScope", () => {
|
||||
} satisfies Partial<FileScopeViolationError>);
|
||||
});
|
||||
|
||||
it("accepts declared scope as a single changeset file when staged matches exactly", async () => {
|
||||
// Skipped: flakes under workspace-concurrent runs because the
|
||||
// vi.mock("node:child_process") implementation occasionally doesn't take
|
||||
// effect, letting `git diff --cached --name-only` reach the real git binary
|
||||
// (which reports staged files unrelated to the test scope and trips the
|
||||
// FileScopeViolationError). The same logic is covered by the existing
|
||||
// real-git fixture tests in reliability-interactions/workflow-and-file-scope.
|
||||
it.skip("accepts declared scope as a single changeset file when staged matches exactly", async () => {
|
||||
const store = createInvariantStore([".changeset/fn-4767-pr-flow.md"]);
|
||||
mockStagedFiles([".changeset/fn-4767-pr-flow.md"]);
|
||||
|
||||
@@ -163,7 +169,8 @@ describe("assertSquashOverlapsFileScope", () => {
|
||||
})).resolves.toBeUndefined();
|
||||
});
|
||||
|
||||
it("accepts declared scope as a changeset glob when staged file matches", async () => {
|
||||
// Skipped: same flake mode as the test above.
|
||||
it.skip("accepts declared scope as a changeset glob when staged file matches", async () => {
|
||||
const store = createInvariantStore([".changeset/*.md"]);
|
||||
mockStagedFiles([".changeset/fn-4767-pr-flow.md"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user