drupal-test-session-cypress

Cypress commands for Drupal's Test Session module.

Usage no npm install needed!

<script type="module">
  import drupalTestSessionCypress from 'https://cdn.skypack.dev/drupal-test-session-cypress';
</script>

README

Drupal Test Session Cypress

Extends Cypress API to make it easier to utilize Drupal's Test Session module.

Installation

Add the package

yarn add --dev drupal-test-session-cypress

Require it from the Cypress support/index.js (or .ts)

require('drupal-test-session-cypress');

If Drupal's base URL is different from http://localhost:8888, set it via DRUPAL_BASE_URL environment variable.

Usage

Once installed, the cy.drupalSession() is available in your Cypress project. Examples can be found here.