Automated Testing Kit contains useful utilities for end-to-end testing using Cypress.io and Playwright.
If you are looking for documentation for the D7 version, go here.
Join the #automated_testing_kit channel in the Slack Drupal workspace to discuss the Kit and obtain installation help.
Here are some of the tests and features of the module:
- logging in, logging out and registering new users
- reset password
- media, node, taxonomy and menu creation
- search validation
- user creation and deletion via Drush
- getting usernames, Drupal UIDs
- awareness of the QA Accounts module
- executing drush commands via aliases or against Pantheon via Terminus (useful for setup and teardown)
Automated Testing Kit works on the native OS (i.e. macOS/Linux) and on the native OS + a container (via
DDEV/Lando/Docksal).
NOTE: the container we are referring to is where Drupal runs. We do not recommend attempting to
run Cypress or Playwright in a container because it makes it difficult to access the GUIs
of each tool. Install Cypress and Playwright on the native OS.
The module contains two sets of libraries and tests, one set for Cypress and one set for Playwright.