diff --git a/editor.planx.uk/src/pages/SubmissionDownload/tests/VerifySubmissionEmail.test.tsx b/editor.planx.uk/src/pages/SubmissionDownload/tests/VerifySubmissionEmail.test.tsx
index 8095811d37..3d977038b3 100644
--- a/editor.planx.uk/src/pages/SubmissionDownload/tests/VerifySubmissionEmail.test.tsx
+++ b/editor.planx.uk/src/pages/SubmissionDownload/tests/VerifySubmissionEmail.test.tsx
@@ -1,19 +1,36 @@
import { screen } from "@testing-library/react";
import React from "react";
import { setup } from "testUtils";
+import { axe } from "vitest-axe";
import { VerifySubmissionEmail } from "../VerifySubmissionEmail";
describe("when the VerifySubmissionEmail component renders", () => {
- it("displays the email address input", () => {
+ beforeEach(() => {
setup();
+ });
+ it("displays the email address input", () => {
expect(
screen.queryByText("Verify your submission email address"),
).toBeInTheDocument();
expect(screen.queryByLabelText("Email address")).toBeInTheDocument();
});
- it.todo("should not display an error message");
+
+ it("should not display an error message", () => {
+ expect(
+ screen.queryByText("Sorry, something went wrong. Please try again."),
+ ).not.toBeInTheDocument();
+ });
+
+ it("should not have any accessibility violations", async () => {
+ const { container } = setup(
+ ,
+ );
+
+ const results = await axe(container);
+ expect(results).toHaveNoViolations();
+ });
it.todo(
"shows sessionId and local authority in the application details table",
);