mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:24:51 +00:00
validate email test
This commit is contained in:
@@ -14,6 +14,6 @@ describe("/verify", () => {
|
|||||||
// TODO: Avoid uncaught exception in application
|
// TODO: Avoid uncaught exception in application
|
||||||
cy.once("uncaught:exception", () => false);
|
cy.once("uncaught:exception", () => false);
|
||||||
cy.visit("/verify?userId=123&code=abc&submit=true");
|
cy.visit("/verify?userId=123&code=abc&submit=true");
|
||||||
cy.contains("error validating code");
|
cy.contains("The provided code is invalid.");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export default function VerifyEmailForm({
|
|||||||
userId,
|
userId,
|
||||||
}).catch((error: Error) => {
|
}).catch((error: Error) => {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
setError(error.message);
|
setError("The provided code is invalid.");
|
||||||
});
|
});
|
||||||
|
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user