
Umbraco E2e Testing
This walks you through E2E testing Umbraco backoffice extensions with Playwright, and it's pretty opinionated about using the official testhelpers package for anything touching core Umbraco. The key insight here is that Umbraco uses data-mark attributes instead of data-testid, and the auth token management is complex enough that you'll save time using their helpers. You write raw Playwright selectors only for your custom UI components. The setup is thorough with auth state management, API fixtures for test data, and builders for creating valid Umbraco entities. Good fit if you're building backoffice extensions and need to test complete workflows against a real running instance rather than mocked backends.
- skills.sh installs
- 380
- GitHub stars
- 27
- last updated
- Aug 21, 2026
Install
$ npx -y skills add umbraco/umbraco-cms-backoffice-skills --skill umbraco-e2e-testing --agent claude-codeInstalls into .claude/skills of the current project.
Files
Umbraco E2E Testing
End-to-end testing for Umbraco backoffice extensions using Playwright and @umbraco-cms/acceptance-test-helpers. This approach tests against a real running Umbraco instance, validating complete user workflows.
Critical: Use Testhelpers for Core Umbraco
Use @umbraco-cms/acceptance-test-helpers for core Umbraco operations:
| Package | Purpose | Why Required |
|---|---|---|
@umbraco-cms/acceptance-test-helpers | UI and API helpers | Handles auth, navigation, core entity CRUD |
@umbraco/json-models-builders | Test data builders | Creates valid Umbraco entities with correct structure |
Why use testhelpers for core Umbraco?
- Umbraco uses
data-markinstead ofdata-testid- testhelpers handle this - Auth token management is complex - testhelpers manage
STORAGE_STAGE_PATH - API setup/teardown requires specific payload formats - builders ensure correctness
- Selectors change between versions - testhelpers abstract these away
// WRONG - Raw Playwright for core Umbraco (brittle)
await page.goto('/umbraco');
await page.fill('[name="email"]', 'admin@example.com');
Sponsors
Details
- Repository
- github.com/umbraco/umbraco-cms-backoffice-skills
- Categories
- Testing & QA, .NET & C#
- First seen
- Jun 3, 2026
More from umbraco/umbraco-cms-backoffice-skills
All 76- Umbraco Msw Testing379
- Umbraco Unit Testing374
- Umbraco Test Builders370
- Umbraco Testing368
- Umbraco Backoffice447
- Umbraco Controllers418
- Umbraco Dashboard418
- Umbraco Extension Template413
- Umbraco Quickstart406
- Umbraco Openapi Client405
- Umbraco Property Editor Ui405
- Umbraco Extension Registry403
- Umbraco Notifications403
- Umbraco Add Extension Reference402
- Umbraco Context Api402
- Umbraco Routing401
- Umbraco Entity Create Option Action400
- Umbraco Menu Items400
- Umbraco Mfa Login Provider400
- Umbraco Repository Pattern400
- Umbraco Auth Provider399
- Umbraco Dynamic Root399
- Umbraco Collection View398
- Umbraco Entity Bulk Actions398