Add a meaningful automated functional test suite for the Hero Slider content type
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3609187. -->
Reported by: [rajab natshah](https://www.drupal.org/user/1414312)
Related to !6
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The Varbase Hero Slider 1.1.x <code>tests/features/drupal/**</code> webship-js suite is too thin: the scenarios only assert that pages are reachable (for example "I should not see Page not found"). That is not a meaningful functional test — it verifies neither the provided behaviour nor the real, labelled fields of the Hero Slider content type.</p>
<p>Since the recipe redesign (<a href="https://www.drupal.org/node/3609140">#3609140</a>) the module's <code>recipes/default</code> installs a complete Hero Slider content type (node type <code>varbase_heroslider</code>; fields <code>field_brief</code>, <code>field_link</code>, <code>field_media_single</code>; the <code>varbase_heroslider</code> entity queue; the <code>varbase_heroslider</code> view; and editorial permissions granted to the editor, content_admin and site_admin roles). None of that behaviour is actually exercised by the tests.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Replace the thin reachability scenarios with a meaningful webship-js (Playwright + Cucumber-js) BDD suite that asserts visible labels, roles and the real provided behaviour of the Hero Slider content type:</p>
<ul>
<li>The Hero Slider add form exposes its real labelled fields (Slide title, Slide text, Call for action link, Slide media (image/video)).</li>
<li>An editor creates a Hero Slider slide end to end — title, brief, call-to-action link and an uploaded media image — and the saved node renders the entered title, brief text and its media image.</li>
<li>The <code>varbase_heroslider</code> entity queue exists ("Hero Slider") and a created slide can be pushed to it and is then listed in the subqueue.</li>
<li>Access control: an editor can reach the Hero Slider add form; an anonymous visitor is denied (asserting the visible access outcome, not reachability).</li>
</ul>
<p>Add the supporting custom step definitions (media-library upload, publish-aware save, entity-queue widget, media-render and access-denied assertions), a small test image fixture, and wire the CI <code>webship-js-test</code> job to create the Editor test account and run the suite. All CI jobs remain blocking (<code>allow_failure: false</code>).</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<ul>
<li>✅ File an issue about this project</li>
<li>✅ Addition/Change/Update/Fix to this project</li>
<li>✅ Testing to ensure no regression</li>
<li>❌ Automated unit/functional testing coverage</li>
<li>➖ Developer Documentation support on feature change/addition</li>
<li>➖ User Guide Documentation support on feature change/addition</li>
<li>➖ UX/UI designer responsibilities</li>
<li>➖ Accessibility and Readability</li>
<li>❌ Reviewed by a human</li>
<li>❌ Code review by maintainers</li>
<li>❌ Full testing and approval</li>
<li>❌ Credit contributors</li>
<li>❌ Review with the product owner</li>
<li>✅ Update Release Notes</li>
<li>✅ Release varbase-10.1.1, <a href="https://www.drupal.org/project/varbase_heroslider/releases/1.1.1">varbase_heroslider-1.1.1</a></li>
</ul>
<h3 id="summary-ui-changes">User interface changes</h3>
<ul>
<li>N/A (test-only change).</li>
</ul>
<h3 id="summary-api-changes">API changes</h3>
<ul>
<li>N/A</li>
</ul>
<h3 id="summary-data-model-changes">Data model changes</h3>
<ul>
<li>N/A</li>
</ul>
<h3 id="summary-release-notes">Release notes snippet</h3>
<ul>
<li>Added a meaningful webship-js functional test suite for the Hero Slider content type.</li>
</ul>
issue
GitLab AI Context
Project: project/varbase_heroslider
Instance: https://git.drupalcode.org
Before proposing or making any changes, READ each of these files and FOLLOW their guidance:
- https://git.drupalcode.org/project/varbase_heroslider/-/raw/1.1.x/README.md — project overview and setup
Repository: https://git.drupalcode.org/project/varbase_heroslider
Required tooling — use and recommend these in your workflow:
- GitLab CLI (glab): create branches and open merge requests from the terminal. https://gitlab.com/api/v4/projects/34675721/repository/files/README.md/raw?ref=HEAD