e2e demos tests: switch on native automation#31362
Conversation
3ed53f0 to
e515722
Compare
e515722 to
3bfba8a
Compare
There was a problem hiding this comment.
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.
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
5e70d3d to
8770346
Compare
8770346 to
229f2a1
Compare
30320b4 to
8594e6f
Compare
There was a problem hiding this comment.
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.
| // undefined, | ||
| // comparisonOptions && { | ||
| // ...comparisonOptions, | ||
| // looksSameComparisonOptions: { antialiasingTolerance: 10 }, | ||
| // }); |
There was a problem hiding this comment.
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.
| // undefined, | |
| // comparisonOptions && { | |
| // ...comparisonOptions, | |
| // looksSameComparisonOptions: { antialiasingTolerance: 10 }, | |
| // }); |
| // }); | ||
| } else { | ||
| comparisonResult = await compareScreenshot(t, `${testName}${getThemePostfix(testTheme)}.png`, undefined, comparisonOptions); | ||
| comparisonResult = await compareScreenshot(t, `${testName}${getThemePostfix(testTheme)}.png`); |
There was a problem hiding this comment.
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.
b8cb9e2 to
988a7e9
Compare
No description provided.