test(e2e): scope Data Quality permissions Playwright helpers to fixture#27238
test(e2e): scope Data Quality permissions Playwright helpers to fixture#27238shah-harshit merged 2 commits intomainfrom
Conversation
Initialize PolicyClass, RolesClass, UserClass, and TableClass inside the Playwright worker fixture instead of module scope to avoid cross-worker shared state (collate#3610). Made-with: Cursor
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
🟡 Playwright Results — all passed (23 flaky)✅ 3595 passed · ❌ 0 failed · 🟡 23 flaky · ⏭️ 207 skipped
🟡 23 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Code Review ✅ ApprovedScopes Data Quality permissions Playwright helpers to fixture for better test isolation. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
|
Failed to cherry-pick changes to the 1.12.5 branch. |
…a#27238) Initialize PolicyClass, RolesClass, UserClass, and TableClass inside the Playwright worker fixture instead of module scope to avoid cross-worker shared state (collate#3610). Made-with: Cursor
…a#27238) Initialize PolicyClass, RolesClass, UserClass, and TableClass inside the Playwright worker fixture instead of module scope to avoid cross-worker shared state (collate#3610). Made-with: Cursor



Related
https://github.com/open-metadata/openmetadata-collate/issues/3610
Summary
Refactors

DataQualityPermissions.spec.tssoPolicyClass,RolesClass,UserClass, andTableClassinstances are created inside the Playwright worker fixture instead of at module scope. This avoids shared mutable state across parallel workers and improves reliability of the Data Quality permissions E2E suite.Test plan
yarn playwright:runwith filter forDataQualityPermissions.spec.tsMade with Cursor