-
Notifications
You must be signed in to change notification settings - Fork 667
e2e: Move cursor before test #32787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 26_1
Are you sure you want to change the base?
e2e: Move cursor before test #32787
Changes from all commits
be35554
5ac7b26
b6822e5
6ebc311
23cc069
0f70914
cc51ae8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 }); | ||
|
||
|
|
||
| const [width, height] = meta?.browserSize ?? DEFAULT_BROWSER_SIZE; | ||
| await t.resizeWindow(width, height); | ||
|
|
||
There was a problem hiding this comment.
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.