This adds scripts/build-component-test-page.php: a repeatable local fixture script (run via drush scr) to manually exercise every Layout Builder Kit component on a fresh site before a release. Previously there was no single place to see every component rendered at once, which made pre-release manual QA slow and error-prone.

The script builds two things, idempotently (it deletes and recreates its own nodes on every run, so it is safe to re-run after code changes):

- An "LBK Component Test Page" node with one instance each of the six standalone LBK block components: Rich Text, Image, Icon Text, Video, Tab, and Render.
- A separate "LBK Book Navigation Demo" - a real 'book'-bundle node with two child pages - with the Book Navigation (LBK) block placed on the 'book' bundle's DEFAULT layout (not a per-node override), so it appears on every page in that book. This is a separate fixture because Book Navigation only produces output when the current node's bundle is literally 'book', so it needed its own book-bundle content with siblings to demonstrate.

Run with:
drush scr web/modules/custom/layout_builder_kit/scripts/build-component-test-page.php

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

aangel created an issue. See original summary.

aangel’s picture

/do:fork

  • aangel committed 2f851af2 on 3.0.x
    Issue #3616828: Add a manual QA fixture script for the component test...
aangel’s picture

Status: Active » Fixed

Merged. Closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.