Skip to content

Fixes #38295, #38296 follow-up: unpin the fixed pagination bugs and re-tag their Playwright tests - #38651

Merged
chirag-madlani merged 1 commit into
mainfrom
test/unpin-fixed-pagination-bugs
Nov 25, 2026
Merged

chirag-madlani merged 1 commit into
mainfrom
test/unpin-fixed-pagination-bugs

Conversation

@chirag-madlani

Copy link
Copy Markdown
Collaborator

Fixes #38650

Describe your changes:

The two pagination bugs the browser tests pinned are fixed on main: #38295 (Data Models / Stored Procedures tabs reset to page 1 after Next) in #38309, and #38296 (six list pages fetch twice per page change) in #38308. This removes what was left of the pins:

  • Removes knownIssues: { duplicateFetchOnPageChange } from the Bots, Notification alerts, Policies, Roles, Service version and Classification tags browser tests.
  • Removes the now-unused knownIssues option from paginationContract.ts (the failing map, the it wrapper around test.fails, and the ContractTest type only they used). The "requests per page change" single-fetch assertion is now unconditional for every list page.
  • Re-tags the 4 Stored Procedures / Data Models tests in playwright/e2e/Features/Pagination.spec.ts with migratedTo.browser(...) (StoredProcedureTab.browser.test.tsx, ServiceDataModels.browser.test.tsx). Per the marker convention they keep running until the replacements are validated and deleted.
  • Updates PAGINATION_MIGRATION.md: 35 of 39 tests tagged, 4 untagged (2 real-server smoke tests, 2 Topic schema fields tests); known-issues table marked fixed in Fixes #38295: keep Data Models and Stored Procedures pagination in sync #38309 / Fixes #38296: prevent duplicate list fetches on pagination #38308.

The Playwright diff is re-indentation from wrapping each test with the tag; git diff -w shows only the 4 added migratedTo.browser(...) arguments.

Type of change:

  • Improvement

Tests:

  • yarn test:ui:run on the 8 affected browser test files (6 unpinned + StoredProcedureTab + ServiceDataModels): 8 files, 25 tests passed, 0 skipped, with the single-fetch assertion enforced.
  • npx playwright test --list playwright/e2e/Features/Pagination.spec.ts --grep @migrated-browser: 35 of the file's 39 tests listed, including the 4 re-tagged ones (Stored Procedures normal / search, Data Models normal / search). The 4 untagged: Users search, Table columns pagination, the 2 Topic schema fields tests.
  • yarn tsc:playwright: passes. yarn tsc:check: 34 errors, all in src/utils/SSOUtils.test.ts and src/utils/ChartDetailsUtils.test.tsx, which this PR does not touch; none in the changed files.
  • organize-imports + ESLint --fix + Prettier on the changed files: no errors, no diff. yarn lint:playwright: 0 errors (193 pre-existing warnings). Pre-commit hooks passed.
  • The Playwright tests themselves were not run (only listed); this PR changes their tags, not their bodies.

🤖 Generated with Claude Code

… tests

#38309 and #38308 fixed the Data Models / Stored Procedures page reset and the duplicate fetch on page change, so the browser tests no longer need the knownIssues escape hatch: the single-fetch assertion in paginationContract is now unconditional, the option is removed, the four Playwright tests for those tabs are tagged @migrated-browser again, and PAGINATION_MIGRATION.md reflects 35 tagged / 4 untagged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chirag-madlani
chirag-madlani requested a review from a team as a code owner November 25, 2026 06:10
@chirag-madlani
chirag-madlani requested review from Rohit0301 and a balanced review from Copilot November 25, 2026 06:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@gitar-bot

gitar-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

Only pagination test harnesses, tags, and migration notes change; the unconditional assertion strengthens validation without altering production behavior.

Removes the duplicateFetchOnPageChange known-issue pins from six browser test files and the now-unused knownIssues option from paginationContract.ts, enforcing the single-fetch assertion on every list page. Also re-tags four Stored Procedures and Data Models Playwright tests with migratedTo.browser(...) and updates PAGINATION_MIGRATION.md. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@github-actions

Copy link
Copy Markdown
Contributor

UI browser tests

Ran: all test files (no impact map from main yet)

Result: ✅ 1071 passed · 154 skipped

@chirag-madlani
chirag-madlani merged commit 11c16fc into main Nov 25, 2026
55 of 56 checks passed
@chirag-madlani
chirag-madlani deleted the test/unpin-fixed-pagination-bugs branch November 25, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the browser-test pins for the fixed pagination bugs and re-tag their Playwright tests

3 participants