Overview
This add-on integrates Webship-JS — a Playwright + Cucumber-JS Automated Functional Acceptance Testing framework — into your DDEV project. It allows you to write and run automated browser tests using Gherkin .feature files directly inside your DDEV environment.
Installation
ddev add-on get webship/ddev-webship-jsddev add-on get automatically scaffolds the project with all required configuration files and a starter feature file, installs Playwright browsers, and restarts the DDEV environment.
Install Dependencies
With npm:
ddev npm installWith yarn:
ddev yarn install
Running Tests
With npm:
ddev npm run test:chromium # Run all tests with Chromium
ddev npm run test:firefox # Run all tests with Firefox
ddev npm run test:webkit # Run all tests with WebKitWith yarn:
ddev yarn test:chromium # Run all tests with Chromium
ddev yarn test:firefox # Run all tests with Firefox
ddev yarn test:webkit # Run all tests with WebKitTo run a specific feature file:
ddev exec npx cucumber-js --config cucumber.js tests/features/example.feature