From 843282300d4d8271b229fde9c46bfc79198928e0 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Tue, 6 Feb 2024 16:50:54 +0100 Subject: [PATCH] :green_heart: Fix tests and storybook builds --- src/components/AbortionButton/AbortionButton.stories.js | 2 +- src/components/FormStep/FormStep.stories.js | 2 +- src/components/PostCompletionViews/ConfirmationView.stories.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/AbortionButton/AbortionButton.stories.js b/src/components/AbortionButton/AbortionButton.stories.js index 6681a6ebe..f84f03e8b 100644 --- a/src/components/AbortionButton/AbortionButton.stories.js +++ b/src/components/AbortionButton/AbortionButton.stories.js @@ -37,7 +37,7 @@ export const GovMetricEnabled = { play: async ({canvasElement}) => { const canvas = within(canvasElement); - const abortButton = await canvas.findByRole('button', {name: 'Abort submission'}); + const abortButton = await canvas.findByRole('button', {name: 'Afbreken'}); await expect(abortButton).toBeVisible(); }, }; diff --git a/src/components/FormStep/FormStep.stories.js b/src/components/FormStep/FormStep.stories.js index 63c9aeabc..a8b0b68a9 100644 --- a/src/components/FormStep/FormStep.stories.js +++ b/src/components/FormStep/FormStep.stories.js @@ -168,7 +168,7 @@ export const govmetricEnabled = { play: async ({canvasElement}) => { const canvas = within(canvasElement); - const abortButton = await canvas.findByRole('button', {name: 'Abort submission'}); + const abortButton = await canvas.findByRole('button', {name: 'Afbreken'}); await expect(abortButton).toBeVisible(); }, }; diff --git a/src/components/PostCompletionViews/ConfirmationView.stories.js b/src/components/PostCompletionViews/ConfirmationView.stories.js index 1b6b02263..6cea033b1 100644 --- a/src/components/PostCompletionViews/ConfirmationView.stories.js +++ b/src/components/PostCompletionViews/ConfirmationView.stories.js @@ -105,7 +105,7 @@ export const WithGovMetric = { play: async ({canvasElement}) => { const canvas = within(canvasElement); - const feedbackLink = await canvas.findByRole('link', {name: 'Give feedback'}); + const feedbackLink = await canvas.findByRole('link', {name: 'Geef feedback'}); await expect(feedbackLink).toBeVisible(); await expect(feedbackLink.href).toEqual( 'https://websurveys2.govmetric.com/theme/kf/1234?Q_Formid=a-test-form'