Backstop Generator

The Backstop Generator module helps you quickly create a Backstop.js visual regression testing profile based on your site's content.

Backstop Generator helps you build and manage visual regression tests for your Drupal site using BackstopJS. This module simplifies the process of creating test scenarios, configuring viewports, and running tests to ensure your site's visual integrity across different devices and screen sizes. Changes you make in the interface will be reflected in the BackstopJS JSON file, allowing you to easily manage and run your visual regression tests.

Backstop Generator

The Backstop Generator module creates a Backstop.js visual regression testing profile based on your site's content.

Backstop Generator helps you build and manage visual regression tests for your Drupal site using BackstopJS. This module simplifies the process of creating test scenarios, configuring viewports, and running tests to ensure your site's visual integrity across different devices and screen sizes. Changes you make in the interface will be reflected in the BackstopJS JSON file, allowing you to easily manage and run your visual regression tests.

Setup Behat UI ~4 with Drupal ~9 project

Install the Behat UI module on Drupal 9 manually

To add Behat UI module to your Drupal 9 site, you can use Composer to install it and then enable and configure it in your terminal. Alternatively, you can follow the interactive web-based Bash command provided below.

1. From the terminal run the interactive command:

Factory Lollipop

Factory Lollipop is a comprehensive solution for using the factory pattern to generate short-lived test data-structure.

The goal of Factory Lollipop is to enable the rapid creation of objects (vocabularies, terms, content types, nodes) for the purpose of testing. The primary aim of Factory Lollipop is to a fill a void in the world of Drupal Unit testing.
This module allows you to create templates/blueprints for valid and re-usable Drupal objects.

We created this project in response to fixtures which where fixed global records that had to be loaded into the database.

Testing techniques

Tools used for testing

We are using the following tools for the test techniques:

JavaScript testing using Nightwatch

Setup

How to set up Nightwatch is explained in the core README file for tests, core/tests/README.md.

Alternatively, if you use DDEV, you can use DDEV Selenium Standalone Chrome.

Pages

Subscribe with RSS Subscribe to RSS - Testing