wsbaser:union-testing

Enforce Union.Playwright.NUnit usage across C# E2E tests and page objects.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/wsbaser/claude-plugins --skill wsbaser-union-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wsbaser:union-testing
Source: https://github.com/wsbaser/claude-plugins/tree/main/plugins/wsbaser/skills/union-testing
Command: npx skills add https://github.com/wsbaser/claude-plugins --skill wsbaser-union-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces Union.Playwright.NUnit usage across E2E tests, page objects, mocks, and test infrastructure to promote consistent patterns and reduce accidental reliance on raw Playwright APIs.

Core Features & Use Cases

  • Standardizes test authoring by requiring the use of Go.ToPage<T>() / Go.ToUrl() for navigation and [UnionInit]-bound UnionElement properties for interactions.
  • Guides component composition with ContainerBase, ListBase, and ItemBase to ensure reliable initialization, scoping, and retry semantics across pages and dialogs.
  • Supports scenario-based workflows and service-based test infrastructure to enable reusable, end-to-end test scenarios across multiple tests.

Quick Start

Begin by converting test pages to UnionPage-based navigation and replacing raw Playwright interactions with UnionInit-bound elements.

Frequently Asked Questions about wsbaser:union-testing

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

FAQPage Schema
How do I enforce consistent Playwright E2E testing patterns in C# NUnit projects?

Enforce Playwright E2E testing patterns by standardizing navigation with Go.ToPage<T>() and using [UnionInit]-bound UnionElement properties for interactions instead of raw Playwright APIs. This ensures consistent, reliable test infrastructure across C# projects.

What is the best way to manage page objects and component composition for .NET E2E tests?

Manage page objects by composing components with ContainerBase, ListBase, and ItemBase classes. This approach ensures reliable initialization, proper scoping, and consistent retry semantics across pages and dialogs in your .NET E2E tests.

Can I use raw Playwright APIs alongside Union page objects in test automation?

Raw Playwright APIs should be replaced with Union patterns to reduce accidental reliance. Convert test pages to UnionPage-based navigation and use [UnionInit]-bound elements for deterministic interactions and reliable state-management practices.

How do I start migrating existing test projects to Union-based E2E test automation?

Begin migration by converting test pages to UnionPage-based navigation and replacing raw Playwright interactions with [UnionInit]-bound elements. Apply ContainerBase, ListBase, and ItemBase to guide component composition for reliable initialization.

Why do my Playwright E2E tests have unreliable initialization and scoping across pages?

Unreliable initialization and scoping occur when bypassing UnionBase classes. Guide component composition with ContainerBase, ListBase, and ItemBase to ensure proper scoping, reliable initialization, and consistent retry semantics across pages and dialogs.

Does wsbaser:union-testing support scenario-based workflows for end-to-end test automation?

wsbaser:union-testing supports scenario-based workflows and service-based test infrastructure. This enables reusable, end-to-end test scenarios across multiple tests, ensuring reliable and deterministic E2E testing with Playwright and NUnit.