umbraco-playwright-testhelpers

Provide Playwright fixtures and API helpers for Umbraco backoffice end-to-end testing.

4|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/albanist/umbraco_CLI --skill umbraco-playwright-testhelpers-albanist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: umbraco-playwright-testhelpers
Source: https://github.com/albanist/umbraco_CLI/tree/main/skills/testing/umbraco-playwright-testhelpers
Command: npx skills add https://github.com/albanist/umbraco_CLI --skill umbraco-playwright-testhelpers-albanist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides essential tools and abstractions to streamline the process of writing end-to-end tests for Umbraco backoffice applications, reducing boilerplate code and improving test reliability.

Core Features & Use Cases

  • API Helpers: Interact with the Umbraco Management API for fast test setup and teardown (e.g., creating content, document types).
  • UI Helpers: Automate interactions with the Umbraco backoffice UI (e.g., navigation, clicking elements, setting editor values).
  • Constants: Access predefined constants for Umbraco sections, actions, and buttons, ensuring consistency.
  • Use Case: You need to write an E2E test to verify that a new content item can be created, populated with data, and published. This Skill provides the umbracoApi to create the content type and the umbracoUi to interact with the editor and publish the content.

Quick Start

Use the umbracoApi to create a new document type named 'MyTestDocType'.

Frequently Asked Questions about umbraco-playwright-testhelpers

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

FAQPage Schema
How do I write E2E tests for the Umbraco backoffice without boilerplate code?

To write E2E tests for the Umbraco backoffice without boilerplate, use Playwright fixtures and UI helpers that automate content management, document type manipulation, and editor interactions. This streamlines test creation and improves overall test reliability.

Can I use Playwright to automate Umbraco Management API setup and teardown?

Yes, you can use Playwright to automate Umbraco Management API setup and teardown. Dedicated API helpers allow you to quickly create and manipulate content and document types, providing fast test initialization for your Umbraco backoffice instances.

Does this testing framework support automating UI interactions within the Umbraco backoffice?

Yes, this testing framework supports automating UI interactions within the Umbraco backoffice. It provides UI helpers to automate navigation, click elements, and set editor values, while also offering constants for common Umbraco sections and buttons to ensure consistency.

What is the best way to create and publish content items in Umbraco E2E testing?

The best way to create and publish content items in Umbraco E2E testing is combining API and UI helpers. Use API helpers to create the document type and UI helpers to interact with the editor, populate data, and execute the publish action automatically.

Do I need predefined constants for Umbraco sections and actions in my test automation?

You need predefined constants for Umbraco sections and actions to ensure consistency in your test automation. These constants provide reliable references for common Umbraco elements, reducing selection errors and making your E2E tests more robust.