Skip to content

chore: Disable failing visual tests - #7728

Merged
pbrolin47 merged 3 commits into
developfrom
chore/disable-failing-screen-shot-tests
May 11, 2026
Merged

pbrolin47 merged 3 commits into
developfrom
chore/disable-failing-screen-shot-tests

Conversation

@pbrolin47

@pbrolin47 pbrolin47 commented May 8, 2026 •

Copy link
Copy Markdown
Collaborator

📑 Summary

The visual test 'should render a deterministic layout for a complex deeply-nested diagram' for Architecture diagrams is disabled since it fails in CI

The visual tests for Cynefin diagrams are disabled since they fail in CI.

During work with this PR, a problem was found that handling of subset screenshots was correct. In this PR a minor fix for that is added
Note: Separate issues are be raised to fix the failing tests. See https://github.com/mermaid-js/mermaid/issues/7727 and https://github.com/mermaid-js/mermaid/issues/7729

📏 Design Decisions

Describe the way your implementation works or what design decisions you made if applicable.

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added necessary unit/e2e tests.
  • 📓 have added documentation. Make sure MERMAID_RELEASE_VERSION is used for all new features.
  • 🦋 If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

@changeset-bot

changeset-bot Bot commented May 8, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e949ca6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify

netlify Bot commented May 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit e949ca6
🔍 Latest deploy log https://app.netlify.com/projects/mermaid-js/deploys/6a0186c97476fa0008c8653d
😎 Deploy Preview https://deploy-preview-7728--mermaid-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added Type: Other Not an enhancement or a bug Sponsored by MermaidChart labels May 8, 2026
@pkg-pr-new

pkg-pr-new Bot commented May 8, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@mermaid-js/examples

npm i https://pkg.pr.new/@mermaid-js/examples@7728

mermaid

npm i https://pkg.pr.new/mermaid@7728

@mermaid-js/layout-elk

npm i https://pkg.pr.new/@mermaid-js/layout-elk@7728

@mermaid-js/layout-tidy-tree

npm i https://pkg.pr.new/@mermaid-js/layout-tidy-tree@7728

@mermaid-js/mermaid-zenuml

npm i https://pkg.pr.new/@mermaid-js/mermaid-zenuml@7728

@mermaid-js/parser

npm i https://pkg.pr.new/@mermaid-js/parser@7728

@mermaid-js/tiny

npm i https://pkg.pr.new/@mermaid-js/tiny@7728

commit: e949ca6

@codecov

codecov Bot commented May 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 3.29%. Comparing base (f50fb4f) to head (e949ca6).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           develop   #7728   +/-   ##
=======================================
  Coverage     3.29%   3.29%           
=======================================
  Files          561     560    -1     
  Lines        58576   58565   -11     
  Branches       873     873           
=======================================
  Hits          1928    1928           
+ Misses       56648   56637   -11     
Flag Coverage Δ
unit 3.29% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@argos-ci

argos-ci Bot commented May 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) 👍 Changes approved 12 removed May 11, 2026, 7:48 AM

@pbrolin47
pbrolin47 marked this pull request as ready for review May 11, 2026 08:00
@pbrolin47
pbrolin47 added this pull request to the merge queue May 11, 2026
Merged via the queue into develop with commit 53e8f86 May 11, 2026
30 checks passed
@pbrolin47
pbrolin47 deleted the chore/disable-failing-screen-shot-tests branch May 11, 2026 08:18
pull Bot pushed a commit to Liqiun/mermaid that referenced this pull request May 12, 2026
The renderer seeded its mulberry32 PRNG from hashString(id) where the
SVG element id varies per render, so each render produced a different
wavy boundary and Argos visual tests failed on every run.

Adds a `cynefin.seed` config field (default 0 → existing per-id hashing
behavior; any non-zero value locks the waviness across renders).
Extracts a `resolveSeed(configuredSeed, id)` helper alongside the
existing PRNG primitives, hardened against non-finite inputs. The
cypress helper now injects `cynefin.seed = 1` alongside the existing
`handDrawnSeed = 1`, and the cynefin cypress spec (skipped in mermaid-js#7728
pending this fix) is re-enabled with one added seed-override test.

Resolves mermaid-js#7727
pull Bot pushed a commit to weiyilai/mermaid that referenced this pull request May 13, 2026
The cytoscape-fcose layout calls Math.random() internally in its
constraint solver regardless of randomize:false, so the visual test
'should render a deterministic layout for a complex deeply-nested
diagram' failed on every CI run (and was disabled in mermaid-js#7728 pending
this fix).

Adds an `architecture.seed` config field (default 1) that temporarily
swaps Math.random for a mulberry32 seeded generator around the two
layout.run() invocations and restores it in a finally block. The
non-zero default makes every architecture diagram render with the same
layout on every render; setting `architecture.seed: 0` opts out of the
swap and restores the pre-fix non-deterministic behavior for callers
who want layout variety.

Re-enables the previously skipped cypress test, injects
`architecture.seed = 1` from the test helper alongside handDrawnSeed=1,
and adds a new test that exercises an explicit seed override.

Resolves mermaid-js#7729
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Sponsored by MermaidChart Type: Other Not an enhancement or a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants