Skip to content

Conversation

@EugeniyKiyashko
Copy link
Contributor

No description provided.

@Copilot 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

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 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

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 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

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

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

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.

Copy link

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 Copilot AI review requested due to automatic review settings October 23, 2025 10:18
Copy link

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

@Copilot Copilot AI review requested due to automatic review settings October 23, 2025 11:34
Copy link

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

@Copilot Copilot AI review requested due to automatic review settings October 23, 2025 14:18
Copy link

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 83 out of 1642 changed files in this pull request and generated 1 comment.


},
// eslint-disable-next-line spellcheck/spell-checker
textDiffTreshold: 0.1,
Copy link

Copilot AI Oct 23, 2025

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'

Suggested change
textDiffTreshold: 0.1,
textDiffThreshold: 0.1,

Copilot uses AI. Check for mistakes.
@Copilot Copilot AI review requested due to automatic review settings October 24, 2025 05:16
Copy link

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 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';

@Copilot Copilot AI review requested due to automatic review settings October 24, 2025 05:57
Copy link

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 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 else block that starts at line 184. The code structure shows an if (axeCheck) block starting at line 173 with an else at line 184, but the else block's closing brace is missing. The brace at line 209 appears to close the inner block starting at line 200, not the outer else block.
import { glob } from 'glob';

@Copilot Copilot AI review requested due to automatic review settings October 24, 2025 07:57
Copy link

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 83 out of 2054 changed files in this pull request and generated 2 comments.

Comment on lines +200 to +208
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');
}
Copy link

Copilot AI Oct 24, 2025

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.

Copilot uses AI. Check for mistakes.
Comment on lines +185 to +195
const fastComparisonOptions = {
...comparisonOptions,
looksSameComparisonOptions: {
...comparisonOptions?.looksSameComparisonOptions,
tolerance: 10,
antialiasingTolerance: 10,

},
// eslint-disable-next-line spellcheck/spell-checker
textDiffTreshold: 0.1,
};
Copy link

Copilot AI Oct 24, 2025

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.

Copilot uses AI. Check for mistakes.
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.

1 participant