From 2080425753f961e4fb2129482bc1b42a891ebde4 Mon Sep 17 00:00:00 2001 From: regexowl Date: Mon, 19 May 2025 13:56:53 +0200 Subject: [PATCH] src: Update remaining `v5` version slugs --- playwright/helpers/helpers.ts | 2 +- playwright/test.spec.ts | 2 +- src/Components/Blueprints/BuildImagesButton.tsx | 2 +- .../CreateImageWizard/CreateImageWizard.scss | 16 ++++++++-------- .../steps/Oscap/components/OnPremWarning.tsx | 2 +- .../steps/Review/Footer/CreateDropdown.tsx | 2 +- .../steps/Review/Footer/EditDropdown.tsx | 2 +- .../ImagesTable/ImagesTableToolbar.tsx | 6 +++--- src/Components/LandingPage/LandingPage.scss | 7 +++---- 9 files changed, 20 insertions(+), 21 deletions(-) diff --git a/playwright/helpers/helpers.ts b/playwright/helpers/helpers.ts index ce5cf047..2e966b2b 100644 --- a/playwright/helpers/helpers.ts +++ b/playwright/helpers/helpers.ts @@ -21,7 +21,7 @@ export const isHosted = (): boolean => { export const closePopupsIfExist = async (page: Page) => { const locatorsToCheck = [ - page.locator('.pf-v5-c-alert.notification-item button'), // This closes all toast pop-ups + page.locator('.pf-v6-c-alert.notification-item button'), // This closes all toast pop-ups page.locator(`button[id^="pendo-close-guide-"]`), // This closes the pendo guide pop-up page.locator(`button[id="truste-consent-button"]`), // This closes the trusted consent pop-up page.getByLabel('close-notification'), // This closes a one off info notification (May be covered by the toast above, needs recheck.) diff --git a/playwright/test.spec.ts b/playwright/test.spec.ts index 93510933..a49d09aa 100644 --- a/playwright/test.spec.ts +++ b/playwright/test.spec.ts @@ -79,7 +79,7 @@ test.describe.serial('test', () => { await frame.getByRole('button', { name: 'Create blueprint' }).click(); await expect( - frame.locator('.pf-v5-c-card__title-text').getByText(blueprintName) + frame.locator('.pf-v6-c-card__title-text').getByText(blueprintName) ).toBeVisible(); }); diff --git a/src/Components/Blueprints/BuildImagesButton.tsx b/src/Components/Blueprints/BuildImagesButton.tsx index c4c2fd22..fee7a64a 100644 --- a/src/Components/Blueprints/BuildImagesButton.tsx +++ b/src/Components/Blueprints/BuildImagesButton.tsx @@ -132,7 +132,7 @@ export const BuildImagesButton = ({ children }: BuildImagesButtonPropTypes) => { content dropdown diff --git a/src/Components/CreateImageWizard/steps/Oscap/components/OnPremWarning.tsx b/src/Components/CreateImageWizard/steps/Oscap/components/OnPremWarning.tsx index bbcdd8c3..d942a268 100644 --- a/src/Components/CreateImageWizard/steps/Oscap/components/OnPremWarning.tsx +++ b/src/Components/CreateImageWizard/steps/Oscap/components/OnPremWarning.tsx @@ -20,7 +20,7 @@ const OscapOnPremWarning = () => { = ({ variant="warning" style={{ margin: - '0 var(--pf-v5-c-toolbar__content--PaddingRight) 0 var(--pf-v5-c-toolbar__content--PaddingLeft)', + '0 var(--pf6-c-toolbar__content--PaddingRight) 0 var(--pf-v6-c-toolbar__content--PaddingLeft)', }} isInline title={`The selected blueprint has errors.`} @@ -197,7 +197,7 @@ const ImagesTableToolbar: React.FC = ({ = ({