umbraco avatar

Umbraco Playwright Testhelpers

This is the official Playwright test helper package for Umbraco CMS, and it's genuinely well designed. You get two main fixtures: umbracoApi for fast backend setup via HTTP (content, document types, data types, media, users, the whole stack), and umbracoUi for clicking through the backoffice when you actually need to test the interface. The API helpers are idempotent with ensureNameNotExists patterns, so your tests clean up reliably. The UI helpers wrap Playwright locators with Umbraco-specific selectors like data-element attributes and section constants. If you're writing E2E tests for Umbraco extensions or custom implementations, this beats maintaining your own helper layer. It covers the repetitive stuff like CSRF tokens, tree navigation, and editor interactions.

skills.sh installs
384
GitHub stars
27
last updated
Aug 21, 2026

Install

$ npx -y skills add umbraco/umbraco-cms-backoffice-skills --skill umbraco-playwright-testhelpers --agent claude-code

Installs into .claude/skills of the current project.

Files

Umbraco Playwright Testhelpers

What is it?

@umbraco/playwright-testhelpers is the official Umbraco package that provides Playwright fixtures, API helpers, and UI helpers for writing E2E tests against an Umbraco backoffice instance.

Repository: https://github.com/umbraco/Umbraco.Playwright.Testhelpers

Installation

npm install @umbraco/playwright-testhelpers --save-dev

Related Skills

  • umbraco-e2e-testing - E2E test patterns using these helpers
  • umbraco-test-builders - JsonModels.Builders (used internally by testhelpers)
  • umbraco-testing - Master skill for testing overview

Package Exports

The package exports these main items:

import {
  test,              // Extended Playwright test with fixtures
  ApiHelpers,        // Direct API helper class
  UiHelpers,         // Direct UI helper class
  ConstantHelper,    // Constants for sections, actions, buttons
  AliasHelper,       // Alias generation utilities
  JsonHelper         // JSON parsing utilities
} from '@umbraco/playwright-testhelpers';

Test Fixtures

Sponsors

Details

Repository
github.com/umbraco/umbraco-cms-backoffice-skills
Categories
Backend & APIs, Testing & QA, .NET & C#
First seen
Jun 3, 2026

More from umbraco/umbraco-cms-backoffice-skills

All 76
1levnikolaevich avatarln-772-error-handler-setuplevnikolaevich/claude-code-skillsConfigures global exception handling middleware. Use when adding centralized error handling to .NET or Python backends.382skills.sh installs
2tomlord1122 avatargolang-architecttomlord1122/tomtom-skillSoftware Architect specializing in Go projects. Use when designing any Go application — backend services, CLI tools, libraries, infrastructure tooling, or distr382skills.sh installs
3umbraco avatarumbraco-msw-testingumbraco/umbraco-cms-backoffice-skillsMSW (Mock Service Worker) patterns for testing Umbraco backoffice extensions with mocked APIs379skills.sh installs
4levnikolaevich avatarln-771-logging-configuratorlevnikolaevich/claude-code-skillsConfigures structured JSON logging with Serilog (.NET) or structlog (Python). Use when adding logging to backend projects.376skills.sh installs
5kernel avatarkernel-python-sdkkernel/skillsBuild and debug Python browser automation with the Kernel SDK, including browser lifecycle, server-side Playwright, CDP, profiles, proxies, and reliable cleanup373skills.sh installs
60xindiebruh avataropenclaw-mission-control0xindiebruh/openclaw-mission-control-skillCoordinate AI agent teams via a Kanban task board with local JSON storage. Enables multi-agent workflows with a Team Lead assigning work and Worker Agents execu371skills.sh installs