From fc7a6aeab2d93cb4cd4e66e951035becc4c924e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marker=20dao=20=C2=AE?= Date: Wed, 4 Mar 2026 17:59:47 +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 4530 -> 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 ad11390da9539f32c6b334496c4ac96e59acbfd4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4530 zcmeAS@N?(olHy`uVBq!ia0y~yV15C_3LI=ekqr_awhRn{m7Xq+Ar*{o58lpXc3@yO zn1Ax0cKqkdj9jeG6<^+24phhx%nKw8u7jAxqs-B87)=DDnPIdf7%dS;tAo*MakNb^ z+BO<(7!Jl(@pq2=mve*}esovoGc;WP%E9nK^ql3-()YX!AEKmyQI@cd5lB9hd#F37 zn2F*4(>asD3NPY`&HfL8@Afi2sGbYduxB|N!w-q?_ZS%7uLK)}Wac1ao~s4*fDEqU q@!4REz|oGzXh&nTqcL1N8sC{y?PcxPhjMHK6-%D3elF{r5}E+bCZa?D diff --git a/apps/demos/utils/visual-tests/testcafe-runner.ts b/apps/demos/utils/visual-tests/testcafe-runner.ts index 7c3de38edf7c..c3f5a4913aa2 100644 --- a/apps/demos/utils/visual-tests/testcafe-runner.ts +++ b/apps/demos/utils/visual-tests/testcafe-runner.ts @@ -107,6 +107,7 @@ async function main() { hooks: { test: { 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(); diff --git a/e2e/testcafe-devextreme/runner.ts b/e2e/testcafe-devextreme/runner.ts index c02c6e2788d2..ed62c60c8aa8 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 f04bcd83403c83f3ecce81eca49aa21f78abd622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marker=20dao=20=C2=AE?= Date: Wed, 4 Mar 2026 20:20:38 +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 c3f5a4913aa2..0b35bb8c7bd4 100644 --- a/apps/demos/utils/visual-tests/testcafe-runner.ts +++ b/apps/demos/utils/visual-tests/testcafe-runner.ts @@ -107,13 +107,14 @@ async function main() { hooks: { test: { 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 ed62c60c8aa8..6abe7338597c 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 6f5948c26e47cb73042ff8f32c49b79120025ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marker=20dao=20=C2=AE?= Date: Wed, 4 Mar 2026 21:11:28 +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 0b35bb8c7bd4..86e2a2c59560 100644 --- a/apps/demos/utils/visual-tests/testcafe-runner.ts +++ b/apps/demos/utils/visual-tests/testcafe-runner.ts @@ -114,7 +114,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 6abe7338597c..ca09e90702d5 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);