Drupal Test Session Cypress Commands

JSON →
library 1.1.66 ·javascript
verified May 27, 2026

This package, `drupal-test-session-cypress` (current version 1.1.66), provides Cypress commands that streamline interaction with Drupal's Test Session module. Its primary function is to extend the Cypress API with `cy.drupalSession()`, enabling testers to easily manage Drupal user sessions and state directly within their end-to-end tests. This abstraction simplifies common testing scenarios like logging in users, asserting permissions, and resetting session data, which otherwise would require complex custom commands or direct API calls to the Drupal backend. The package is typically installed as a development dependency and integrates by requiring it within Cypress's `support/index.js` (or `.ts`) file, making its commands globally available to Cypress tests. It offers a focused solution for projects leveraging Drupal and Cypress, differentiating itself by tightly coupling with the specific Drupal module. The Drupal Test Session module itself is marked as 'minimally maintained' and 'feature-complete' on Drupal.org, and this Cypress wrapper aligns with that stability.

total hits 12
actors 5 distinct systems
last hit 5d ago AhrefsBot
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France