Skip to content

e2e demos tests: switch on native automation#31362

Merged
EugeniyKiyashko merged 38 commits into
DevExpress:25_2from
EugeniyKiyashko:25_1_romans_issue
Oct 29, 2025
Merged

e2e demos tests: switch on native automation#31362
EugeniyKiyashko merged 38 commits into
DevExpress:25_2from
EugeniyKiyashko:25_1_romans_issue

Conversation

@EugeniyKiyashko
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings October 20, 2025 19:25
@EugeniyKiyashko EugeniyKiyashko requested a review from a team as a code owner October 20, 2025 19:25
Copy link
Copy Markdown
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 modifies TestCafe configuration for demo visual tests, removing the disableNativeAutomation flag and standardizing HTML meta tags across demo files.

Key Changes

  • Removes disableNativeAutomation: true from TestCafe runner configuration
  • Adds locale environment variables (LANG and LC_ALL) set to UTF-8
  • Adds --disable-dev-shm-usage Chrome flag to the browser configuration
  • Simplifies meta tags in HTML demo files by consolidating charset declarations

Reviewed Changes

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

File Description
apps/demos/utils/visual-tests/testcafe-runner.ts Removes native automation disable flag, adds locale env vars, and adds Chrome flag for shared memory
apps/demos/Demos/Charts/ClientSideDataProcessing/jQuery/index.html Consolidates meta tags: replaces separate IE compatibility and content-type tags with single charset meta tag
apps/demos/Demos/Charts/ClientSideDataProcessing/Angular/index.html Consolidates meta tags: replaces separate IE compatibility and content-type tags with single charset meta tag
apps/demos/Demos/Charts/AxisCustomPosition/jQuery/index.html Consolidates meta tags: replaces separate IE compatibility and content-type tags with single charset meta tag

@EugeniyKiyashko EugeniyKiyashko requested a review from a team as a code owner October 20, 2025 20:02
Copilot AI review requested due to automatic review settings October 20, 2025 20:51
@EugeniyKiyashko EugeniyKiyashko requested a review from a team as a code owner October 20, 2025 20:51
Copy link
Copy Markdown
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 99 out of 222 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

apps/demos/testing/common.test.ts:1

  • The closing brace on line 200 creates an incorrect nesting structure. The console message assertions (lines 191-199) should execute regardless of the framework type, not only when comparisonResult is truthy. This appears to be a brace placement error that changes the intended control flow.
import { glob } from 'glob';

Copilot AI review requested due to automatic review settings October 21, 2025 06:52
@EugeniyKiyashko EugeniyKiyashko requested a review from a team as a code owner October 21, 2025 06:52
Copy link
Copy Markdown
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI review requested due to automatic review settings October 22, 2025 08:34
@EugeniyKiyashko EugeniyKiyashko self-assigned this Oct 22, 2025
Copy link
Copy Markdown
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI review requested due to automatic review settings October 22, 2025 17:57
Copy link
Copy Markdown
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI review requested due to automatic review settings October 28, 2025 15:39
Copy link
Copy Markdown
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 104 out of 1587 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

apps/demos/Demos/Common/EditorAppearanceVariants/test-code.js:1

  • The test-code.js file is now empty. This will cause the test to have no setup logic, which may result in test failures or inability to capture proper screenshots. If this test is no longer needed, the file should be removed entirely rather than emptied.

Comment thread apps/demos/testing/common.test.ts Outdated
Comment on lines +183 to +187
// undefined,
// comparisonOptions && {
// ...comparisonOptions,
// looksSameComparisonOptions: { antialiasingTolerance: 10 },
// });
Copy link

Copilot AI Oct 28, 2025

Choose a reason for hiding this comment

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

Commented-out code should be removed rather than left in the codebase. If this code represents a temporary change that might need to be reverted, consider using feature flags or environment variables instead.

Suggested change
// undefined,
// comparisonOptions && {
// ...comparisonOptions,
// looksSameComparisonOptions: { antialiasingTolerance: 10 },
// });

Copilot uses AI. Check for mistakes.
Comment thread apps/demos/testing/common.test.ts Outdated
// });
} else {
comparisonResult = await compareScreenshot(t, `${testName}${getThemePostfix(testTheme)}.png`, undefined, comparisonOptions);
comparisonResult = await compareScreenshot(t, `${testName}${getThemePostfix(testTheme)}.png`);
Copy link

Copilot AI Oct 28, 2025

Choose a reason for hiding this comment

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

Both branches of the if-else statement now execute identical code. Consider removing the conditional and using a single call to compareScreenshot for both isGitHubDemos cases.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
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 104 out of 1593 changed files in this pull request and generated 2 comments.

Comment thread apps/demos/Demos/Charts/ClientSideDataProcessing/Angular/index.html Outdated
Comment thread apps/demos/Demos/Charts/AxisCustomPosition/jQuery/index.html Outdated
Copy link
Copy Markdown
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 104 out of 1594 changed files in this pull request and generated 1 comment.

Comment thread apps/demos/testing/common.test.ts Outdated
Copy link
Copy Markdown
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 104 out of 1594 changed files in this pull request and generated 3 comments.

Comment thread apps/demos/testing/common.test.ts Outdated
Comment thread .github/workflows/demos_visual_tests_frameworks.yml Outdated
Comment thread .github/workflows/demos_visual_tests.yml Outdated
Copy link
Copy Markdown
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 104 out of 1595 changed files in this pull request and generated 1 comment.

Comment thread apps/demos/testing/common.test.ts Outdated
Copy link
Copy Markdown
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 104 out of 1597 changed files in this pull request and generated no new comments.

Copy link
Copy Markdown
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 104 out of 1594 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/demos_visual_tests_frameworks.yml Outdated
Copy link
Copy Markdown
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 104 out of 1597 changed files in this pull request and generated no new comments.

Copy link
Copy Markdown
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 103 out of 1596 changed files in this pull request and generated 1 comment.

Comment thread apps/demos/testing/common.test.ts
r-farkhutdinov
r-farkhutdinov previously approved these changes Oct 29, 2025
Copy link
Copy Markdown
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 103 out of 1596 changed files in this pull request and generated 1 comment.

Comment thread apps/demos/Demos/Gantt/Validation/test-code.js
alexslavr
alexslavr previously approved these changes Oct 29, 2025
Zedwag
Zedwag previously approved these changes Oct 29, 2025
Copy link
Copy Markdown
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 103 out of 1596 changed files in this pull request and generated no new comments.

Copy link
Copy Markdown
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 103 out of 1596 changed files in this pull request and generated no new comments.

r-farkhutdinov
r-farkhutdinov previously approved these changes Oct 29, 2025
Copy link
Copy Markdown
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

8 participants