Skip to content

Commit c65d957

Browse files
refactor: use a more cleaner test case description
1 parent b98662c commit c65d957

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

__tests__/components/popus/EmailForm.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe("EmailEditForm", () => {
5252
expect(closeButton).toBeInTheDocument()
5353
})
5454

55-
it("should not modify the input values of the form", async () => {
55+
it("should not modify user's input values", async () => {
5656
const emailInput = screen.getByPlaceholderText('login-page.email.placeholder');
5757
const emailInputConfirm = screen.getByPlaceholderText('profile.settings.edit.email.confirm')
5858

src/components/popups/profile-settings/EmailForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export default function EditEmail({ show, onClose }: EditProfileProps): ReactEle
9696
<div className="mb-8">
9797
<Input
9898
label={`${t("profile.settings.edit.email.confirm")}`}
99-
placeholder={`${t("profile.settings.edit.email.confirm")}`}
10099
error={errors.emailConfirm?.message}
100+
placeholder={`${t("profile.settings.edit.email.confirm")}`}
101101
type="emailConfirm"
102102
{...register("emailConfirm", {
103103
required: "This field is required",
@@ -116,7 +116,7 @@ export default function EditEmail({ show, onClose }: EditProfileProps): ReactEle
116116
/>
117117
</div>
118118
<div className="flex pb-2 items-center justify-between">
119-
<span className="cursor-pointer text-sm font-medium text-primary" onClick={onClose} data-testid="close-button">
119+
<span className="cursor-pointer text-sm font-medium text-brand" onClick={onClose} data-testid="close-button">
120120
{t("profile.edit.close")}
121121
</span>
122122
<ArrowButton loading={loading} disabled={loading} variant="outline-primary">

0 commit comments

Comments
 (0)