Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

test(vcs): use document-start shortcut in large diff checks (#2401)

l0ng-ai9f16141e6ea6
diff --git a/e2e/diff.spec.ts b/e2e/diff.spec.ts
index 0b65b4e95..1a83f6ac2 100644
--- a/e2e/diff.spec.ts
+++ b/e2e/diff.spec.ts
@@ -292,7 +292,9 @@ test.describe("10,000-line files", () => {
await expectCount(page, path, 42);
// The first change is a single edited identifier.
await page.locator(".cm-editor.cm-merge-b .cm-content").first().click();
- await page.keyboard.press("Meta+ArrowUp");
+ // ⌘↑ opens the Navigation Bar; ⌘Home keeps document navigation in the diff.
+ await page.keyboard.press("Meta+Home");
+ await expect(page.locator(".cm-editor.cm-merge-b .cm-content").first()).toBeFocused();
await page.keyboard.press("F7");
await expect(counter(page)).toHaveText("1 of 42 differences");
if (opts.mode !== "unified") {