mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-05-24 10:18:53 +00:00
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:
parent
3c2f2ccea4
commit
a378455daa
2 changed files with 6 additions and 1 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue