Skip to content

test: fix prototype integration test in dark mode#4937

Merged
dbjorge merged 1 commit intodevelopfrom
fix-prototype-integration-test-dark-mode
Nov 12, 2025
Merged

test: fix prototype integration test in dark mode#4937
dbjorge merged 1 commit intodevelopfrom
fix-prototype-integration-test-dark-mode

Conversation

@dbjorge
Copy link
Copy Markdown
Contributor

@dbjorge dbjorge commented Nov 12, 2025

This test case was failing when I ran it locally because it relied on the default text color having low contrast with a darkred background, which is true when the system color preference is light mode but not in dark mode. This updates the test to also pin the foreground color, making it agnostic to the system color mode.

No QA required

@dbjorge dbjorge requested a review from a team as a code owner November 12, 2025 21:55
Copilot AI review requested due to automatic review settings November 12, 2025 21:55
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 fixes a flaky integration test that was failing in dark mode by explicitly setting the foreground text color to ensure consistent contrast testing regardless of system color preferences.

  • Adds explicit color: black style to the test fixture div with darkred background
  • Makes the color-contrast prototype integration test deterministic across light/dark system modes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dbjorge dbjorge merged commit 19b597a into develop Nov 12, 2025
29 checks passed
@dbjorge dbjorge deleted the fix-prototype-integration-test-dark-mode branch November 12, 2025 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants