Skip to content

Add Playwright end-to-end tests for the uSync dashboard - #1111

Merged
KevinJump merged 1 commit into
v17/mainfrom
feature/playwright-e2e
Oct 7, 2026
Merged

KevinJump merged 1 commit into
v17/mainfrom
feature/playwright-e2e

Conversation

@KevinJump

Copy link
Copy Markdown
Owner

Adds a uSync.Tests.E2E project with Playwright tests that drive the uSync backoffice in a real Umbraco site, using @umbraco/playwright-testhelpers.

What's in it

  • playwright.config.ts starts uSyncSource.Site on https://localhost:44398 when it isn't already running, or reuses it when it is. Setting UMBRACO_URL points the tests at another site instead.
  • tests/auth.setup.ts signs in once and saves the session. It defaults to the unattended install user from the UMBRACO__CMS__UNATTENDED__* environment variables; UMBRACO_USER_LOGIN / UMBRACO_USER_PASSWORD override that.
  • tests/usync-dashboard.spec.ts has three tests: uSync opens from the settings menu, the Settings group shows Report / Import / Export, and a Settings report runs to completion.
  • Root package.json gains install-e2e and test-e2e scripts.

Local only

These are not wired into the workflows. The test sites are gitignored, so CI has nothing to run them against.

Notes

  • tslib is listed as a dev dependency because the testhelpers need it but don't declare it.
  • The testhelpers are pinned to the 17.x line (latest on npm is 18).

Testing

npm run test-e2e passes locally: 4 passed (auth setup plus the three dashboard tests).

🤖 Generated with Claude Code

A new uSync.Tests.E2E project, using @umbraco/playwright-testhelpers, with
smoke tests for the uSync dashboard: it opens from the settings menu, shows
the actions for a group, and can run a report.

The tests run locally against uSyncSource.Site, which Playwright starts when
it isn't already running. They are not wired into the workflows, as the test
sites are not in the repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant