Skip to content

[test-helpers] Add EuiPaginationObject - #10214

Merged
steliosmavro merged 3 commits into
elastic:mainfrom
steliosmavro:stelios/eui-pagination-object
Oct 20, 2026
Merged

steliosmavro merged 3 commits into
elastic:mainfrom
steliosmavro:stelios/eui-pagination-object

Conversation

@steliosmavro

Copy link
Copy Markdown
Contributor

Summary

Adds EuiPaginationObject. pagination-button-* and euiPagination are among the most used EUI selectors in Kibana tests (about 57 references across Scout and FTR).

  • getActivePage(), getPageCount(), goToPage(index), next(), previous(). Indexes are 0-based, matching EUI's activePage and the pagination-button-<index> test subjs.
  • goToPage clicks the page button when EUI renders it, otherwise steps through next or previous. Covers the numbered and the compressed variant.
  • The Playground story is now stateful so clicks change the page, which the specs rely on. Initial render is unchanged.

QA

  • 10 specs pass against Storybook (numbered and compressed).
  • tsc and eslint clean.

@steliosmavro
steliosmavro requested a review from a team as a code owner October 16, 2026 15:29
@steliosmavro steliosmavro added the skip-changelog-eui Use on PRs to skip changelog requirement (for @elastic/eui) label Oct 16, 2026
Comment thread packages/test-helpers/src/playwright/components/pagination/object.ts Outdated
Comment thread packages/test-helpers/src/playwright/components/pagination/object.ts Outdated
…l when the page is not reached, wait for the root
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

@steliosmavro
steliosmavro merged commit 66556f1 into elastic:main Oct 20, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog-eui Use on PRs to skip changelog requirement (for @elastic/eui)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants