feat(dcm): add Playwright E2E test suite for DCM RHDH plugin#3249
Open
hardengl wants to merge 3 commits into
Open
feat(dcm): add Playwright E2E test suite for DCM RHDH plugin#3249hardengl wants to merge 3 commits into
hardengl wants to merge 3 commits into
Conversation
46 browser-based E2E tests covering the full DCM Data Center UI: - Smoke tests: navigation, 6 tabs, seed data verification, API proxy - Providers CRUD: register, edit, search, delete - Policies CRUD: create GLOBAL/USER, toggle, edit, delete - Catalog items: Pet Clinic, create/edit/delete, YAML import - Instances: create dialog, empty state - Regressions: deep link, delete guard, search+pagination, toggle persistence, chip/switch sync, read-only name, whitespace validation, success snackbar, empty table rows, rows-per-page persistence Includes Playwright config, page object (DcmPage), auth fixture, and YAML test data fixtures. Follows rhdh-plugins workspace conventions. Ref: FLPATH-3241, FLPATH-4200 Co-authored-by: Cursor <cursoragent@cursor.com>
Changed Packages
|
Addresses SonarQube security hotspots (typescript:S2245) flagging Math.random() as weak PRNG. Uses globalThis.crypto to satisfy both SonarQube and ESLint no-restricted-globals rule. Co-authored-by: Cursor <cursoragent@cursor.com>
Add missing lockfile entries for @playwright/test, playwright, and playwright-core to fix immutable install failure in CI. Co-authored-by: Cursor <cursoragent@cursor.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Adds a comprehensive Playwright E2E test suite (46 tests) for the DCM (Data Center Management) RHDH plugin, covering all major UI workflows verified against a live deployment.
Files Added
playwright.config.tse2e-tests/pages/DcmPage.tse2e-tests/fixtures/auth.tsperformGuestLoginauth setupe2e-tests/fixtures/dcm/*.yamle2e-tests/dcm-smoke.test.tse2e-tests/dcm-providers.test.tse2e-tests/dcm-policies.test.tse2e-tests/dcm-catalog-items.test.tse2e-tests/dcm-regressions.test.tse2e-tests/app.test.tspackage.json@playwright/testdev dependencyJIRA Coverage
All tests are tagged with JIRA IDs. Covers verification of 21 ON_QA stories under FLPATH-3241, including regression tests for FLPATH-4111 and FLPATH-4112.
Test plan
npx playwright testpasses against a live RHDH deployment with DCM pluginMade with Cursor