Fixed
Project:
Cucumber User Roles
Version:
12.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2026 at 10:03 UTC
Updated:
10 Nov 2026 at 12:02 UTC
Jump to comment: Most recent
The module's functional tests (7 feature files) run on webship-js, with the step definitions and the settings kept in the project itself (cucumber.js, tests/step-definitions/).
The public step pack @webship-js/drupal-core-steps 2.1 (npm, GitHub) now ships, for any Drupal core site:
loginWait) and Given I add the testing users from the users registryI should be denied access to "...")Local copies drift from the pack and duplicate its maintenance. In this project:
tests/step-definitions/cucumber_user_roles.steps.js are ambiguous with the pack: the login by handle (I am a logged in user with the "..." user) and I add the testing users. Both match the same sentences as the pack's, so every such sentence matches two definitions once the pack is loaded. The third custom step, the Ace editor step, is kept.10.0.x, while the supported 12.0.x is at release 12.0.5.engines.node is >= 20.0 with packageManager yarn@4.9.3, and the CI jobs use node:20 and NodeSource setup_20.x.cucumber.js and tests/step-definitions/ on the 12.0.x branch.package.json (engines.node, packageManager) and the image: lines of .gitlab-ci.yml, and compare the default branch 10.0.x with 12.0.x.The pack's 2.1.0 is on npm.
@webship-js/drupal-core-steps (^2.1.0) to the package.json devDependencies and its step glob (node_modules/@webship-js/drupal-core-steps/tests/step-definitions/**/*.js) to cucumber.js, between webship-js's own glob and the project's own. webship-js stays at ^2.0.6.cucumber.js already has the pack's shape (username, email, password, roles, isAdmin); keep it.I add the testing users) from tests/step-definitions/cucumber_user_roles.steps.js; keep the rest.test:dry script (cucumber-js --dry-run) and a dry run in CI before the browser job, so an undefined or ambiguous step fails early.12.0.x. Move to Node 24 and Yarn 4.18.1: engines.node >= 24.0, packageManager yarn@4.18.1, the CI images node:24 and NodeSource setup_24.x. Regenerate yarn.lock so that it resolves the pack. Check the other constraints against the current releases.12.0.x branch from an issue fork, pipeline green, then a release.AI-Generated: Yes (issue text)
@webship-js/drupal-core-steps step pack; CI runs a dry run first.
Comments
Comment #7
rajab natshah✅ Released cucumber_user_roles-12.0.6: https://www.drupal.org/project/cucumber_user_roles/releases/12.0.6 (merged in https://git.drupalcode.org/project/cucumber_user_roles/-/merge_requests/18)