From 70a97acc100be1fbc3770e13abd00e71b60878f2 Mon Sep 17 00:00:00 2001 From: regexowl Date: Thu, 17 Apr 2025 11:18:41 +0200 Subject: [PATCH] Wizard: Update periods at the end of lines Removing/adding some periods for the sake of consistency. I believe the description of the step should end with a period, helped texts and options should not (at least that's the prevailing pattern in the Wizard as of now). --- src/Components/CreateImageWizard/steps/FileSystem/index.tsx | 2 +- .../CreateImageWizard/steps/ImageOutput/index.tsx | 2 +- .../CreateImageWizard/steps/Snapshot/Snapshot.tsx | 6 +++--- .../CreateImageWizard/utilities/PasswordValidatedInput.tsx | 4 ++-- .../Components/CreateImageWizard/steps/Users/Users.test.tsx | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Components/CreateImageWizard/steps/FileSystem/index.tsx b/src/Components/CreateImageWizard/steps/FileSystem/index.tsx index dec12b6e..6373f89d 100644 --- a/src/Components/CreateImageWizard/steps/FileSystem/index.tsx +++ b/src/Components/CreateImageWizard/steps/FileSystem/index.tsx @@ -22,7 +22,7 @@ const FileSystemStep = () => { File system configuration - Define the partitioning of the image + Define the partitioning of the image. {hasIsoTargetOnly ? ( ) : fileSystemConfigurationType === 'automatic' ? ( diff --git a/src/Components/CreateImageWizard/steps/ImageOutput/index.tsx b/src/Components/CreateImageWizard/steps/ImageOutput/index.tsx index caa3c76c..01044fdd 100644 --- a/src/Components/CreateImageWizard/steps/ImageOutput/index.tsx +++ b/src/Components/CreateImageWizard/steps/ImageOutput/index.tsx @@ -40,7 +40,7 @@ const ImageOutputStep = () => { Images enables you to create customized blueprints, create custom images - from the blueprints, and push them to target environments + from the blueprints, and push them to target environments.
diff --git a/src/Components/CreateImageWizard/steps/Snapshot/Snapshot.tsx b/src/Components/CreateImageWizard/steps/Snapshot/Snapshot.tsx index f722e2bb..3d2b1754 100644 --- a/src/Components/CreateImageWizard/steps/Snapshot/Snapshot.tsx +++ b/src/Components/CreateImageWizard/steps/Snapshot/Snapshot.tsx @@ -33,8 +33,8 @@ export default function Snapshot() { id="use latest snapshot radio" ouiaId="use-latest-snapshot-radio" name="use-latest-snapshot" - label="Disable repeatable build." - description="Use the newest repository content available when building this image." + label="Disable repeatable build" + description="Use the newest repository content available when building this image" isChecked={useLatest} onChange={() => !useLatest && dispatch(changeUseLatest(true))} /> @@ -43,7 +43,7 @@ export default function Snapshot() { ouiaId="use-snapshot-date-radio" name="use-snapshot-date" label="Enable repeatable build" - description="Build this image with the repository content of a selected date." + description="Build this image with the repository content of a selected date" isChecked={!useLatest} onChange={() => useLatest && dispatch(changeUseLatest(false))} /> diff --git a/src/Components/CreateImageWizard/utilities/PasswordValidatedInput.tsx b/src/Components/CreateImageWizard/utilities/PasswordValidatedInput.tsx index cee72ade..c395da6b 100644 --- a/src/Components/CreateImageWizard/utilities/PasswordValidatedInput.tsx +++ b/src/Components/CreateImageWizard/utilities/PasswordValidatedInput.tsx @@ -72,12 +72,12 @@ export const PasswordValidatedInput = ({ - Password must be at least 6 characters long. + Password must be at least 6 characters long {environments.includes('azure') && ( Must include at least 3 of the following: lowercase letters, - uppercase letters, numbers, symbols. + uppercase letters, numbers, symbols )} diff --git a/src/test/Components/CreateImageWizard/steps/Users/Users.test.tsx b/src/test/Components/CreateImageWizard/steps/Users/Users.test.tsx index 0f8b937d..cf205979 100644 --- a/src/test/Components/CreateImageWizard/steps/Users/Users.test.tsx +++ b/src/test/Components/CreateImageWizard/steps/Users/Users.test.tsx @@ -215,10 +215,10 @@ describe('Step Users', () => { await addPassword(invalidPassword); const invalidUserMessage = screen.getByText( - /Password must be at least 6 characters long./i + /Password must be at least 6 characters long/i ); const warningUserMessage = screen.getByText( - /Must include at least 3 of the following: lowercase letters, uppercase letters, numbers, symbols./i + /Must include at least 3 of the following: lowercase letters, uppercase letters, numbers, symbols/i ); await waitFor(() => expect(invalidUserMessage)); await waitFor(() => expect(warningUserMessage)); @@ -236,7 +236,7 @@ describe('Step Users', () => { await addPassword(invalidPassword); const invalidUserMessage = screen.getByText( - /Password must be at least 6 characters long./i + /Password must be at least 6 characters long/i ); await waitFor(() => expect(invalidUserMessage)); const nextButton = await getNextButton();