diff --git a/services/web/test/frontend/features/share-project-modal/components/share-project-modal.test.js b/services/web/test/frontend/features/share-project-modal/components/share-project-modal.test.js index c4b12cd644..f003172e88 100644 --- a/services/web/test/frontend/features/share-project-modal/components/share-project-modal.test.js +++ b/services/web/test/frontend/features/share-project-modal/components/share-project-modal.test.js @@ -15,7 +15,11 @@ import { cleanUpContext, } from '../../../helpers/render-with-context' import * as locationModule from '../../../../../frontend/js/features/share-project-modal/utils/location' -import { EditorProviders } from '../../../helpers/editor-providers' +import { + EditorProviders, + USER_EMAIL, + USER_ID, +} from '../../../helpers/editor-providers' describe('', function () { const project = { @@ -26,8 +30,8 @@ describe('', function () { compileGroup: 'standard', }, owner: { - _id: 'member_author', - email: 'project-owner@example.com', + _id: USER_ID, + email: USER_EMAIL, }, members: [], invites: [], diff --git a/services/web/test/frontend/helpers/editor-providers.js b/services/web/test/frontend/helpers/editor-providers.js index 9798dbe8d3..6f98da06b9 100644 --- a/services/web/test/frontend/helpers/editor-providers.js +++ b/services/web/test/frontend/helpers/editor-providers.js @@ -17,9 +17,11 @@ import { DetachCompileProvider } from '../../../frontend/js/shared/context/detac // using magic strings export const PROJECT_ID = 'project123' export const PROJECT_NAME = 'project-name' +export const USER_ID = '123abd' +export const USER_EMAIL = 'testuser@example.com' export function EditorProviders({ - user = { id: '123abd', email: 'testuser@example.com' }, + user = { id: USER_ID, email: USER_EMAIL }, projectId = PROJECT_ID, rootDocId = '_root_doc_id', socket = {