-
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.
fix: Standardise case for email labels and flow name (#1115)
- Loading branch information
1 parent
575bf24
commit e4689de
Showing
6 changed files
with
25 additions
and
26 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
|
@@ -48,9 +48,9 @@ describe("Save and Return component", () => { | |
|
||
expect(getState().saveToEmail).toBeUndefined(); | ||
|
||
userEvent.type(screen.getByLabelText("Email Address"), "[email protected]"); | ||
userEvent.type(screen.getByLabelText("Email address"), "[email protected]"); | ||
userEvent.type( | ||
screen.getByLabelText("Confirm Email Address"), | ||
screen.getByLabelText("Confirm email address"), | ||
"[email protected]" | ||
); | ||
userEvent.click(screen.getByTestId("continue-button")); | ||
|
@@ -82,9 +82,9 @@ describe("Save and Return component", () => { | |
expect(sessionId).toBeDefined(); | ||
}); | ||
|
||
userEvent.type(screen.getByLabelText("Email Address"), "[email protected]"); | ||
userEvent.type(screen.getByLabelText("Email address"), "[email protected]"); | ||
userEvent.type( | ||
screen.getByLabelText("Confirm Email Address"), | ||
screen.getByLabelText("Confirm email address"), | ||
"[email protected]" | ||
); | ||
|
||
|
@@ -124,11 +124,11 @@ describe("ConfirmEmail component", () => { | |
render(<ConfirmEmail handleSubmit={handleSubmit}></ConfirmEmail>); | ||
|
||
userEvent.type( | ||
screen.getByLabelText("Email Address"), | ||
screen.getByLabelText("Email address"), | ||
"[email protected]" | ||
); | ||
userEvent.type( | ||
screen.getByLabelText("Confirm Email Address"), | ||
screen.getByLabelText("Confirm email address"), | ||
"[email protected]" | ||
); | ||
userEvent.click(screen.getByTestId("continue-button")); | ||
|
@@ -147,8 +147,8 @@ describe("ConfirmEmail component", () => { | |
|
||
render(<ConfirmEmail handleSubmit={handleSubmit}></ConfirmEmail>); | ||
|
||
const emailInput = screen.getByLabelText("Email Address"); | ||
const confirmEmailInput = screen.getByLabelText("Confirm Email Address"); | ||
const emailInput = screen.getByLabelText("Email address"); | ||
const confirmEmailInput = screen.getByLabelText("Confirm email address"); | ||
|
||
userEvent.type(emailInput, "not an email"); | ||
userEvent.type(confirmEmailInput, "not an email"); | ||
|
@@ -166,8 +166,8 @@ describe("ConfirmEmail component", () => { | |
|
||
render(<ConfirmEmail handleSubmit={handleSubmit}></ConfirmEmail>); | ||
|
||
const emailInput = screen.getByLabelText("Email Address"); | ||
const confirmEmailInput = screen.getByLabelText("Confirm Email Address"); | ||
const emailInput = screen.getByLabelText("Email address"); | ||
const confirmEmailInput = screen.getByLabelText("Confirm email address"); | ||
|
||
expect(emailInput).toHaveValue(""); | ||
expect(confirmEmailInput).toHaveValue(""); | ||
|
@@ -217,11 +217,11 @@ describe("ConfirmEmail component", () => { | |
render(<ConfirmEmail handleSubmit={handleSubmit}></ConfirmEmail>); | ||
|
||
userEvent.type( | ||
screen.getByLabelText("Email Address"), | ||
screen.getByLabelText("Email address"), | ||
"[email protected]" | ||
); | ||
userEvent.type( | ||
screen.getByLabelText("Confirm Email Address"), | ||
screen.getByLabelText("Confirm email address"), | ||
"[email protected]" | ||
); | ||
userEvent.click(screen.getByTestId("continue-button")); | ||
|
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