diff --git a/src/frontend/pages/ChangeRequestDetailPage/change-request-details.test.tsx b/src/frontend/pages/ChangeRequestDetailPage/change-request-details.test.tsx index ee4e81ff..00542e9b 100644 --- a/src/frontend/pages/ChangeRequestDetailPage/change-request-details.test.tsx +++ b/src/frontend/pages/ChangeRequestDetailPage/change-request-details.test.tsx @@ -12,6 +12,7 @@ import { } from '../../../test-support/test-data/change-requests.stub'; import { exampleAdminUser, + exampleAdminUser2, exampleGuestUser, exampleMemberUser } from '../../../test-support/test-data/users.stub'; @@ -113,7 +114,7 @@ describe('change request details container', () => { it('enables review if the user is an admin', () => { mockSingleCRHook(false, false, exampleActivationChangeRequest); - mockAuthHook(exampleAdminUser); + mockAuthHook(exampleAdminUser2); renderComponent(); expect(screen.getByText('Review')).not.toBeDisabled(); diff --git a/src/test-support/test-data/users.stub.ts b/src/test-support/test-data/users.stub.ts index 2fd5b945..a7a4ff8e 100644 --- a/src/test-support/test-data/users.stub.ts +++ b/src/test-support/test-data/users.stub.ts @@ -25,6 +25,16 @@ export const exampleAdminUser: User = { role: Role.ADMIN }; +export const exampleAdminUser2: User = { + userId: 3, + firstName: 'Joe', + lastName: 'Shmoe', + googleAuthId: '2', + email: 'shmoe.j@husky.neu.edu', + emailId: 'shmoe.j', + role: Role.ADMIN +}; + export const exampleLeadershipUser: User = { userId: 3, firstName: 'Joe',