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:
parent
3b8afeaf7d
commit
8ab31edbe9
2 changed files with 2 additions and 2 deletions
|
|
@ -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, '');
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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, '');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue