Skip to content

Commit 638154d

Browse files
marker-daomarker dao ®
andauthored
e2e: Move cursor before test to avoid unexpected hover (#32790)
Co-authored-by: marker dao ® <youdontknow@marker-dao.eth>
1 parent 4e82d5a commit 638154d

4 files changed

Lines changed: 3 additions & 1 deletion

File tree

Binary file not shown.
Binary file not shown.

apps/demos/utils/visual-tests/testcafe-runner.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ async function main() {
111111
}
112112
window.getSelection()?.removeAllRanges();
113113
}).with({ boundTestRun: t })();
114+
115+
await t.hover('html', { offsetX: 1, offsetY: 1 });
114116
},
115117
},
116118
},

e2e/testcafe-devextreme/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ async function main() {
272272
window.getSelection()?.removeAllRanges();
273273
}).with({ boundTestRun: t })();
274274

275-
await t.hover('html');
275+
await t.hover('html', { offsetX: 1, offsetY: 1 });
276276

277277
const [width, height] = meta?.browserSize || DEFAULT_BROWSER_SIZE;
278278
await t.resizeWindow(width, height);

0 commit comments

Comments
 (0)