Skip to content

Commit

Permalink
Wizard: Switch view to "Available" when searching for package
Browse files Browse the repository at this point in the history
this fix an issue when user search for a package, the viewv stay "Selected"
instead of switching to "Available
  • Loading branch information
mgold1234 committed Feb 11, 2025
1 parent d80fed8 commit aa0fc37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ const Packages = () => {
) => {
setSearchTerm(selection);
setToggleSourceRepos(RepoToggle.INCLUDED);
setToggleSelected('toggle-available');
};

const handleClear = async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,12 @@ describe('Step Packages', () => {

user.click(checkboxes[0]);
user.click(checkboxes[1]);

await toggleSelected();
await clearSearchInput();
await typeIntoSearchBox('test');

const availablePackages = await getRows();
expect(availablePackages[0]).toHaveTextContent('test');
expect(availablePackages[1]).toHaveTextContent('test-sources');
expect(availablePackages[0]).toHaveTextContent('test-sources');
});

test('should display recommendations', async () => {
Expand Down

0 comments on commit aa0fc37

Please sign in to comment.