Playwright
UmbNav uses Playwright for end-to-end testing of the backoffice user interface. These tests verify that editors can create, modify, and manage navigation items.
Setup
Prerequisites
Installation
cd Umbraco.Community.UmbNav
# Install dependencies
npm install
# Install Playwright browsers
npx playwright installEnvironment Configuration
UMBRACO_URL=https://localhost:44302
[email protected]
UMBRACO_PASSWORD=your-passwordRunning Tests
All Tests
Specific Test File
Headed Mode (See Browser)
Debug Mode
Specific Browser
Generate Report
Test Structure
Test Examples
Adding a Content Item
Validation Test
Configuration-Based Test
Configuration
playwright.config.ts
Using Umbraco Test Helpers
Selectors for UmbNav Components
Main Property Editor
Add Buttons
Menu Items
Modals
Writing New Tests
Test Template
Best Practices
Debugging
Debug Mode
Trace Viewer
Screenshots
Videos
CI Integration
Last updated
Was this helpful?