Backstop Generator is a free module available to everyone on Drupal.org. Its essential function is in how it integrates BackstopJS directly into your Drupal admin UI.
With Backstop Generator, you can manage test profiles, viewports, and page scenarios using Drupal’s familiar form interface instead of JSON files. It makes automated visual testing more accessible to Drupal developers and site managers alike.
Key Terms
- Viewport: screen width where your site is tested (e.g., mobile, tablet, desktop).
- Scenario: specific page or set of pages to be tested.
- Profile: saved group of viewports, scenarios, and settings.
Features and Benefits
🔧 Auto-Generated Viewports
On install, Backstop Generator reads your default theme’s breakpoints and generates viewports automatically. You can also add custom ones or import from other themes.
📄 Scenario Builder
Quickly generate tests for:
- The homepage
- Menu-linked pages (with depth control)
- Random content nodes
- Custom paths (e.g., search or Views pages)
As a bonus, multi-language testing is supported out of the box!
💻 Easy Test Commands
No need to memorize complex CLI commands—Backstop Generator lists them for you. Just copy and paste them directly into your terminal.