Skip to content

test(e2e): scope Data Quality permissions Playwright helpers to fixture#27238

Merged
shah-harshit merged 2 commits intomainfrom
collate-3610-dq-permissions-e2e
Apr 11, 2026
Merged

test(e2e): scope Data Quality permissions Playwright helpers to fixture#27238
shah-harshit merged 2 commits intomainfrom
collate-3610-dq-permissions-e2e

Conversation

@shah-harshit
Copy link
Copy Markdown
Contributor

@shah-harshit shah-harshit commented Apr 10, 2026

Related

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

Summary

Refactors DataQualityPermissions.spec.ts so PolicyClass, RolesClass, UserClass, and TableClass instances 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.
Screenshot 2026-04-10 at 5 40 12 PM

Test plan

  • Run the targeted Playwright spec, for example: yarn playwright:run with filter for DataQualityPermissions.spec.ts

Made with Cursor

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
@shah-harshit shah-harshit requested a review from a team as a code owner April 10, 2026 11:01
@shah-harshit shah-harshit self-assigned this Apr 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch labels Apr 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 64%
64.27% (59556/92656) 43.76% (31031/70904) 46.94% (9363/19943)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 10, 2026

🟡 Playwright Results — all passed (23 flaky)

✅ 3595 passed · ❌ 0 failed · 🟡 23 flaky · ⏭️ 207 skipped

Shard Passed Failed Flaky Skipped
🟡 Shard 1 456 0 1 2
🟡 Shard 2 637 0 5 32
🟡 Shard 3 647 0 4 26
🟡 Shard 4 616 0 6 47
🟡 Shard 5 606 0 1 67
🟡 Shard 6 633 0 6 33
🟡 23 flaky test(s) (passed on retry)
  • Pages/UserCreationWithPersona.spec.ts › Create user with persona and verify on profile (shard 1, 1 retry)
  • Features/AdvancedSearchSuggestions.spec.ts › Verify suggestions for Database field (shard 2, 1 retry)
  • Features/DataQuality/BundleSuiteBulkOperations.spec.ts › Bulk selection operations (shard 2, 1 retry)
  • Features/DataQuality/TestCaseImportExportE2eFlow.spec.ts › Admin: Complete export-import-validate flow (shard 2, 1 retry)
  • Features/DataQuality/TestCaseIncidentPermissions.spec.ts › User with only VIEW cannot PATCH incidents (shard 2, 1 retry)
  • Features/DataQuality/TestCaseResultPermissions.spec.ts › User with TEST_CASE.EDIT_ALL can see edit action on test case (shard 2, 1 retry)
  • Features/Permissions/GlossaryPermissions.spec.ts › Team-based permissions work correctly (shard 3, 1 retry)
  • Features/TestSuitePipelineRedeploy.spec.ts › Re-deploy all test-suite ingestion pipelines (shard 3, 1 retry)
  • Flow/AddRoleAndAssignToUser.spec.ts › Verify assigned role to new user (shard 3, 1 retry)
  • Flow/ExploreDiscovery.spec.ts › Should display deleted assets when showDeleted is checked and deleted is not present in queryFilter (shard 3, 1 retry)
  • Pages/Customproperties-part2.spec.ts › entityReferenceList shows item count, scrollable list, no expand toggle (shard 4, 1 retry)
  • Pages/DataContracts.spec.ts › Create Data Contract and validate for Table (shard 4, 1 retry)
  • Pages/DataContractsSemanticRules.spec.ts › Validate UpdatedOn Rule Less than (shard 4, 1 retry)
  • Pages/DataProductAndSubdomains.spec.ts › Add assets to data product and verify count (shard 4, 1 retry)
  • Pages/Domains.spec.ts › Comprehensive domain rename with ALL relationships preserved (shard 4, 1 retry)
  • Pages/Entity.spec.ts › Glossary Term Add, Update and Remove for child entities (shard 4, 1 retry)
  • Pages/ExploreTree.spec.ts › Verify Database and Database Schema available in explore tree (shard 5, 1 retry)
  • Pages/LearningResources.spec.ts › should send correct pageId param when filtering by context (shard 6, 1 retry)
  • Pages/Lineage/LineageFilters.spec.ts › Verify lineage schema filter selection (shard 6, 1 retry)
  • Pages/ProfilerConfigurationPage.spec.ts › Non admin user (shard 6, 1 retry)
  • Pages/Users.spec.ts › Permissions for table details page for Data Consumer (shard 6, 1 retry)
  • Pages/Users.spec.ts › Check permissions for Data Steward (shard 6, 1 retry)
  • VersionPages/EntityVersionPages.spec.ts › Directory (shard 6, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@shah-harshit shah-harshit enabled auto-merge (squash) April 10, 2026 12:59
@gitar-bot
Copy link
Copy Markdown

gitar-bot Bot commented Apr 11, 2026

Code Review ✅ Approved

Scopes Data Quality permissions Playwright helpers to fixture for better test isolation. No issues found.

Options

Display: compact → Showing less information.

Comment with these commands to change:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@sonarqubecloud
Copy link
Copy Markdown

@shah-harshit shah-harshit merged commit d76cb14 into main Apr 11, 2026
44 checks passed
@shah-harshit shah-harshit deleted the collate-3610-dq-permissions-e2e branch April 11, 2026 09:58
@github-actions
Copy link
Copy Markdown
Contributor

Failed to cherry-pick changes to the 1.12.5 branch.
Please cherry-pick the changes manually.
You can find more details here.

SaaiAravindhRaja pushed a commit to SaaiAravindhRaja/OpenMetadata that referenced this pull request Apr 12, 2026
…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
SaaiAravindhRaja pushed a commit to SaaiAravindhRaja/OpenMetadata that referenced this pull request Apr 12, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants