test: fold the two #5539 specs into one by Jocs · Pull Request #5557 · marktext/marktext · GitHub
Skip to content

test: fold the two #5539 specs into one - #5557

Merged
Jocs merged 1 commit into
developfrom
test/fold-5539-specs
Sep 25, 2026
Merged

Jocs merged 1 commit into
developfrom
test/fold-5539-specs

Conversation

@Jocs

@Jocs Jocs commented Sep 25, 2026

Copy link
Copy Markdown
Member

Follow-up to #5553. Refs #5539 — no behaviour change, tests only.

#5553 shipped two spec files. The second one, issue-5539-text-smoothing.spec.ts, was 38 lines and a whole extra Electron launch to assert that a single CSS declaration is absent. The colour cases already launch the app and switch themes, so the assertion belongs there.

  • issue-5539-code-block-contrast.spec.ts → issue-5539-text-legibility.spec.ts (it covers more than contrast now)
  • issue-5539-text-smoothing.spec.ts deleted, its assertion folded in as a fifth test

The smoothing check is worth keeping in some form: muya tracks an upstream that still ships -webkit-font-smoothing: antialiased, so a sync can silently reintroduce it. The comment in the spec says so.

Verified it still fails for the right reason: re-adding the declaration to packages/muya/src/assets/styles/index.css and rebuilding turns exactly that one test red (Expected: "auto", Received: "antialiased"), with the four colour tests still green. Theme stylesheets never touch -webkit-font-smoothing, so running the assertion after four theme switches in the same window is safe.

5 tests, one launch, all passing locally.

🤖 Generated with Claude Code

The smoothing check was a whole spec file, and a second Electron launch, for a
single assertion that one declaration is absent. Move it next to the code
block colour cases, which already launch the app and switch themes, and rename
the file to match what it now covers.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Jocs
Jocs merged commit ffaff37 into develop Sep 25, 2026
10 checks passed
@Jocs
Jocs deleted the test/fold-5539-specs branch September 25, 2026 03:46
@github-actions

Copy link
Copy Markdown
Contributor

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