Skip to content

chore(e2e): make bundles test resilient to chunk changes#1947

Draft
martyanovandrey wants to merge 1 commit into
masterfrom
chore/improve-bundles-e2e
Draft

chore(e2e): make bundles test resilient to chunk changes#1947
martyanovandrey wants to merge 1 commit into
masterfrom
chore/improve-bundles-e2e

Conversation

@martyanovandrey
Copy link
Copy Markdown
Contributor

@martyanovandrey martyanovandrey commented May 22, 2026

Summary

  • Replace fragile exact-filelist snapshot in bundles.spec.ts with explicit assertions that don't break on @diplodoc/client updates
  • Verify all manifest entries are present in _bundle/ output
  • Verify extension bundles (latex, mermaid, page-constructor) are present
  • Assert HTML <script>/<link> references point to existing bundle and search files
  • Verify search index is generated (api.js, index.html, language.js)
  • Use compareDirectories defaults (stripSystemLinks) for content snapshots — HTML snapshots no longer contain bundle filenames

No snapshots depend on webpack chunk names or counts, so the test is fully stable across dependency updates.

@martyanovandrey martyanovandrey requested a review from a team as a code owner May 22, 2026 06:25
@martyanovandrey martyanovandrey requested review from reazy015 and removed request for a team May 22, 2026 06:25
@martyanovandrey martyanovandrey force-pushed the chore/improve-bundles-e2e branch from 6b68792 to 2d2fa1c Compare May 22, 2026 06:38
Replace fragile exact-filelist snapshot with explicit assertions:
- verify all manifest entries present in _bundle/ output
- verify extension bundles are present
- assert HTML references point to existing bundle and search files
- verify search index is generated (api.js, index.html, language.js)
- use compareDirectories defaults (stripSystemLinks) for content snapshots

The test no longer breaks on @diplodoc/client updates or webpack
chunk restructuring — only on actual regressions.
@martyanovandrey martyanovandrey force-pushed the chore/improve-bundles-e2e branch from 2d2fa1c to 684b590 Compare May 22, 2026 06:38
@sonarqubecloud
Copy link
Copy Markdown

@martyanovandrey martyanovandrey marked this pull request as draft May 22, 2026 08:36
@martyanovandrey martyanovandrey removed the request for review from reazy015 May 22, 2026 08:36
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