Wizard: Remove "Too many results" state

This removes the "Too many results" state that was rendered when a search term returned more than 100 results.
This commit is contained in:
regexowl 2025-02-24 16:07:42 +01:00 committed by Klara Simickova
parent 7d6c623ee6
commit ff80aea171
2 changed files with 3 additions and 107 deletions

View file

@ -230,16 +230,6 @@ describe('Step Packages', () => {
);
});
test('should display an exact match if found regardless of too many results', async () => {
await renderCreateMode();
await goToPackagesStep();
await typeIntoSearchBox('testPkg-123');
await screen.findByTestId('exact-match-row');
await screen.findByRole('heading', {
name: /too many results to display/i,
});
});
test('search results should be sorted with most relevant results first', async () => {
await renderCreateMode();
await goToPackagesStep();
@ -331,13 +321,6 @@ describe('Step Packages', () => {
await screen.findByText('No results found');
});
test('should display too many results state for more than 100 results', async () => {
await renderCreateMode();
await goToPackagesStep();
await typeIntoSearchBox('te');
await screen.findByText('Too many results to display');
});
test('should display too short', async () => {
await renderCreateMode();
await goToPackagesStep();