diff --git a/packages/renderer/src/lib/image/BuildImageFromContainerfile.spec.ts b/packages/renderer/src/lib/image/BuildImageFromContainerfile.spec.ts index 20f03936a8f1d..9f5c277c2ea92 100644 --- a/packages/renderer/src/lib/image/BuildImageFromContainerfile.spec.ts +++ b/packages/renderer/src/lib/image/BuildImageFromContainerfile.spec.ts @@ -124,11 +124,11 @@ test('Expect Build button is enabled', async () => { setup(); render(BuildImageFromContainerfile, {}); - const containerFilePath = screen.getByRole('textbox', { name: 'Containerfile Path' }); + const containerFilePath = screen.getByRole('textbox', { name: 'Containerfile path' }); expect(containerFilePath).toBeInTheDocument(); await userEvent.type(containerFilePath, '/somepath/containerfile'); - const buildFolder = screen.getByRole('textbox', { name: 'Build Context Directory' }); + const buildFolder = screen.getByRole('textbox', { name: 'Build context directory' }); expect(buildFolder).toBeInTheDocument(); await userEvent.type(buildFolder, '/somepath'); @@ -141,11 +141,11 @@ test('Expect Done button is enabled once build is done', async () => { setup(); render(BuildImageFromContainerfile, {}); - const containerFilePath = screen.getByRole('textbox', { name: 'Containerfile Path' }); + const containerFilePath = screen.getByRole('textbox', { name: 'Containerfile path' }); expect(containerFilePath).toBeInTheDocument(); await userEvent.type(containerFilePath, '/somepath/containerfile'); - const buildFolder = screen.getByRole('textbox', { name: 'Build Context Directory' }); + const buildFolder = screen.getByRole('textbox', { name: 'Build context directory' }); expect(buildFolder).toBeInTheDocument(); await userEvent.type(buildFolder, '/somepath'); @@ -165,16 +165,16 @@ test('Select multiple platforms and expect pressing Build will do two buildImage setup(); await waitRender(); - const containerFilePath = screen.getByRole('textbox', { name: 'Containerfile Path' }); + const containerFilePath = screen.getByRole('textbox', { name: 'Containerfile path' }); expect(containerFilePath).toBeInTheDocument(); await userEvent.type(containerFilePath, '/somepath/containerfile'); - const buildFolder = screen.getByRole('textbox', { name: 'Build Context Directory' }); + const buildFolder = screen.getByRole('textbox', { name: 'Build context directory' }); expect(buildFolder).toBeInTheDocument(); await userEvent.type(buildFolder, '/somepath'); // Type in the image name a test value 'foobar' - const containerImageName = screen.getByRole('textbox', { name: 'Image Name' }); + const containerImageName = screen.getByRole('textbox', { name: 'Image name' }); expect(containerImageName).toBeInTheDocument(); await userEvent.type(containerImageName, 'foobar'); @@ -246,15 +246,15 @@ test('Selecting one platform only calls buildImage once with the selected platfo setup(); await waitRender(); - const containerFilePath = screen.getByRole('textbox', { name: 'Containerfile Path' }); + const containerFilePath = screen.getByRole('textbox', { name: 'Containerfile path' }); expect(containerFilePath).toBeInTheDocument(); await userEvent.type(containerFilePath, '/somepath/containerfile'); - const buildFolder = screen.getByRole('textbox', { name: 'Build Context Directory' }); + const buildFolder = screen.getByRole('textbox', { name: 'Build context directory' }); expect(buildFolder).toBeInTheDocument(); await userEvent.type(buildFolder, '/somepath'); - const imageName = screen.getByRole('textbox', { name: 'Image Name' }); + const imageName = screen.getByRole('textbox', { name: 'Image name' }); expect(imageName).toBeInTheDocument(); await userEvent.type(imageName, 'foobar'); @@ -303,7 +303,7 @@ test('Expect no value for containerImageName input field (no my-custom-image val setup(); render(BuildImageFromContainerfile); - const containerImageName = screen.getByRole('textbox', { name: 'Image Name' }); + const containerImageName = screen.getByRole('textbox', { name: 'Image name' }); expect(containerImageName).toBeInTheDocument(); expect(containerImageName).toHaveValue(''); expect(containerImageName).toHaveAttribute('placeholder', 'Image name (e.g. quay.io/namespace/my-custom-image)'); @@ -338,11 +338,11 @@ test('Expect recommended extension in case of build error', async () => { render(BuildImageFromContainerfile, {}); - const containerFilePath = screen.getByRole('textbox', { name: 'Containerfile Path' }); + const containerFilePath = screen.getByRole('textbox', { name: 'Containerfile path' }); expect(containerFilePath).toBeInTheDocument(); await userEvent.type(containerFilePath, '/somepath/containerfile'); - const buildFolder = screen.getByRole('textbox', { name: 'Build Context Directory' }); + const buildFolder = screen.getByRole('textbox', { name: 'Build context directory' }); expect(buildFolder).toBeInTheDocument(); await userEvent.type(buildFolder, '/somepath'); diff --git a/packages/renderer/src/lib/image/BuildImageFromContainerfile.svelte b/packages/renderer/src/lib/image/BuildImageFromContainerfile.svelte index b375845f28a84..eddf9db0b9c1b 100644 --- a/packages/renderer/src/lib/image/BuildImageFromContainerfile.svelte +++ b/packages/renderer/src/lib/image/BuildImageFromContainerfile.svelte @@ -275,7 +275,7 @@ async function abortBuild() { {:else}