test: #3619108 Add the browser test suite for the Autocomplete Deluxe widget

Issue: https://www.drupal.org/project/autocomplete_deluxe/issues/3619108

The browser test suite for the widget, split out of the Drupal 12 styling issue so each one is a review of its own.

Twenty one scenarios under tests/features/drupal/, run by webship-js (Playwright + Cucumber): login, the taxonomy set up, the widget render, the stylesheet that each admin theme gets, the suggestion list, multiple values, new terms disabled, the keyboard and the minimum length, the save flow, the help page, accessibility, and a mobile breakpoint. A hidden test recipe under tests/recipes/ provisions the content type, the vocabulary and the field, so the suite does not depend on what the install profile ships.

The two dependencies that point at GitHub tarballs which no longer exist, farbtastic and joyride, are dropped: they made yarn install fail before any test could run.

Run: LAUNCH_URL=https://<site> npx cucumber-js --config cucumber.js --tags "not @gin" on a Claro site, and --tags "@gin" on a Gin site.

Tested on Drupal 11.4: 20 scenarios and 114 steps pass on Claro, and the Gin cell passes with the Gin theme installed as the admin theme. The unit test that covers the theme detection lives with the code change in [#3591908].

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release
Edited by Rajab Natshah

Merge request reports

Loading