eslint/expect: uneffective tests

Correct the tests that were not testing the result. And set the values
to a functioning one.
This commit is contained in:
Thomas Lavocat 2023-08-09 17:43:27 +02:00 committed by Lucas Garfield
parent 3b8afeaf7d
commit 8ab31edbe9
2 changed files with 2 additions and 2 deletions

View file

@ -454,7 +454,7 @@ describe('Step Packages', () => {
searchboxChosen.click();
await user.type(searchboxChosen, 'asdf');
expect(screen.getAllByText('No packages found').length === 2);
expect(screen.getByText('No packages found')).toBeInTheDocument();
// We need to clear this input in order to not have sideeffects on other tests
await searchForChosenPackages(searchboxChosen, '');
});

View file

@ -1106,7 +1106,7 @@ describe('Step Packages', () => {
searchboxChosen.click();
await user.type(searchboxChosen, 'asdf');
expect(screen.getAllByText('No packages found').length === 2);
expect(screen.getByText('No packages found')).toBeInTheDocument();
// We need to clear this input in order to not have sideeffects on other tests
await searchForChosenPackages(searchboxChosen, '');
});