Skip to content

test: re-enable undefined-size grid scroll regression checks#9760

Merged
web-padawan merged 2 commits into
mainfrom
fix/9166-reenable-undefined-size-it
Jul 20, 2026
Merged

test: re-enable undefined-size grid scroll regression checks#9760
web-padawan merged 2 commits into
mainfrom
fix/9166-reenable-undefined-size-it

Conversation

@web-padawan

Copy link
Copy Markdown
Member

Description

Re-enable the disabled steps in the ItemCountUnknownGridIT scroll-to-end test and drop the stale FIXME. The grid no longer fetches extra earlier ranges after the item count shrinks from an estimate to the real size, so assert that scrolling around after the size is adjusted keeps the size and does not trigger unnecessary fetches.

Related to vaadin/flow#9166

Type of change

  • Test

Re-enable the disabled steps in the ItemCountUnknownGridIT scroll-to-end test and drop the stale #1038 / #9166 FIXME. The grid no longer fetches extra earlier ranges after the item count shrinks from an estimate to the real size, so assert that scrolling around after the size is adjusted keeps the size and does not trigger unnecessary fetches.

Part of #9166

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@web-padawan
web-padawan requested a review from vursen July 17, 2026 16:41

@vaadin-review-bot vaadin-review-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed the changes — left 1 comment.

Finding
👀 The re-enabled regression assertion uses a coarse total-fetch-count bound that may not actually fail on the pre-fix behavior it targets.

Replace the total fetch-count ceiling with a check that scrolling after the size is adjusted only fetches the visited viewports, never the ranges in between. This catches an off-viewport refetch regardless of count and avoids flakiness from viewport variance.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@web-padawan
web-padawan added this pull request to the merge queue Jul 20, 2026
Merged via the queue into main with commit b766798 Jul 20, 2026
24 checks passed
@web-padawan
web-padawan deleted the fix/9166-reenable-undefined-size-it branch July 20, 2026 07:52
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.

3 participants