test(dashboard): strengthen fontWeightStrong assertion for markdown bold#35872
test(dashboard): strengthen fontWeightStrong assertion for markdown bold#35872sadpandajoe merged 1 commit intomasterfrom
Conversation
Update test to require fontWeightStrong >= 600 (semibold) instead of > 400. This ensures the theme token has adequate weight to show a true visual difference when bold text is rendered. Values < 600 (like 500/medium) are too subtle and appear similar to normal weight (400), making bold text barely distinguishable. The stricter assertion catches this inadequate configuration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Code Review Agent Run #7a7f43Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Interaction Diagram by BitosequenceDiagram
participant Config as Backend Config<br/>🔄 Updated | ●●● High
participant Theme as supersetTheme
participant GlobalStyles as GlobalStyles.tsx<br/>🟩 Added | ●●○ Medium
participant Markdown as Markdown Component
participant SafeMarkdown as SafeMarkdown
participant Test as Markdown.test.tsx<br/>🔄 Updated | ●●● High
Config->>Theme: fontWeightStrong: 600
Theme->>GlobalStyles: Apply font-weight to strong tags
GlobalStyles->>Markdown: CSS: strong { font-weight: 600; }
Markdown->>SafeMarkdown: Render markdown with **bold**
SafeMarkdown-->>Markdown: Render <strong> with 600 weight
Test->>Theme: Verify fontWeightStrong >= 600
Theme-->>Test: Assertion passes
Critical path: Backend Config->supersetTheme->GlobalStyles.tsx->Markdown Component->SafeMarkdown; Test validates theme value >= 600
|
|
🎪 Showtime deployed environment on GHA for b8ec243 • Environment: http://54.245.149.242:8080 (admin/admin) |
…old (apache#35872) Co-authored-by: Claude <noreply@anthropic.com> (cherry picked from commit 2db1900)
…old (apache#35872) Co-authored-by: Claude <noreply@anthropic.com> (cherry picked from commit 2db1900)
SUMMARY
Follow up to #35821, where the test was looking for anything greater than 400. Update test to require fontWeightStrong >= 600 (semibold) instead of > 400. This ensures the theme token has adequate weight to show a true visual difference when bold text is rendered.
Values < 600 (like 500/medium) are too subtle and appear similar to normal weight (400), making bold text barely distinguishable. The stricter assertion catches this inadequate configuration.
🤖 Generated with Claude Code
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION