Skip to content

test(api): Paginate list-predicate query so matches aren't missed on later scan pages - #7291

Merged
VarshithaPamisetty merged 2 commits into
mainfrom
fix/api-e2e-paginate-list-predicate
Aug 20, 2026
Merged

test(api): Paginate list-predicate query so matches aren't missed on later scan pages#7291
VarshithaPamisetty merged 2 commits into
mainfrom
fix/api-e2e-paginate-list-predicate

Conversation

@VarshithaPamisetty

Copy link
Copy Markdown
Contributor

Description

The amplify_api e2e test should LIST blogs with Model helper with query predicate (Android/web) read only the first ~1 MB DynamoDB scan page, so once the shared Blog table outgrew one page a new blog could land on a later page and the filter returned 0 (flaky Expected 1, Actual 0). Fix by checking every page for the blog instead of just the first.

@VarshithaPamisetty VarshithaPamisetty self-assigned this Aug 18, 2026
@codecov-commenter

codecov-commenter commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 40.98%. Comparing base (a6ec724) to head (0170c2b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7291   +/-   ##
=======================================
  Coverage   40.98%   40.98%           
=======================================
  Files         121      121           
  Lines        8273     8273           
  Branches     3598     3598           
=======================================
  Hits         3391     3391           
  Misses       4882     4882           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@VarshithaPamisetty
VarshithaPamisetty marked this pull request as ready for review August 19, 2026 07:16
@VarshithaPamisetty
VarshithaPamisetty requested a review from a team as a code owner August 19, 2026 07:16
@VarshithaPamisetty
VarshithaPamisetty merged commit 758333c into main Aug 20, 2026
17 checks passed
@VarshithaPamisetty
VarshithaPamisetty deleted the fix/api-e2e-paginate-list-predicate branch August 20, 2026 13:51
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