mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Chore: Clean up old navigation (#66287)
* remove code outside of the topnav feature flag * delete NavBar folder * remove topnav toggle from backend * restructure AppChrome folder * fix utils mock * fix applinks tests * remove tests since they're covered in e2e * fix 1 of the approotpage tests * Fix another dashboardpage test * remove reverse portalling + test for plugins using deprecated onNavChanged method * kick drone * handle correlations
This commit is contained in:
@@ -59,7 +59,6 @@ describe('ChangePasswordPage', () => {
|
||||
|
||||
it('should show change password form when user has loaded', async () => {
|
||||
await getTestContext();
|
||||
expect(screen.getByText('Change Your Password')).toBeInTheDocument();
|
||||
|
||||
expect(screen.getByLabelText('Old password')).toBeInTheDocument();
|
||||
expect(screen.getByLabelText('New password')).toBeInTheDocument();
|
||||
@@ -70,6 +69,7 @@ describe('ChangePasswordPage', () => {
|
||||
expect(screen.getByRole('link', { name: 'Cancel' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('link', { name: 'Cancel' })).toHaveAttribute('href', '/profile');
|
||||
});
|
||||
|
||||
it('should call changePassword if change password is valid', async () => {
|
||||
const { props } = await getTestContext();
|
||||
|
||||
|
||||
@@ -36,9 +36,6 @@ export function ChangePasswordPage({ loadUser, isUpdating, user, changePassword
|
||||
<Page.Contents isLoading={!Boolean(user)}>
|
||||
{user ? (
|
||||
<>
|
||||
<Page.OldNavOnly>
|
||||
<h3 className="page-sub-heading">Change Your Password</h3>
|
||||
</Page.OldNavOnly>
|
||||
<ChangePasswordForm user={user} onChangePassword={changePassword} isSaving={isUpdating} />
|
||||
</>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user