playwright-scenario-test

Automate end-to-end web scenario tests with pytest-playwright and NDF.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/takemi-ohama/ai-plugins --skill playwright-scenario-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-scenario-test
Source: https://github.com/takemi-ohama/ai-plugins/tree/main/plugins/ndf/skills/playwright-scenario-test
Command: npx skills add https://github.com/takemi-ohama/ai-plugins --skill playwright-scenario-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, pytest, pytest-playwright, pytest-xdist, axe-playwright-python, google-api-python-client, google-auth, google-auth-oauthlib, imageio-ffmpeg, pyyaml, and includes scripts (resource) components.

What problem does it solve?

This Skill provides an end-to-end testing framework that coordinates Playwright-based web scenario tests with PyTest and NDF integrations, enabling consistent, repeatable evidence collection and reporting.

Core Features & Use Cases

  • Orchestrates pytest-playwright tests with dynamic role-based logins and storage_state caching.
  • Automatically runs a11y (axe-core) and CWV checks for selected page roles, and collects traces, HARs, videos, and console logs.
  • Generates a unified markdown report and can upload artifacts to Google Drive for sharing.

Quick Start

Run tests with uv run pytest --ndf-config=./scenario.config.yaml to generate the run report.

Frequently Asked Questions about playwright-scenario-test

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

FAQPage Schema
How do I automate end-to-end web scenario testing with Playwright and pytest?

Automate end-to-end web scenario testing by orchestrating pytest-playwright tests with role-based login fixtures, a11y and CWV scanning, and consolidated markdown evidence reporting configured via scenario.config.yaml.

Can I run accessibility and Core Web Vitals checks during Playwright E2E tests?

Yes, you can run accessibility and Core Web Vitals checks during Playwright E2E tests by integrating axe-playwright-python to automatically scan selected page roles and collect performance metrics.

How do I manage role-based logins in pytest-playwright tests without repeating authentication?

Manage role-based logins in pytest-playwright tests using dynamic role fixtures and storage_state caching, which securely persist authentication sessions across multiple test cases to avoid repeating logins.

Does this E2E testing framework support uploading test artifacts to Google Drive?

Yes, the E2E testing framework supports uploading test artifacts to Google Drive by integrating google-api-python-client to automatically share collected traces, HARs, videos, and consolidated markdown reports.

What is the best way to configure and run pytest-playwright scenario tests for a whole project?

The best way to configure pytest-playwright scenario tests for a whole project is defining settings in scenario.config.yaml, then executing tests with uv run pytest --ndf-config=./scenario.config.yaml to generate the run report.

What kind of evidence and artifacts are collected during Playwright web scenario testing?

Playwright web scenario testing collects comprehensive evidence including execution traces, HAR network logs, screen videos, console logs, and a unified markdown report consolidating a11y and CWV scan results.