feat(client): remove broken signout button from /update-email (#64400)

This commit is contained in:
Oliver Eyton-Williams
2025-12-10 13:59:05 +01:00
committed by GitHub
parent 6246bb5151
commit 1b98725699
2 changed files with 2 additions and 10 deletions

View File

@@ -21,8 +21,7 @@ import {
} from '@freecodecamp/ui'; } from '@freecodecamp/ui';
import envData from '../../config/env.json'; import envData from '../../config/env.json';
import { Loader, Link } from '../components/helpers'; import { Loader } from '../components/helpers';
import './show-update-email.css';
import { isSignedInSelector, userSelector } from '../redux/selectors'; import { isSignedInSelector, userSelector } from '../redux/selectors';
import { hardGoTo as navigate } from '../redux/actions'; import { hardGoTo as navigate } from '../redux/actions';
import { updateMyEmail } from '../redux/settings/actions'; import { updateMyEmail } from '../redux/settings/actions';
@@ -122,9 +121,7 @@ function ShowUpdateEmail({
: t('buttons.verify-email')} : t('buttons.verify-email')}
</Button> </Button>
</form> </form>
<p className='text-center'> <Spacer size='s' />
<Link to='/signout'>{t('buttons.sign-out')}</Link>
</p>
</Row> </Row>
</Col> </Col>
</Row> </Row>

View File

@@ -38,11 +38,6 @@ test.describe('The update-email page when the user is signed in', () => {
); );
await expect(submitButton).toBeVisible(); await expect(submitButton).toBeVisible();
await expect(submitButton).toHaveAttribute('type', 'submit'); await expect(submitButton).toHaveAttribute('type', 'submit');
const signOutButton = page.getByRole('link', { name: 'Sign out' });
await expect(signOutButton).toBeVisible();
await expect(signOutButton).toHaveAttribute('href', '/signout');
}); });
test('should enable the submit button if the email input is valid', async ({ test('should enable the submit button if the email input is valid', async ({