Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor pagination tests #2923

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Refactor pagination tests #2923

merged 1 commit into from
Aug 27, 2024

Conversation

balanza
Copy link
Member

@balanza balanza commented Aug 26, 2024

Description

Following this comment in #2918, this PR rewrites the test suites so that they do not rely on pagination internals anymore.

A test ID pagination is assigned to the pagination container. Then, pagination elements are selected by their text, making tests more resilient as they don't rely on the internal structure of the component (the test ID is the only structural requirement to be kept across refactors).

@balanza balanza force-pushed the refactor-pagination-test branch from dfb17c2 to adb52b0 Compare August 26, 2024 13:33
@balanza balanza marked this pull request as ready for review August 26, 2024 13:36
@balanza balanza requested review from janvhs and gagandeepb August 26, 2024 13:36
@balanza balanza added the chore label Aug 27, 2024
@balanza balanza merged commit b66bc96 into main Aug 27, 2024
30 checks passed
@balanza balanza deleted the refactor-pagination-test branch August 27, 2024 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants