-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename files to verifySubmissionEmail
- Loading branch information
Showing
7 changed files
with
44 additions
and
40 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
...pages/VerifyEmail/VerifyEmail.stories.tsx → ...ownload/VerifySubmissionEmail.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { Meta, StoryObj } from "@storybook/react"; | ||
import React from "react"; | ||
|
||
import { VerifyEmail } from "./VerifyEmail"; | ||
import { VerifySubmissionEmail } from "./VerifySubmissionEmail"; | ||
|
||
const meta = { | ||
title: "Design System/Pages/VerifyEmail", | ||
component: VerifyEmail, | ||
} satisfies Meta<typeof VerifyEmail>; | ||
component: VerifySubmissionEmail, | ||
} satisfies Meta<typeof VerifySubmissionEmail>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Basic = { | ||
render: () => <VerifyEmail params={{ sessionId: "1" }} />, | ||
render: () => <VerifySubmissionEmail params={{ sessionId: "1" }} />, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
editor.planx.uk/src/pages/SubmissionDownload/tests/VerifySubmissionEmail.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { screen } from "@testing-library/react"; | ||
import React from "react"; | ||
import { setup } from "testUtils"; | ||
|
||
import { VerifySubmissionEmail } from "../VerifySubmissionEmail"; | ||
|
||
describe("when the VerifySubmissionEmail component renders", () => { | ||
it("displays the email address input", () => { | ||
setup(<VerifySubmissionEmail params={{ sessionId: "1" }} />); | ||
|
||
expect( | ||
screen.queryByText("Verify your submission email address"), | ||
).toBeInTheDocument(); | ||
expect(screen.queryByLabelText("Email address")).toBeInTheDocument(); | ||
}); | ||
it.todo("should not display an error message"); | ||
}); | ||
|
||
describe("when the user submits a correct email address", () => { | ||
it.todo("displays visual feedback to the user"); | ||
it.todo("downloads the application file"); | ||
}); | ||
|
||
describe("when the user submits an incorrect email address", () => { | ||
it.todo("displays a suitable error message"); | ||
}); | ||
|
||
describe("when user submits an email address and there is a server-side issue", () => { | ||
it.todo("displays a suitable error message"); | ||
}); |
28 changes: 0 additions & 28 deletions
28
editor.planx.uk/src/pages/VerifyEmail/tests/VerifyEmail.test.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters