---
title: "Change page size without losing the defined anchor"
description: "Verify a table applies its documented page-size navigation rule and updates the displayed range, controls, and row membership consistently."
canonical_url: "https://vostride.com/agent-library/data-tables/page-size-anchor-contract.md"
md_url: "https://vostride.com/agent-library/data-tables/page-size-anchor-contract.md"
content_kind: "recipe"
topic: "data-tables"
---

# Change page size without losing the defined anchor

Verify a table applies its documented page-size navigation rule and updates the displayed range, controls, and row membership consistently.

## Risk

Page-size changes can leave a stale page number or skip records. This recipe uses a reset-to-first-page contract rather than assuming that preserving the current top row is universal.

## Fixtures

- A test directory has twenty-three records labeled Entry 01 through Entry 23 in stable ascending order.
- The initial page size is five, and the contract resets to page one when the size changes.
- The independently recorded ten-row first-page oracle is Entry 01 through Entry 10.

## Steps

1. Open the directory and verify five rows appear on page one with the total twenty-three.
2. Navigate to page three and verify Entry 11 through Entry 15 are visible.
3. Change page size to ten and verify the table resets to page one showing Entry 01 through Entry 10.
4. Verify the displayed range is 1 through 10 of 23 and that next-page navigation is enabled.
5. Go to the final page and verify Entry 21 through Entry 23, with a range of 21 through 23 and no enabled next-page action.

## Expected results

- The page-size transition follows the explicit reset-to-first-page rule.
- The range label agrees with actual visible row identities and the full fixture count.
- The final partial page contains exactly the remaining three records without blank phantom rows.

## False-pass traps

- Checking ten rendered rows alone can miss a stale offset beginning at Entry 11.
- A correct range label paired with wrong row membership is still a pagination failure.

## Cleanup

- Remove the directory fixtures and restore the default page-size preference.

## Use with agent-qa

Adapt this test design to your application's acceptance criteria and configured target using the [recipe execution guide](/agent-library/software-factory/turn-a-recipe-into-an-agent-qa-test.md). External fixture setup and non-UI checks require your own supported hooks or test tooling. Validate the authored test, execute it, and inspect the completed evidence; this recipe is not a recorded test result.

## References

- [agent-qa test](/docs/agent-qa/configuration/test.md)
- [agent-qa first test](/docs/agent-qa/guides/first-test.md)
- [agent-qa web testing](/docs/agent-qa/guides/web-testing.md)

- [Data table QA recipes](/agent-library/data-tables.md)
- [Software factory QA library](/agent-library.md)
