mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
feat(client): remove broken signout button from /update-email (#64400)
This commit is contained in:
committed by
GitHub
parent
6246bb5151
commit
1b98725699
@@ -21,8 +21,7 @@ import {
|
||||
} from '@freecodecamp/ui';
|
||||
|
||||
import envData from '../../config/env.json';
|
||||
import { Loader, Link } from '../components/helpers';
|
||||
import './show-update-email.css';
|
||||
import { Loader } from '../components/helpers';
|
||||
import { isSignedInSelector, userSelector } from '../redux/selectors';
|
||||
import { hardGoTo as navigate } from '../redux/actions';
|
||||
import { updateMyEmail } from '../redux/settings/actions';
|
||||
@@ -122,9 +121,7 @@ function ShowUpdateEmail({
|
||||
: t('buttons.verify-email')}
|
||||
</Button>
|
||||
</form>
|
||||
<p className='text-center'>
|
||||
<Link to='/signout'>{t('buttons.sign-out')}</Link>
|
||||
</p>
|
||||
<Spacer size='s' />
|
||||
</Row>
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
@@ -38,11 +38,6 @@ test.describe('The update-email page when the user is signed in', () => {
|
||||
);
|
||||
await expect(submitButton).toBeVisible();
|
||||
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 ({
|
||||
|
||||
Reference in New Issue
Block a user