Skip to content

test(content): fix nav fallback fixtures after visibility filtering - #3181

Merged
Thomas Jung (jung-thomas) merged 1 commit into
mainfrom
fix/ci-unit-nav-fixtures
Nov 30, 2026
Merged

Thomas Jung (jung-thomas) merged 1 commit into
mainfrom
fix/ci-unit-nav-fixtures

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

Summary

Fixes the five failing assertions in CI run https://github.com/sap-tutorials/tutorials-ims/actions/runs/46317913630.

The pre-release navigator change requires a matching Tutorials metadata row before published content can appear in live navigation. Five older tests published HTML without that metadata, causing empty public nav results.

  • Seed ACTIVE, LISTED metadata in the affected navigation fixtures.
  • Clear lifecycle metadata between tests.
  • Add a regression test proving content without metadata is omitted from both public and gated feeds.
  • Leave production filtering and access controls unchanged.

Verification

Scoped run of test/lib/content-store.test.js, test/integration/content-pipeline-lifecycle.test.js, and srv/tests/lib/prerelease-nav.test.js:

  • Node 22.23.4 (CI runtime): 3 files passed; 78 tests passed, 5 skipped.
  • Node 26.5.0: same result.
  • git diff --check passed.

Full suite left to CI per repository guidance.

@jung-thomas
Thomas Jung (jung-thomas) merged commit 1e8e49c into main Nov 30, 2026
5 checks passed
@jung-thomas
Thomas Jung (jung-thomas) deleted the fix/ci-unit-nav-fixtures branch November 30, 2026 01:47
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