Skip to content

Commit

Permalink
fix: allow to select files when wantin to import container tar images
Browse files Browse the repository at this point in the history
fixes podman-desktop#6590
Signed-off-by: Florent Benoit <[email protected]>
  • Loading branch information
benoitf committed Apr 2, 2024
1 parent 3c2f2cc commit a378455
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ test('Expect import button to be enabled when atleast one container image is sel
const btnImportContainer = screen.getByRole('button', { name: 'Import containers' });
expect(btnImportContainer).toBeInTheDocument();
expect(btnImportContainer).toBeEnabled();

expect(openDialogMock).toBeCalledWith({
selectors: ['multiSelections', 'openFile'],
title: 'Select Containers Images to import',
});
});

test('Expect import button to be enabled when atleast one container image is selected but there is no provider', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ onMount(async () => {
async function addContainersToImport() {
const images = await window.openDialog({
title: 'Select Containers Images to import',
selectors: ['multiSelections'],
selectors: ['multiSelections', 'openFile'],
});
if (!images) {
Expand Down

0 comments on commit a378455

Please sign in to comment.