Skip to content

Check banner status classes by token - #2396

Merged
leaf-agent merged 5 commits into
mainfrom
fix/ci-38133035955-banner
Oct 11, 2026
Merged

leaf-agent merged 5 commits into
mainfrom
fix/ci-38133035955-banner

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

The public example and unheld-status browser checks compare the status dot's class tokens. Main run 38133035955 failed because Lit's classMap serializes the lone lf-dot token with surrounding whitespace, while the checks required the raw attribute to begin with lf-dot. The dot still has only that class, so the check keeps the intended grey, unclaimed status contract without depending on serialization whitespace.

The banner detail is also rendered inside Lit template whitespace. Its tests now allow that leading whitespace while still checking the complete expected sentence. The startup readiness check trims the same whitespace before deciding whether “Connecting” has cleared; without the trim, it could pass while the page was still connecting.

This assertion became stale when #2337 moved the banner status view to Lit. The public example, banner attendance, startup readiness, status coalescing, claim clock, gallery workflow, and stale workflow cases passed locally with these changes. The other failures in the original run have separate causes and are tracked in their own PRs.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The attendance test still fails before it reaches the new dot assertion. In test_banner_reports_whether_anyone_is_attending, the first regex for .lf-status-detail starts at ^Claude, but Lit's rendered detail includes surrounding whitespace. A targeted run timed out at that assertion (line 3555) while the expected words were visibly present. Adjust the detail assertions to read the displayed text or allow the surrounding whitespace, then run this case through the new dot check.

@leaf-agent
leaf-agent merged commit 346a853 into main Oct 11, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38133035955-banner branch October 11, 2026 16:34
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.

1 participant