change email confirm page
This commit is contained in:
parent
67fd15c75c
commit
86e03e0ba7
|
|
@ -20,5 +20,9 @@ describe('Change Email Confirm Page', () => {
|
|||
// Assert that the JKChangeEmailConfirm page is rendered
|
||||
// Adjust selectors/texts as per your actual component
|
||||
cy.contains('Change Email Confirmation').should('be.visible');
|
||||
cy.contains('Loading...').should('be.visible');
|
||||
// Optionally, check for the success message after the email update
|
||||
cy.wait(1000); // Wait for the email update to complete
|
||||
cy.contains('Your email has been successfully updated.').should('be.visible');
|
||||
});
|
||||
});
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
import React from 'react'
|
||||
import { useLocation } from "react-router-dom";
|
||||
import { Card, CardBody, CardText, CardTitle } from 'reactstrap';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useState, useEffect } from 'react';
|
||||
import { updateEmail } from '../../helpers/rest';
|
||||
|
||||
|
|
@ -31,7 +30,9 @@ const JKConfirmEmailChange = () => {
|
|||
return (
|
||||
<Card style={{ width: '25rem', margin: '2rem auto' }}>
|
||||
<CardBody>
|
||||
<CardTitle className="mb-2">Unsubscribe from JamKazam emails</CardTitle>
|
||||
<CardTitle className="mb-2">
|
||||
Change Email Confirmation
|
||||
</CardTitle>
|
||||
<CardText>
|
||||
{
|
||||
success?
|
||||
|
|
@ -44,4 +45,6 @@ const JKConfirmEmailChange = () => {
|
|||
)
|
||||
}
|
||||
|
||||
|
||||
|
||||
export default JKConfirmEmailChange
|
||||
Loading…
Reference in New Issue