Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions apps/demos/utils/visual-tests/testcafe-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ async function main() {
}
window.getSelection()?.removeAllRanges();
}).with({ boundTestRun: t })();

await t.hover('html', { offsetX: 1, offsetY: 1 });
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduces a hard-coded hover offset (1,1). To improve readability/maintainability, consider using a named constant for the offset (or add a short comment for why this specific coordinate is chosen) so future changes don’t unintentionally reintroduce cursor-related flakiness.

Copilot uses AI. Check for mistakes.
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ async function main() {
window.getSelection()?.removeAllRanges();
}).with({ boundTestRun: t })();

await t.hover('html');
await t.hover('html', { offsetX: 1, offsetY: 1 });
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hover offset values (1,1) are magic numbers here. Consider introducing a small named constant (e.g., a MOUSE_RESET_OFFSET) or adding a brief inline comment explaining why these specific offsets are required (e.g., avoiding edge/scrollbar coordinates) to make the intent clearer and avoid accidental changes later.

Copilot uses AI. Check for mistakes.

const [width, height] = meta?.browserSize ?? DEFAULT_BROWSER_SIZE;
await t.resizeWindow(width, height);
Expand Down
Loading