Problem/Motivation

The Educare recipe ships no automated browser tests and no CI that installs it and drives the site, so regressions in the News, Events and Programs listings, the content-type full pages, the form-scoped exposed filters, the contact form and the Canvas pages go uncaught.

Steps to reproduce

  1. Install the Educare recipe on a fresh Varbase 11 site.
  2. Change any of the News/Events/Programs listings, a content type's full page, an exposed filter, or the contact form.
  3. Nothing in this repository catches the regression — there is no functional test suite and no CI pipeline that installs the recipe and exercises the site.

Proposed resolution

Ship a Varbase functional testing suite inside the recipe (built with Playwright and Cucumber-js) covering 36 scenarios across 6 folders: website base pages, News, Events, Programs, exposed filters, and the contact form.

Add a self-contained GitLab CI pipeline (build > validate > test) that builds a Varbase 11 project, requires the checked-out recipe, installs it with:

drush site:install recipes/educare

then serves the site and runs the suite, then builds the HTML/PDF report.

Locally, with gitlab-ci-local, the validate stage (YAML lint, Cspell, ESLint, Cucumber dry-run) is already green, and the suite itself runs green on a live install: 36/36 scenarios, 243 steps. The test stage (the full site install plus live run inside CI) is left to run on this issue's merge request pipeline.

AI-Generated: Yes

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ✅ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Adds the Varbase functional testing suite and GitLab CI to the Educare recipe.

Issue fork educare-3613916

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

rajab natshah created an issue. See original summary.

  • rajab natshah committed 37bf221a on 1.0.x
    feat: #3613916 Add the Varbase functional testing suite and GitLab CI
    

  • rajab natshah committed 16caabac on 1.0.x
    feat: #3613916 Extend the Varbase functional testing suite for the...
rajab natshah’s picture

Assigned: Unassigned » josebc
Status: Active » Needs review
Issue tags: +educare-1.0.0-alpha1
rajab natshah’s picture

Assigned: josebc » mohammed j. razem
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
Status: Needs review » Fixed

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.