V2Wizard: Add full bottom pagination to Repositories and Packages

This adds full pagination to the bottom of Repositories and Packages steps which will allow the user to get to the very end of the tables in a case of many results.
This commit is contained in:
regexowl 2024-04-02 10:22:23 +02:00 committed by Lucas Garfield
parent a1372adb94
commit f71175f69b
3 changed files with 15 additions and 4 deletions

View file

@ -512,7 +512,7 @@ describe('Step Custom repositories', () => {
(await getFirstRepoCheckbox()) as HTMLInputElement;
const getNextPageButton = async () =>
await screen.findByRole('button', {
await screen.findAllByRole('button', {
name: /go to next page/i,
});
@ -522,7 +522,7 @@ describe('Step Custom repositories', () => {
await user.click(firstRepoCheckbox);
expect(firstRepoCheckbox.checked).toEqual(true);
await user.click(nextPageButton);
await user.click(nextPageButton[0]);
const getSelectedButton = async () =>
await screen.findByRole('button', {