mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
fix(app): Make sure empty tables don't have select all rows checkbox checked (#489)
This commit is contained in:
parent
b57855f20d
commit
28b222fffa
2 changed files with 5 additions and 1 deletions
|
@ -155,6 +155,9 @@ describe('Datatable', () => {
|
|||
);
|
||||
|
||||
expect(screen.getByText('No data available')).toBeInTheDocument();
|
||||
const selectAllCheckbox: HTMLInputElement =
|
||||
screen.getByLabelText('Select all rows');
|
||||
expect(selectAllCheckbox.checked).toBe(false);
|
||||
});
|
||||
|
||||
it('selects/deselects only page rows when select all is clicked', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue