дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +02:00
test(e2e): fix the main branch's failing layout and caret key specs (#7945)
caretKeysEverywhere bound "Control+H", which is not a key stroke, so Move Caret Left was never bound; it passed on macOS only because Ctrl+H deletes backward there. compactMode expects the 30px status bar, toolbarCustomization measures the first visible item after the Center group, the commit check spec accepts a sub-pixel clip, and codeLensLayout waits for the editor to measure.
Цей коміт міститься в:
1 джерело
ed57059cad
коміт
166ef2dffa
5 files changed
+16
-6
No files matched your search
@@ -42,8 +42,12 @@ test("a Code Vision row fits CJK hints at a large editor font", async ({ workben
|
||||
// The editor measured the taller row: the lines below it still sit beside their numbers.
|
||||
const line = editor.locator(".cm-line", { hasText: "class OrderController" });
|
||||
const number = editor.locator(".cm-lineNumbers .cm-gutterElement", { hasText: /^8$/ });
|
||||
const [lineTop, numberTop] = [(await line.boundingBox())!.y, (await number.boundingBox())!.y];
|
||||
expect(Math.abs(lineTop - numberTop)).toBeLessThanOrEqual(1);
|
||||
await expect
|
||||
.poll(async () => {
|
||||
const [lineBox, numberBox] = await Promise.all([line.boundingBox(), number.boundingBox()]);
|
||||
return Math.abs(lineBox!.y - numberBox!.y);
|
||||
})
|
||||
.toBeLessThanOrEqual(1);
|
||||
});
|
||||
|
||||
test("a Code Vision row keeps its height at the default editor font", async ({ workbench: page }) => {
|
||||
|
||||
Reference in new issue
Заблокувати користувача