дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-28 05:22:23 +02:00
test(diff): align navigation fixtures with the initial difference (#6505)
#6471 opens a diff at its first change when the caller gives no line, so the cross-file navigation test clicked Next once too often before checking the boundary hint. The tests that navigate from the top now pass an explicit starting line. Closes #6500 Co-authored-by: principalwater <[email protected]>
Цей коміт міститься в:
1 джерело
e49c634064
коміт
8f1e95e5a2
1 file changed
+1
-1
@@ -273,7 +273,6 @@ test("maximizes a diff preview tab and restores its previous layout", async ({ w
|
||||
test("continues between changed files from toolbar buttons and the keymap", async ({ workbench: page }) => {
|
||||
const toolbar = await openChain(page);
|
||||
const selected = page.getByRole("tablist", { name: "Editor tabs" }).locator('[aria-selected="true"]');
|
||||
await toolbar.getByRole("button", { name: "Next Difference", exact: true }).click();
|
||||
await expect(toolbar).toContainText("1 of 1 differences");
|
||||
await toolbar.getByRole("button", { name: "Next Difference", exact: true }).click();
|
||||
await expect(page.getByRole("status").filter({ hasText: "Press again to go to the next file" })).toBeVisible();
|
||||
@@ -359,6 +358,7 @@ for (const reducedMotion of ["reduce", "no-preference"] as const) {
|
||||
for (const i of [100, 400, 700]) right[i] = `const changed${i} = ${i};`;
|
||||
await openDiff({
|
||||
path: "/dev/acme-api/navigation.ts",
|
||||
line: 0, // Start before the first difference to exercise every navigation step.
|
||||
left: { type: "text", text: lines.join("\n"), label: "Before" },
|
||||
right: { type: "text", text: right.join("\n"), label: "After" },
|
||||
});
|
||||
|
||||
Reference in new issue
Заблокувати користувача