fix: allow to select files when wantin to import container tar images

fixes https://github.com/containers/podman-desktop/issues/6590
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
This commit is contained in:
Florent Benoit 2024-04-01 17:25:02 +02:00 committed by Florent BENOIT
parent 3c2f2ccea4
commit a378455daa
2 changed files with 6 additions and 1 deletions

View file

@ -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 () => {

View file

@ -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) {