diff --git a/src/stories/create-collection/CreateCollection.stories.tsx b/src/stories/create-collection/CreateCollection.stories.tsx index 52f3ca45a..f868a305d 100644 --- a/src/stories/create-collection/CreateCollection.stories.tsx +++ b/src/stories/create-collection/CreateCollection.stories.tsx @@ -12,7 +12,7 @@ import { MetadataBlockInfoMockRepository } from '../shared-mock-repositories/met import { MetadataBlockInfoMockLoadingRepository } from '../shared-mock-repositories/metadata-block-info/MetadataBlockInfoMockLoadingRepository' import { MetadataBlockInfoMockErrorRepository } from '../shared-mock-repositories/metadata-block-info/MetadataBlockInfoMockErrorRepository' -import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/CollectionHelper' +import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/ROOT_COLLECTION_ALIAS' const meta: Meta = { title: 'Pages/Create Collection', diff --git a/src/stories/shared/add-data-actions/AddDataActionsButton.stories.tsx b/src/stories/shared/add-data-actions/AddDataActionsButton.stories.tsx index 069fcdb2a..77df60b5a 100644 --- a/src/stories/shared/add-data-actions/AddDataActionsButton.stories.tsx +++ b/src/stories/shared/add-data-actions/AddDataActionsButton.stories.tsx @@ -2,7 +2,7 @@ import { Meta, StoryObj } from '@storybook/react' import { WithI18next } from '../../WithI18next' import AddDataActionsButton from '../../../sections/shared/add-data-actions/AddDataActionsButton' -import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/CollectionHelper' +import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/ROOT_COLLECTION_ALIAS' const meta: Meta = { title: 'Sections/Shared/AddDataActions/AddDataActionsButton', diff --git a/tests/component/sections/collection/collection-items-panel/CollectionItemsPanel.spec.tsx b/tests/component/sections/collection/collection-items-panel/CollectionItemsPanel.spec.tsx index 871f3f272..20dc0c072 100644 --- a/tests/component/sections/collection/collection-items-panel/CollectionItemsPanel.spec.tsx +++ b/tests/component/sections/collection/collection-items-panel/CollectionItemsPanel.spec.tsx @@ -7,8 +7,7 @@ import { CollectionRepository } from '@/collection/domain/repositories/Collectio import { CollectionItemsMother } from '@tests/component/collection/domain/models/CollectionItemsMother' import { CollectionItemType } from '@/collection/domain/models/CollectionItemType' -import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/CollectionHelper' - +const ROOT_COLLECTION_ALIAS = 'root' const collectionRepository: CollectionRepository = {} as CollectionRepository const totalItemCount = 200 diff --git a/tests/e2e-integration/shared/collection/CollectionHelper.ts b/tests/e2e-integration/shared/collection/CollectionHelper.ts index 30a2bd12a..5fab95465 100644 --- a/tests/e2e-integration/shared/collection/CollectionHelper.ts +++ b/tests/e2e-integration/shared/collection/CollectionHelper.ts @@ -50,5 +50,3 @@ export class CollectionHelper extends DataverseApiHelper { return collectionResponse } } - -export const ROOT_COLLECTION_ALIAS = 'root' diff --git a/tests/e2e-integration/shared/collection/ROOT_COLLECTION_ALIAS.ts b/tests/e2e-integration/shared/collection/ROOT_COLLECTION_ALIAS.ts new file mode 100644 index 000000000..2160f412a --- /dev/null +++ b/tests/e2e-integration/shared/collection/ROOT_COLLECTION_ALIAS.ts @@ -0,0 +1 @@ +export const ROOT_COLLECTION_ALIAS = 'root' diff --git a/tests/e2e-integration/shared/datasets/DatasetHelper.ts b/tests/e2e-integration/shared/datasets/DatasetHelper.ts index 5b1f91acf..219b059e8 100644 --- a/tests/e2e-integration/shared/datasets/DatasetHelper.ts +++ b/tests/e2e-integration/shared/datasets/DatasetHelper.ts @@ -4,7 +4,7 @@ import { FileData } from '../files/FileHelper' import { DatasetLockReason } from '../../../../src/dataset/domain/models/Dataset' import { TestsUtils } from '../TestsUtils' -import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/CollectionHelper' +import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/ROOT_COLLECTION_ALIAS' export interface DatasetResponse { persistentId: string