-
Notifications
You must be signed in to change notification settings - Fork 652
e2e demos tests: switch on disable native automation #31362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 25_2
Are you sure you want to change the base?
e2e demos tests: switch on disable native automation #31362
Conversation
3ed53f0 to
e515722
Compare
e515722 to
3bfba8a
Compare
There was a problem hiding this 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: truefrom TestCafe runner configuration - Adds locale environment variables (
LANGandLC_ALL) set to UTF-8 - Adds
--disable-dev-shm-usageChrome 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 |
3bfba8a to
960ab15
Compare
There was a problem hiding this 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
comparisonResultis truthy. This appears to be a brace placement error that changes the intended control flow.
import { glob } from 'glob';
65bd7b1 to
4c42e0b
Compare
4c42e0b to
3bdc5a4
Compare
There was a problem hiding this 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.
5e70d3d to
8770346
Compare
There was a problem hiding this 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.
8770346 to
229f2a1
Compare
There was a problem hiding this 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.
There was a problem hiding this 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.
1caa8e8 to
61dd3b0
Compare
There was a problem hiding this 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 83 out of 1479 changed files in this pull request and generated no new comments.
There was a problem hiding this 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 83 out of 1519 changed files in this pull request and generated no new comments.
There was a problem hiding this 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 83 out of 1642 changed files in this pull request and generated 1 comment.
|
|
||
| }, | ||
| // eslint-disable-next-line spellcheck/spell-checker | ||
| textDiffTreshold: 0.1, |
Copilot
AI
Oct 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected spelling of 'Treshold' to 'Threshold'
| textDiffTreshold: 0.1, | |
| textDiffThreshold: 0.1, |
There was a problem hiding this 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 83 out of 1759 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
- Missing closing brace for the else block that starts at line 184. The code structure shows an if-else statement where the else block begins at line 184 but is never properly closed before this new if statement at line 200.
import { glob } from 'glob';
…o/DevExtreme into 25_1_romans_issue
There was a problem hiding this 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 83 out of 2047 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
- Missing closing brace for the
elseblock that starts at line 184. The code structure shows anif (axeCheck)block starting at line 173 with anelseat line 184, but theelseblock's closing brace is missing. The brace at line 209 appears to close the inner block starting at line 200, not the outerelseblock.
import { glob } from 'glob';
20fcdca to
016c1bd
Compare
016c1bd to
83e1f5e
Compare
There was a problem hiding this 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 83 out of 2054 changed files in this pull request and generated 2 comments.
| if (comparisonResult) { | ||
| const consoleMessages = await t.getBrowserConsoleMessages(); | ||
|
|
||
| const errors = [...consoleMessages.error, ...consoleMessages.warn] | ||
| .filter((e) => !knownWarnings.some((kw) => e.startsWith(kw))); | ||
| const errors = [...consoleMessages.error, ...consoleMessages.warn] | ||
| .filter((e) => !knownWarnings.some((kw) => e.startsWith(kw))); | ||
|
|
||
| await t.expect(errors).eql([]); | ||
| await t.expect(comparisonResult).ok('INVALID_SCREENSHOT'); | ||
| await t.expect(errors).eql([]); | ||
| await t.expect(comparisonResult).ok('INVALID_SCREENSHOT'); | ||
| } |
Copilot
AI
Oct 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic appears inverted. Console error checking and screenshot validation should run when comparisonResult is falsy (indicating a mismatch), not when it's truthy. If comparisonResult is true, the comparison passed and assertions are unnecessary.
| const fastComparisonOptions = { | ||
| ...comparisonOptions, | ||
| looksSameComparisonOptions: { | ||
| ...comparisonOptions?.looksSameComparisonOptions, | ||
| tolerance: 10, | ||
| antialiasingTolerance: 10, | ||
|
|
||
| }, | ||
| // eslint-disable-next-line spellcheck/spell-checker | ||
| textDiffTreshold: 0.1, | ||
| }; |
Copilot
AI
Oct 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The empty line at line 191 within the looksSameComparisonOptions object should be removed to maintain consistent code formatting.
No description provided.