ui-test

Generates Playwright and Cucumber page objects, feature files, and step definitions for NRF frontend test suites.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/DEFRA/nrf-journey-tests --skill ui-test-defra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ui-test
Source: https://github.com/DEFRA/nrf-journey-tests/tree/main/.ai/skills/ui-test
Command: npx skills add https://github.com/DEFRA/nrf-journey-tests --skill ui-test-defra

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation and maintenance of Playwright + Cucumber end-to-end tests for the NRF frontend, reducing setup time and ensuring consistent testing across journeys.

Core Features & Use Cases

  • Generates test scaffolds including page objects, feature files, and step definitions for NRF frontend journeys.
  • Provides guidelines and templates to accelerate E2E test development and maintenance.
  • Supports key NRF user journeys such as Quote, Apply, and Verify with structured routing and test data.

Quick Start

Read the UI test skill's guidelines and run the provided implementation checklist to scaffold your first end-to-end test suite.

Frequently Asked Questions about ui-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Playwright and Cucumber end-to-end tests for frontend journeys?

Automate Playwright and Cucumber end-to-end tests by generating structured test suites with page objects, feature files, and step definitions for frontend user journeys. This approach provides test support scaffolding that aligns with repository structure and coding rules.

What is the best way to scaffold E2E test projects using Gherkin and page objects?

Scaffold E2E test projects by generating feature files with Gherkin syntax and page objects for UI interactions. This structure accelerates test development and maintenance while ensuring consistent routing and test data across user journeys.

Can I use Playwright with Cucumber for boundary-type and residential flow testing?

Playwright with Cucumber supports boundary-type, residential, and verification frontend testing scenarios. It generates step definitions and page objects specifically mapped to these user journeys, providing structured test data and routing.

How do I set up a frontend test automation suite with step definitions and feature files?

Set up frontend test automation by generating a structured test project containing step definitions, feature files, and page objects. Apply the provided guidelines and implementation checklist to scaffold the initial end-to-end test suite.

Do I need specific test support scaffolding to run E2E tests for Quote and Apply user flows?

E2E tests for Quote and Apply user flows require test support scaffolding including page objects, feature files, and step definitions. Generating this structured test project ensures consistent testing across key frontend journeys.

Why use a page object model when automating frontend E2E tests with Playwright?

A page object model structures frontend E2E tests with Playwright by separating UI element interactions from test logic in step definitions. This reduces maintenance effort and ensures consistent test support scaffolding across feature files.