Skip to content

Grids: fix unstable editing tests#34293

Open
anna-shakhova wants to merge 1 commit into
DevExpress:mainfrom
anna-shakhova:ubstable_tests_editing_26_2
Open

Grids: fix unstable editing tests#34293
anna-shakhova wants to merge 1 commit into
DevExpress:mainfrom
anna-shakhova:ubstable_tests_editing_26_2

Conversation

@anna-shakhova

Copy link
Copy Markdown
Contributor

No description provided.

@anna-shakhova anna-shakhova self-assigned this Jul 14, 2026
@anna-shakhova
anna-shakhova force-pushed the ubstable_tests_editing_26_2 branch 5 times, most recently from ed67ead to da0bc55 Compare July 16, 2026 14:16
@anna-shakhova anna-shakhova changed the title Grids: fix unstable editing test Grids: fix unstable editing tests Jul 16, 2026
@anna-shakhova
anna-shakhova marked this pull request as ready for review July 16, 2026 14:17
@anna-shakhova
anna-shakhova requested a review from a team as a code owner July 16, 2026 14:17
Copilot AI review requested due to automatic review settings July 16, 2026 14:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 aims to stabilize DataGrid editing-related TestCafe E2E tests by adding stronger synchronization points (readiness / editor existence / focus checks) and making async validation deterministic to reduce timing-related flakes.

Changes:

  • Added explicit assertions that editors exist and are focused before interacting (keyboard navigation + sticky editing scenarios).
  • Reworked one async validation test to use a controllable $.Deferred() resolved from the test instead of setTimeout.
  • Removed unstable meta markers from some tests after adding extra synchronization.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
e2e/testcafe-devextreme/tests/dataGrid/sticky/common/withEditing.ts Adds edit-cell + editor-focus assertions (and fixes a typo) to reduce flakiness in sticky columns editing.
e2e/testcafe-devextreme/tests/dataGrid/common/keyboardNavigation/keyboardNavigation.functional.ts Adds editor existence checks before focus assertions; removes an unstable meta marker for a tab-navigation scenario.
e2e/testcafe-devextreme/tests/dataGrid/common/editing/functional.ts Makes async validation deterministic via a shared deferred resolved by the test (but currently leaves a global behind under disablePageReloads).
e2e/testcafe-devextreme/tests/dataGrid/common/editing/editing.functional_matrix.ts Adds editor existence checks and dataGrid.isReady() waits; removes an unstable meta marker for a focus-next-cell scenario.

Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/editing/functional.ts
Copilot AI review requested due to automatic review settings July 16, 2026 14:29
@anna-shakhova
anna-shakhova force-pushed the ubstable_tests_editing_26_2 branch from da0bc55 to 052b3ab Compare July 16, 2026 14:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 4 out of 4 changed files in this pull request and generated no new comments.

Comment on lines +170 to 173
.expect(editor?.element.exists)
.ok()
.expect(editor?.element.focused)
.eql(true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Afaik .expect(editor?.element.focused) will already make testcafe to wait for the element to appear and be focused.

Are you sure that expect(editor?.element.exists) fixes instability?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants