Skip to content

e2e: Move cursor before test to avoid unexpected hover#32787

Merged
marker-dao merged 8 commits intoDevExpress:26_1from
marker-dao:26_1_chat_tagbox_fix_flucky_tests
Mar 5, 2026
Merged

e2e: Move cursor before test to avoid unexpected hover#32787
marker-dao merged 8 commits intoDevExpress:26_1from
marker-dao:26_1_chat_tagbox_fix_flucky_tests

Conversation

@marker-dao
Copy link
Contributor

No description provided.

@marker-dao marker-dao requested a review from a team March 4, 2026 15:09
@marker-dao marker-dao self-assigned this Mar 4, 2026
@marker-dao marker-dao force-pushed the 26_1_chat_tagbox_fix_flucky_tests branch from 02287a2 to b6822e5 Compare March 4, 2026 16:38
@marker-dao marker-dao marked this pull request as ready for review March 4, 2026 16:38
Copilot AI review requested due to automatic review settings March 4, 2026 16:38
EugeniyKiyashko
EugeniyKiyashko previously approved these changes Mar 4, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the TestCafe runners to attempt to reset UI state before each test by programmatically dispatching a click event on document.body inside the test.before hook.

Changes:

  • Dispatch a synthetic MouseEvent('click') at (0,0) before blurring the active element in the main e2e TestCafe runner.
  • Apply the same synthetic click in the demos visual-tests TestCafe runner.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.

File Description
e2e/testcafe-devextreme/runner.ts Adds a synthetic body click in the per-test before hook, alongside existing focus/selection cleanup.
apps/demos/utils/visual-tests/testcafe-runner.ts Adds the same synthetic body click in the per-test before hook for the demos visual-test runner.

r-farkhutdinov
r-farkhutdinov previously approved these changes Mar 4, 2026
@marker-dao marker-dao changed the title TestCafe: Move cursor before test e2e: Move cursor before test Mar 4, 2026
@marker-dao marker-dao requested a review from Copilot March 4, 2026 17:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 4 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings March 4, 2026 20:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.

@marker-dao marker-dao force-pushed the 26_1_chat_tagbox_fix_flucky_tests branch from cc51ae8 to 297ec1f Compare March 5, 2026 14:30
@marker-dao marker-dao changed the title e2e: Move cursor before test e2e: Move cursor before test to avoid unexpected hover Mar 5, 2026
@marker-dao marker-dao closed this Mar 5, 2026
@marker-dao marker-dao reopened this Mar 5, 2026
@marker-dao marker-dao merged commit 93225f1 into DevExpress:26_1 Mar 5, 2026
435 of 446 checks passed
@marker-dao marker-dao deleted the 26_1_chat_tagbox_fix_flucky_tests branch March 5, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants