Skip to content
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

feat: highlight browser failures #5222

Open
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

mark-wiemer
Copy link
Contributor

@mark-wiemer mark-wiemer commented Oct 10, 2024

PR Checklist

Overview

  • Change pass indicator to accessible color in light mode (dark green)
  • As soon as a test fails, add a red fail indicator and color the "failures" text red
  • As soon as all tests have a result, and none are failures, add a green pass indicator and color the "passes" text green
  • Result indicators for the root suite are the same for the result indicators for individual tests
    • Except result indicator for root suite is only pass/fail, skip for root suite will show pass for simplicity (happy to change)

image

image


image

image

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Looks great to me, thanks for the overhaul! ✨

Just requesting undoing unrelated changes, to make it easier to review & not take up as much of a diff.

mocha.css Outdated Show resolved Hide resolved
lib/reporters/html.js Show resolved Hide resolved
@JoshuaKGoldberg JoshuaKGoldberg added the status: waiting for author waiting on response from OP - more information needed label Oct 10, 2024
This reverts commit 8552a91.
@mark-wiemer
Copy link
Contributor Author

@JoshuaKGoldberg, ready for review :)

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Looks great to me, thanks for iterating on it & coming up with good ideas! 🙌

Approved - and will leave open for a bit in case anybody from @mochajs/maintenance-crew has time & interest to review.

@JoshuaKGoldberg JoshuaKGoldberg removed the status: waiting for author waiting on response from OP - more information needed label Oct 11, 2024
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.

🚀 Feature: Highlight browser failures in red
2 participants