E2E: QA: add acceptance tests for content versioning#22702
E2E: QA: add acceptance tests for content versioning#22702
Conversation
|
Claude finished @andr317c's task in 2m 57s —— View job PR ReviewTarget: Adds 6 E2E acceptance tests for content rollback (versioning), along with two new API helpers for building test data and one new UI helper for the rollback cancel button. Important
Suggestions
Approved with Suggestions for improvementGood to go, but please carefully consider the importance of the suggestions. The test coverage is well-structured and covers the key rollback scenarios (invariant, variant, name restore, cancel, audit trail, tree action). The two new |
There was a problem hiding this comment.
Pull request overview
Adds Playwright acceptance coverage around content rollback/versioning flows in the Backoffice, including audit trail verification and a new UI helper affordance for cancelling rollback.
Changes:
- Introduces a new
ContentVersioning.spec.tssuite covering rollback via info tab, tree action menu, audit trail, variants, name restoration, and cancel behavior. - Extends
DocumentApiHelperwith helpers to create published documents with two versions (invariant + en-US variant). - Extends
ContentUiHelperwith a locator + method to cancel the rollback modal.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentVersioning.spec.ts | New E2E tests validating rollback behavior, including audit trail and cancel scenarios. |
| tests/Umbraco.Tests.AcceptanceTest/lib/helpers/DocumentApiHelper.ts | Adds API helpers to create content with two published versions to support rollback scenarios. |
| tests/Umbraco.Tests.AcceptanceTest/lib/helpers/ContentUiHelper.ts | Adds a rollback-cancel button locator and click helper for the rollback modal. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
No description provided.