diff --git a/jam-ui/cypress/e2e/account/change-email-confirm-page.cy.js b/jam-ui/cypress/e2e/account/change-email-confirm-page.cy.js index c4751a10c..9cdb5448f 100644 --- a/jam-ui/cypress/e2e/account/change-email-confirm-page.cy.js +++ b/jam-ui/cypress/e2e/account/change-email-confirm-page.cy.js @@ -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'); }); }); \ No newline at end of file diff --git a/jam-ui/src/components/public/JKConfirmEmailChange.js b/jam-ui/src/components/public/JKConfirmEmailChange.js index f9d18730d..1029eff38 100644 --- a/jam-ui/src/components/public/JKConfirmEmailChange.js +++ b/jam-ui/src/components/public/JKConfirmEmailChange.js @@ -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 ( - Unsubscribe from JamKazam emails + + Change Email Confirmation + { success? @@ -44,4 +45,6 @@ const JKConfirmEmailChange = () => { ) } + + export default JKConfirmEmailChange \ No newline at end of file