From 383eda474805be9e10ccd8f63f510c66f05e0c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marker=20dao=20=C2=AE?= Date: Wed, 4 Mar 2026 17:55:55 +0100 Subject: [PATCH 1/3] TestCafe: Move cursor before test --- ...-Customization (material.blue.light)_mask.png | Bin 4641 -> 0 bytes ...t-MessageEditing (fluent.blue.light)_mask.png | Bin 4560 -> 0 bytes apps/demos/utils/visual-tests/testcafe-runner.ts | 1 + e2e/testcafe-devextreme/runner.ts | 2 ++ 4 files changed, 3 insertions(+) delete mode 100644 apps/demos/testing/etalons/Chat-Customization (material.blue.light)_mask.png delete mode 100644 apps/demos/testing/etalons/Chat-MessageEditing (fluent.blue.light)_mask.png diff --git a/apps/demos/testing/etalons/Chat-Customization (material.blue.light)_mask.png b/apps/demos/testing/etalons/Chat-Customization (material.blue.light)_mask.png deleted file mode 100644 index 0cb11d76e99b636d89e5f713dd4283b0aa13b81d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4641 zcmeAS@N?(olHy`uVBq!ia0y~yV15C_3LI=ekqr_awhRn{FFaiwLn;{G9yAn^c4uHV z&~yL)|C8FfH;4LG^DGr^DE==BRGYAh5lB9h0x{Q(GDpKv_u@O4o0iR z(Kf+o+i0|5INB;6uvT&0L&0;Fj1B%p?|B(MT-FBmaGuZk^Xi^7!;iG}9|A#A>Q>L6 zv{&adJdid8rqly5hmTu4XJMH4ZjLa+4>w+*kim5z!B7lgegGSnUwDp_p=LIyt2Cp! z)qU4@Himl#E!7zg+y|QRe{psGySQ^lUu#eNJ8_p^cV*RZqgxFs+x-8&0P8uRxaQl4A<>F{22h7Bb^ zg&)e-f5><~2dM7DKWN%e1|^sKk3gx@48!*y3_&Sp`EFoZ+ZV_T)OKd?A@`l%pS1(+ zd*BI@%m2nD|MK4K__@VQ4D+9W65aCfiWXqfW?=XcgJB*}6qcw*nIk%M{xdAqck?Lu SSNRf@5IkM|T-G@yGywoyG>2~h diff --git a/apps/demos/testing/etalons/Chat-MessageEditing (fluent.blue.light)_mask.png b/apps/demos/testing/etalons/Chat-MessageEditing (fluent.blue.light)_mask.png deleted file mode 100644 index 75f57c0c716a2e2617cbc8ae834d4e1890400c40..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4560 zcmeAS@N?(olHy`uVBq!ia0y~yV15C_3LI=ekqr_awhRn{(>+}rLn;{G9<-b!;=sUc zus!?V|EFo2RUdR5DE6@W?hRDguo9$xMmC7KbCfw64x@=+G&78r1fwP5Xmv1JEsnMc zM%zZ@H4Lj;wile^WY{yQI-j8-zn_7DXHM~_%|OnB$)*ep{txC%F7{)15Da899Jr&r zrw7ElJGZ##JugGeER1Go1?TfQ3acg zg}vtA?=djcUt?hS!wzEYzYbK$P|TbE^qw?BMHpBJC { + await t.click('body', { offsetX: 0, offsetY: 0 }); await ClientFunction(() => { if (document.activeElement && document.activeElement !== document.body) { (document.activeElement as HTMLElement).blur(); diff --git a/e2e/testcafe-devextreme/runner.ts b/e2e/testcafe-devextreme/runner.ts index a738c017c205..9bfd1ae36888 100644 --- a/e2e/testcafe-devextreme/runner.ts +++ b/e2e/testcafe-devextreme/runner.ts @@ -264,6 +264,8 @@ async function main() { // @ts-expect-error ts-errors const { meta } = t.testRun.test; + await t.click('body', { offsetX: 0, offsetY: 0 }); + await ClientFunction(() => { if (document.activeElement && document.activeElement !== document.body) { (document.activeElement as HTMLElement).blur(); From 37311df46ead0c67c93760c39b502c018269c594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marker=20dao=20=C2=AE?= Date: Wed, 4 Mar 2026 20:20:02 +0100 Subject: [PATCH 2/3] feat(runners): Remove click, Add hover html with big offsets --- apps/demos/utils/visual-tests/testcafe-runner.ts | 3 ++- e2e/testcafe-devextreme/runner.ts | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/demos/utils/visual-tests/testcafe-runner.ts b/apps/demos/utils/visual-tests/testcafe-runner.ts index 908f92d2dafc..8582dd765cbc 100644 --- a/apps/demos/utils/visual-tests/testcafe-runner.ts +++ b/apps/demos/utils/visual-tests/testcafe-runner.ts @@ -105,13 +105,14 @@ async function main() { test: { // eslint-disable-next-line no-undef before: async (t: TestController) => { - await t.click('body', { offsetX: 0, offsetY: 0 }); await ClientFunction(() => { if (document.activeElement && document.activeElement !== document.body) { (document.activeElement as HTMLElement).blur(); } window.getSelection()?.removeAllRanges(); }).with({ boundTestRun: t })(); + + await t.hover('html', { offsetX: -9999, offsetY: -9999 }); }, }, }, diff --git a/e2e/testcafe-devextreme/runner.ts b/e2e/testcafe-devextreme/runner.ts index 9bfd1ae36888..cb07dd332af0 100644 --- a/e2e/testcafe-devextreme/runner.ts +++ b/e2e/testcafe-devextreme/runner.ts @@ -264,8 +264,6 @@ async function main() { // @ts-expect-error ts-errors const { meta } = t.testRun.test; - await t.click('body', { offsetX: 0, offsetY: 0 }); - await ClientFunction(() => { if (document.activeElement && document.activeElement !== document.body) { (document.activeElement as HTMLElement).blur(); @@ -274,7 +272,7 @@ async function main() { window.getSelection()?.removeAllRanges(); }).with({ boundTestRun: t })(); - await t.hover('html'); + await t.hover('html', { offsetX: -9999, offsetY: -9999 }); const [width, height] = meta?.browserSize || DEFAULT_BROWSER_SIZE; await t.resizeWindow(width, height); From 80d518124d0dbba9b23f9768f13a438abba52ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marker=20dao=20=C2=AE?= Date: Wed, 4 Mar 2026 21:11:07 +0100 Subject: [PATCH 3/3] fix(runners): Set offset 1 --- apps/demos/utils/visual-tests/testcafe-runner.ts | 2 +- e2e/testcafe-devextreme/runner.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/demos/utils/visual-tests/testcafe-runner.ts b/apps/demos/utils/visual-tests/testcafe-runner.ts index 8582dd765cbc..acc415194b90 100644 --- a/apps/demos/utils/visual-tests/testcafe-runner.ts +++ b/apps/demos/utils/visual-tests/testcafe-runner.ts @@ -112,7 +112,7 @@ async function main() { window.getSelection()?.removeAllRanges(); }).with({ boundTestRun: t })(); - await t.hover('html', { offsetX: -9999, offsetY: -9999 }); + await t.hover('html', { offsetX: 1, offsetY: 1 }); }, }, }, diff --git a/e2e/testcafe-devextreme/runner.ts b/e2e/testcafe-devextreme/runner.ts index cb07dd332af0..58c5ed323f42 100644 --- a/e2e/testcafe-devextreme/runner.ts +++ b/e2e/testcafe-devextreme/runner.ts @@ -272,7 +272,7 @@ async function main() { window.getSelection()?.removeAllRanges(); }).with({ boundTestRun: t })(); - await t.hover('html', { offsetX: -9999, offsetY: -9999 }); + await t.hover('html', { offsetX: 1, offsetY: 1 }); const [width, height] = meta?.browserSize || DEFAULT_BROWSER_SIZE; await t.resizeWindow(width, height);