Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wizard: Switch view to "Available" when searching for package (HMS-5480) #2873

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -327,9 +327,10 @@ describe('Step Packages', () => {
await clearSearchInput();
await typeIntoSearchBox('test');

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

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