Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cody/link to profile edit page #614

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/AdminUserSettings/AdminUserSettings.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('AdminUserSettings Component', () => {
});
});

it('should direct to /admin/edit-profile route when the edit profile button is clicked', () => {
it('should direct to /account/settings route when the edit profile button is clicked', () => {
const adminUserSettings = screen.getByTestId('admin-user-settings');

fireEvent.click(adminUserSettings);
Expand All @@ -77,7 +77,7 @@ describe('AdminUserSettings Component', () => {
});

waitFor(() => {
expect(mockPush).toHaveBeenCalledWith('/user/edit');
expect(mockPush).toHaveBeenCalledWith('/account/settings');
});
});

Expand Down
2 changes: 1 addition & 1 deletion components/AdminUserSettings/AdminUserSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const AdminUserSettings = (): JSX.Element => {
<DropdownMenuItem className="cursor-pointer rounded-b-none flex focus:bg-muted">
<LinkCustom
className="text-base no-underline hover:text-foreground w-full py-2 px-0 text-muted-foreground hover:underline"
href="#"
href="/account/settings"
data-testid="edit-profile-link"
>
Edit Profile
Expand Down