Repository navigation
test(playwright): page to the Search Indexing card [2.0 backport of #32295] - #33194
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
…32295] Settings > Applications paginates at PAGE_SIZE_BASE (15). Since #33098 made RdfIndexApp installable with RDF disabled, the Search Indexing card sits on page 2 in Collate 2.0, so the specs that clicked it on page 1 time out. Backports only the paging part of #32295: - playwright/utils/applications.ts: expectApplicationInstalled and openApplicationDetails, which page the installed list until the card shows - LiveIndexingTab.spec.ts, SearchIndexApplication.spec.ts: open the card via openApplicationDetails and assert the reinstall with expectApplicationInstalled Left out: the marketplace-loop refactor, the TestDefinitionPermissions fix and the suppression-baseline updates that went with them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
a0c9e35 to
16d3457
Compare
Code Review 👍 Approved with suggestions 0 resolved / 1 findingsAdds paging helpers and applies them to Search Indexing app card clicks across multiple specs, fixing timeout failures when the card lands on page 2 of the installed applications list. The post-uninstall check in 💡 Quality: Post-uninstall check only inspects page 1 of installed list📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SearchIndexApplication.spec.ts:432-436 This PR exists precisely because the SearchIndexing card now lands on page 2 of the installed-apps list, yet the post-uninstall assertion was changed from the paging-aware 🤖 Prompt for agentsOptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
✅ Playwright Results — workflow succeededValidated commit ✅ 562 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 48m 39s ⏱️ Max setup 3m 8s · max shard execution 17m 35s · max shard-job elapsed before upload 21m 29s · reporting 4s 🌐 207.77 requests/attempt · 2.81 app boots/UI scenario · 3.13% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Describe your changes:
Minimal backport of #32295 to
2.0: only the paging fix. #32295 shipped without a linked issue, so this backport has none either.Settings > Applications paginates at
PAGE_SIZE_BASE(15). On2.0these specs click the Search Indexing card without paging, and they started failing as 60s click timeouts in the 11 Sep AUT nightly1.11.13 ➡ 2.0(runs34563613272mysql,34563617983postgres), identically on both databases:LiveIndexingTab.spec.ts:89,:140,:180SearchIndexApplication.spec.ts:258The trigger is #33098 (single-writer RDF reindex backport). Its
RdfIndexAppconstructor now resolves the repository lazily (getInstanceOrNull()+rdf()), so with RDF disabled the default install inAppResource.loadDefaultApplicationssucceeds instead of throwingRdfRepository not initializedand being skipped.RdfIndexAppsorts beforeSearchIndexingApplication, takes slot 15, and pushes the card to page 2. In the failing trace,GET /api/v1/apps?limit=15returnstotal: 18with page 1 ending atRdfIndexApp; the last green run (10 Sep) had noRdfIndexAppinstalled. #33098 is correct; the specs' page-1 assumption is the bug.Changes:
playwright/utils/applications.ts:expectApplicationInstalledandopenApplicationDetails, which page the installed list until the card is on screen. Same names and call signatures as onmain, so later backports that use them apply cleanly.LiveIndexingTab.spec.ts: the three card clicks go throughopenApplicationDetails.SearchIndexApplication.spec.ts: the two card clicks go throughopenApplicationDetails, and the post-reinstalltoBeVisible()becomesexpectApplicationInstalled— once the card is on page 2 that assertion would fail too.Not backported from #32295, as this failure doesn't need them: the marketplace-loop refactor in
installSearchIndexApplication, theTestDefinitionPermissionssteward-switch fix, the Data Insights guard inLiveIndexingTab,expectApplicationNotInstalled, and theeslint-suppressions.json/corpus.test.mjsupdates that went with them. The suppressed.first()calls in these specs are untouched, so the suppression baseline is unchanged.Type of change:
High-level design:
N/A — small test-only backport, no product code.
Tests:
Use cases covered
SearchIndexApplication.spec.ts, the reinstalled app is found on any page of the installed list.Unit tests
Not applicable — test-only change.
yarn test:eslint-rules: 22/22 pass.Backend integration tests
Not applicable — no backend changes.
Ingestion integration tests
Not applicable — no ingestion changes.
Playwright (UI) tests
Files updated:
playwright/utils/applications.tsplaywright/e2e/Pages/LiveIndexingTab.spec.tsplaywright/e2e/Pages/SearchIndexApplication.spec.tsVerified on this branch with
2.0's own dependencies:yarn lint:playwright: 0 errors (229 existing warnings); suppression baseline unchanged.eslint --fix→ prettier on the changed files: no diff.yarn tsc:playwright: no errors on changed lines. The twoTS2345errors reported inSearchIndexApplication.spec.tsare on untouchedgetAppRunRecord(response)calls and exist independently of this change.The four tests have not been run locally — no stack to run them against; CI and the next
2.0AUT nightly will confirm.Manual testing performed
Not applicable — see above.
UI screen recording / screenshots:
Not applicable — test-only change.
Checklist:
Fixes <issue-number>: <short explanation>— N/A: backport of test(playwright): page to the app card; anchor the steward switch #32295, which has no linked issue.Fixes #<issue-number>above — N/A: same.🤖 Generated with Claude Code