CreateImageWizard: add default state to package selection

This commit is contained in:
Jacob Kozol 2021-11-02 17:01:42 +01:00 committed by Sanne Raymaekers
parent 8871bd8373
commit 0357ed57f9
2 changed files with 18 additions and 4 deletions

View file

@ -463,6 +463,11 @@ describe('Step Packages', () => {
});
});
test('should display default state', () => {
screen.getByText('Search above to add additionalpackages to your image');
screen.getByText('No packages added');
});
test('search results should be sorted with most relevant results first', async () => {
const searchbox = screen.getAllByRole('textbox')[0]; // searching by id doesn't update the input ref