ImagesTable: add compose pagination
The list of composes is now paginated. The default is 10 composes per page. This quantity can be changed. When the page or the quantity per page is changed then the next set of composes will be fetched.
This commit is contained in:
parent
df39b6915c
commit
14a7c7e39d
2 changed files with 60 additions and 5 deletions
|
|
@ -246,9 +246,6 @@ describe('Images Table', () => {
|
|||
});
|
||||
|
||||
test('render ImagesTable', () => {
|
||||
// check action loads
|
||||
screen.getByTestId('create-image-action');
|
||||
|
||||
// make sure the empty-state message isn't present
|
||||
const emptyState = screen.queryByTestId('empty-state');
|
||||
expect(emptyState).not.toBeInTheDocument();
|
||||
|
|
@ -275,3 +272,16 @@ describe('Images Table', () => {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe('Images Table Toolbar', () => {
|
||||
beforeEach(() => {
|
||||
renderWithReduxRouter(<ImagesTable />, store);
|
||||
});
|
||||
test('render toolbar', () => {
|
||||
// check create image button
|
||||
screen.getByTestId('create-image-action');
|
||||
|
||||
// check pagination renders
|
||||
screen.getByTestId('images-pagination');
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue