LandingPage: Adds empty state when no images

This commit is contained in:
Jenn Giardino 2020-12-17 11:43:43 -05:00 committed by GitHub
parent 4cbd745ec5
commit 9c1125cf37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 20 deletions

View file

@ -37,6 +37,10 @@ describe('Images Table', () => {
// 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).toBeNull();
// check table
const table = screen.getByTestId('images-table');
expect(table.rows).toHaveLength(4);