Skip to content

Commit 575bebe

Browse files
marker-daomarker dao ®
andauthored
e2e: Move cursor before test to avoid unexpected hover (#32791)
Co-authored-by: marker dao ® <youdontknow@marker-dao.eth>
1 parent 3c943b8 commit 575bebe

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
@@ -113,6 +113,8 @@ async function main() {
113113
}
114114
window.getSelection()?.removeAllRanges();
115115
}).with({ boundTestRun: t })();
116+
117+
await t.hover('html', { offsetX: 1, offsetY: 1 });
116118
},
117119
},
118120
},

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)