Skip to content

[test-helpers] Add EuiTableObject - #10213

Open
steliosmavro wants to merge 3 commits into
elastic:mainfrom
steliosmavro:stelios/eui-table-object
Open

steliosmavro wants to merge 3 commits into
elastic:mainfrom
steliosmavro:stelios/eui-table-object

Conversation

@steliosmavro

Copy link
Copy Markdown
Contributor

Summary

Adds EuiTableObject for the low level EuiTable, the most used EUI selectors in Kibana tests today (euiTableRow, euiTableCell, about 108 references across Scout and FTR). EuiBasicTableObject could not be used there because its guard is .euiBasicTable.

  • EuiTableObject: guard .euiTable, members rows, headerCells, column(index), cell(row, column). Positional access since a plain table has no field names.
  • EuiBasicTableObject now extends EuiTableObject, mirroring EuiBasicTable rendering an EuiTable. It keeps its own guard and cells(field), its rows getter is now inherited with the same logic.
  • Selectors under selectors.table, spec against the EuiTable Playground story, README.

QA

  • Table and basic table specs pass against Storybook (11 tests).
  • tsc clean.

@steliosmavro
steliosmavro requested a review from a team as a code owner October 16, 2026 13:35
Comment thread packages/test-helpers/src/components/table/selectors.ts Outdated
Comment thread packages/test-helpers/src/playwright/components/table/object.ts Outdated
Comment thread packages/test-helpers/src/playwright/components/table/object.ts Outdated
…r stays on the basic table, direct child cells
Comment thread packages/test-helpers/src/playwright/components/table/object.ts
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

This branch has not been deployed

No deployments
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.

2 participants