Refactor: DataQualityAndProfiler spec and created DataQuality.spec and Profiler.spec#25371
Refactor: DataQualityAndProfiler spec and created DataQuality.spec and Profiler.spec#25371ShaileshParmar11 merged 2 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request refactors the large DataQualityAndProfiler.spec.ts test file by splitting it into two focused files: DataQuality.spec.ts and Profiler.spec.ts. Additionally, it improves code readability in the testCases.ts utility file by reformatting multi-line statements, removing unnecessary timeouts, and applying consistent async/await patterns.
Changes:
- Split DataQualityAndProfiler.spec.ts (1481 lines) into DataQuality.spec.ts (1265 lines) and Profiler.spec.ts (403 lines) for better test organization
- Improved code formatting in testCases.ts utility functions with better indentation and consistent multi-line patterns
- Removed custom timeout parameters from selectors, relying on Playwright's default behavior for better reliability
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| openmetadata-ui/src/main/resources/ui/playwright/utils/testCases.ts | Reformatted async/await patterns, improved readability of multi-line statements, removed unnecessary timeout parameters from selectors |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/DataQualityAndProfiler.spec.ts | Deleted - split into separate DataQuality and Profiler specs |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/Profiler.spec.ts | New file containing profiler-specific tests with role access validation and profiler settings configuration |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/DataQuality.spec.ts | New file containing data quality test cases, filters, and pagination functionality |
🔍 CI failure analysis for 2984866: Single CI failure in ServiceForm test with 10 flaky tests detected, all unrelated to this PR's DataQuality refactoring changes.Issueplaywright-ci-postgresql job (shard 3/6, job 60785271999) failed with: 1 Hard Failure:
10 Flaky Tests:
Root CauseThese failures are unrelated to the PR changes. This PR only modified:
The failing tests are in completely different areas (ServiceForm, Settings, Permissions) that have no code relationship to the DataQuality test reorganization. DetailsThe failures show classic flaky/environmental patterns:
The test reorganization in this PR is purely structural - splitting one file into two focused files with identical test logic. Code Review ✅ ApprovedClean test file reorganization that improves maintainability by splitting a 1481-line monolithic test file into focused DataQuality.spec.ts and Profiler.spec.ts files, with consistent formatting applied throughout utility functions. What Works WellGood separation of concerns - profiler tests are now isolated from data quality tests, making it easier to run and maintain specific test suites. Lifecycle hooks (beforeAll, afterAll, beforeEach) are properly scoped inside test.describe blocks, improving test isolation. Removal of hardcoded timeouts in favor of Playwright defaults reduces test flakiness. Rules 🎸 2 actions takenGitar Rules
1 rule not applicable. Show all rules by commenting Tip Comment OptionsAuto-apply is off Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | This comment will update automatically (Docs) |
|



Describe your changes:
This pull request refactors several utility functions in
testCases.tsto improve code readability and maintainability by reformatting multi-line statements, removing unnecessary timeouts, and consistently applying async/await patterns. The changes focus on making the code style more consistent and easier to follow, especially around Playwright test steps and file operations.Code style and readability improvements:
verifyPageAccess,navigateToBulkEditPage, andaddTestCaseValidationRows, ensuring consistent indentation and code structure. [1] [2] [3]cleanupDownloadedCSVandperformE2EExportImportFlow. [1] [2]Test step consistency and reliability:
Bulk edit and import/export flow enhancements:
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
e2e/Pages/DataQualityAndProfiler.spec.ts(1,481 lines) into focusedDataQuality.spec.tsandProfiler.spec.tsine2e/Features/DataQuality/test.describeblocks with proper tagging and moved lifecycle hooks inside describe scopesutils/testCases.tsfor improved readabilityThis will update automatically on new commits.