Skip to content

Conversation

@mgadewoll
Copy link
Contributor

@mgadewoll mgadewoll commented Oct 9, 2024

Summary

In this previous PR we removed the default colorMode on EuiProvider in favor of listening to system settings.
This causes issues in testing environments because our tests assert on LIGHT mode (e.g. color values). Tests will fail when the system setting is set to DARK mode because of this.

Changes

  • adds static colorMode="light" on the wrapping EuiProvider for cypress tests

QA

  • CI passes
  • verify system settings have no affect on tests:
    • checkout this PR
    • set the local system setting for color mode to "dark"
    • run yarn test-cypress-dev and run the test for data_grid_cell.styles.spec.ts
    • verify the test does not fail

- ensures that tests always run in LIGHT mode independent of system setting
@mgadewoll mgadewoll added the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Oct 9, 2024
@mgadewoll mgadewoll marked this pull request as ready for review October 9, 2024 08:22
@mgadewoll mgadewoll requested a review from a team as a code owner October 9, 2024 08:22
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

🎉 🚀

@cee-chen cee-chen merged commit f3a08e4 into elastic:main Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants