create-functional-js-test

Community

Generate end-to-end Functional JS tests

Authormarkconroy
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Creating reliable Drupal FunctionalJavascript tests is time-consuming because you must verify the local runtime (ddev, Selenium, Playwright), inspect real admin UI markup, and then turn that into a correct test class with proper waits and assertions.

Core Features & Use Cases

  • Environment validation: Confirms ddev is running, Selenium Standalone Chrome is available, ffmpeg exists for video recording, and the Playwright CLI can be used for manual UI exploration.
  • Admin UI exploration with guardrails: Generates a one-time admin login link, then guides manual navigation so you can accurately capture selectors, form fields, and AJAX behavior before coding the test.
  • Actionable test scaffolding: Produces a FunctionalJavascript test template that extends BaseClassFunctionalJavascriptTests, includes screenshot and video recording, uses AJAX-safe waiting, and optionally sets up EchoAI/ai settings plus AI mock request spoofing YAML when needed.

Quick Start

Ask the skill to create a FunctionalJavascript test for the AI module by providing the module name, the exact page/feature to cover, whether AI calls require spoofing, and the assertions you want the test to verify.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: create-functional-js-test
Download link: https://github.com/markconroy/markie/archive/main.zip#create-functional-js-test

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.