diff --git a/src/components/FormStep/FormStep.stories.js b/src/components/FormStep/FormStep.stories.js index 320d17840..2242a3763 100644 --- a/src/components/FormStep/FormStep.stories.js +++ b/src/components/FormStep/FormStep.stories.js @@ -270,32 +270,6 @@ export const EmailVerification = { }, }; -export const SummaryProgressVisible = { - render, - args: { - form: buildForm({showSummaryProgress: true}), - submission: buildSubmission(), - }, - play: async ({canvasElement}) => { - const canvas = within(canvasElement); - - expect(await canvas.findByText(/Step 1 of 1/)).toBeVisible(); - }, -}; - -export const SummaryProgressNotVisible = { - render, - args: { - form: buildForm(), - submission: buildSubmission(), - }, - play: async ({canvasElement}) => { - const canvas = within(canvasElement); - - expect(canvas.queryByText(/Step 1 of 1/)).toBeNull(); - }, -}; - export const EmailVerificationNotDone = { render, args: { @@ -419,3 +393,29 @@ export const BackendValidationError = { ); }, }; + +export const SummaryProgressVisible = { + render, + args: { + form: buildForm({showSummaryProgress: true}), + submission: buildSubmission(), + }, + play: async ({canvasElement}) => { + const canvas = within(canvasElement); + + expect(await canvas.findByText(/Step 1 of 1/)).toBeVisible(); + }, +}; + +export const SummaryProgressNotVisible = { + render, + args: { + form: buildForm(), + submission: buildSubmission(), + }, + play: async ({canvasElement}) => { + const canvas = within(canvasElement); + + expect(canvas.queryByText(/Step 1 of 1/)).toBeNull(); + }, +};