From 96df46a32a7c32fd8c842a3e5bab4d0e44e417ba Mon Sep 17 00:00:00 2001 From: MichalKinas <113341662+MichalKinas@users.noreply.github.com> Date: Wed, 4 Sep 2024 18:24:46 +0200 Subject: [PATCH] Make aca-playwright-shared buildable and publishable (#4098) * Make aca-playwright-shared buildable and publishable * Small PR workflow fix --- .github/workflows/pull-request.yml | 2 +- .../authentication/playwright.config.ts | 2 +- .../authentication/src/tests/general.e2e.ts | 2 +- .../authentication/src/tests/login.e2e.ts | 2 +- .../authentication/src/tests/logout.e2e.ts | 2 +- .../authentication/tsconfig.e2e.adf.json | 2 +- .../authentication/tsconfig.e2e.json | 2 +- .../copy-move-actions/playwright.config.ts | 2 +- .../copy-move-actions/src/tests/copy.e2e.ts | 2 +- .../tests/destination-picker-dialog.e2e.ts | 2 +- .../copy-move-actions/src/tests/move.e2e.ts | 2 +- .../copy-move-actions/tsconfig.e2e.adf.json | 2 +- .../copy-move-actions/tsconfig.e2e.json | 2 +- .../create-actions/playwright.config.ts | 2 +- .../tests/create-file-from-template.e2e.ts | 2 +- .../tests/create-folder-from-template.e2e.ts | 2 +- .../src/tests/create-folder.e2e.ts | 2 +- .../src/tests/create-library.e2e.ts | 2 +- .../create-actions/tsconfig.e2e.adf.json | 2 +- .../create-actions/tsconfig.e2e.json | 2 +- .../delete-actions/playwright.config.ts | 2 +- .../src/tests/delete-undo-delete.e2e.ts | 2 +- .../src/tests/permanently-delete.e2e.ts | 2 +- .../delete-actions/src/tests/restore.e2e.ts | 2 +- .../delete-actions/tsconfig.e2e.adf.json | 2 +- .../delete-actions/tsconfig.e2e.json | 2 +- .../edit-actions/playwright.config.ts | 2 +- .../edit-actions/src/tests/edit-folder.e2e.ts | 2 +- .../src/tests/edit-offline.e2e.ts | 2 +- .../edit-actions/tsconfig.e2e.adf.json | 2 +- e2e/playwright/edit-actions/tsconfig.e2e.json | 2 +- .../favorite-actions/playwright.config.ts | 2 +- .../src/tests/mark-favorite.e2e.ts | 2 +- .../favorite-actions/tsconfig.e2e.adf.json | 2 +- .../favorite-actions/tsconfig.e2e.json | 2 +- .../folder-rules/playwright.config.ts | 2 +- .../src/tests/create-rules.e2e.ts | 2 +- .../src/tests/delete-view-rules.e2e.ts | 2 +- .../src/tests/update-rules.e2e.ts | 2 +- .../folder-rules/tsconfig.e2e.adf.json | 2 +- e2e/playwright/folder-rules/tsconfig.e2e.json | 2 +- .../info-drawer/playwright.config.ts | 2 +- .../info-drawer/src/tests/comments.e2e.ts | 2 +- .../src/tests/file-folder-properties.e2e.ts | 2 +- .../info-drawer/src/tests/file-preview.e2e.ts | 2 +- .../info-drawer/src/tests/general.e2e.ts | 2 +- .../src/tests/library-properties.e2e.ts | 2 +- .../info-drawer/tsconfig.e2e.adf.json | 2 +- e2e/playwright/info-drawer/tsconfig.e2e.json | 2 +- .../library-actions/playwright.config.ts | 2 +- .../src/tests/library-actions.e2e.ts | 2 +- .../library-actions/tsconfig.e2e.adf.json | 2 +- .../library-actions/tsconfig.e2e.json | 2 +- .../list-views/playwright.config.ts | 2 +- .../list-views/src/tests/empty-list.e2e.ts | 2 +- .../list-views/src/tests/favorites.e2e.ts | 2 +- .../src/tests/file-libraries.e2e.ts | 2 +- .../src/tests/generic-errors.e2e.ts | 2 +- .../list-views/src/tests/permissions.e2e.ts | 2 +- .../src/tests/personal-files.e2e.ts | 2 +- .../list-views/src/tests/recent-files.e2e.ts | 2 +- .../list-views/src/tests/shared-files.e2e.ts | 2 +- .../list-views/src/tests/sort-list.e2e.ts | 2 +- .../list-views/src/tests/trash-admin.e2e.ts | 2 +- .../list-views/src/tests/trash.e2e.ts | 2 +- .../list-views/tsconfig.e2e.adf.json | 2 +- e2e/playwright/list-views/tsconfig.e2e.json | 2 +- .../navigation/playwright.config.ts | 2 +- .../src/tests/breadcrumb-admin.e2e.ts | 2 +- .../navigation/src/tests/breadcrumb.e2e.ts | 2 +- .../navigation/src/tests/sidebar.e2e.ts | 2 +- .../navigation/src/tests/single-click.e2e.ts | 2 +- .../navigation/tsconfig.e2e.adf.json | 2 +- e2e/playwright/navigation/tsconfig.e2e.json | 2 +- .../pagination/playwright.config.ts | 2 +- .../pagination/src/tests/favorites.ts | 2 +- .../src/tests/multiple-pages-files.e2e.ts | 2 +- .../pagination/src/tests/personal-files.ts | 2 +- .../pagination/tsconfig.e2e.adf.json | 2 +- e2e/playwright/pagination/tsconfig.e2e.json | 2 +- e2e/playwright/search/playwright.config.ts | 2 +- .../tests/search-filters-categories.e2e.ts | 2 +- .../src/tests/search-filters-date.e2e.ts | 2 +- .../src/tests/search-filters-general.e2e.ts | 2 +- .../src/tests/search-filters-location.e2e.ts | 2 +- .../src/tests/search-filters-logic.e2e.ts | 2 +- .../tests/search-filters-properties.e2e.ts | 2 +- .../src/tests/search-filters-tags.e2e.ts | 2 +- .../search/src/tests/search-input.e2e.ts | 2 +- .../tests/search-results-files-folders.e2e.ts | 2 +- .../src/tests/search-results-general.e2e.ts | 2 +- .../src/tests/search-results-libraries.e2e.ts | 2 +- .../search/src/tests/search-sorting.e2e.ts | 2 +- e2e/playwright/search/tsconfig.e2e.adf.json | 2 +- e2e/playwright/search/tsconfig.e2e.json | 2 +- .../share-action/playwright.config.ts | 2 +- .../src/tests/share/share-file.e2e.ts | 2 +- .../share/unshare-file-search-results.e2e.ts | 2 +- .../share-action/tsconfig.e2e.adf.json | 2 +- e2e/playwright/share-action/tsconfig.e2e.json | 2 +- .../playwright.config.ts | 2 +- .../src/tests/folders-actions.e2e.ts | 4 +-- .../src/tests/other-permissions.ts | 4 +-- .../tests/special-permissions-actions.e2e.ts | 4 +-- .../src/tests/viewer.ts | 4 +-- .../tsconfig.e2e.adf.json | 2 +- .../tsconfig.e2e.json | 2 +- .../playwright.config.ts | 2 +- .../src/tests/download.e2e.ts | 2 +- .../src/tests/upload-new-version.e2e.ts | 2 +- .../src/tests/upload.e2e.ts | 2 +- .../src/tests/version-actions.e2e.ts | 2 +- .../tsconfig.e2e.adf.json | 2 +- .../upload-download-actions/tsconfig.e2e.json | 2 +- e2e/playwright/viewer/playwright.config.ts | 2 +- .../viewer/src/tests/viewer-action.e2e.ts | 2 +- .../viewer/src/tests/viewer-protected.e2e.ts | 2 +- .../viewer/src/tests/viewer-useraction.e2e.ts | 2 +- e2e/playwright/viewer/src/tests/viewer.e2e.ts | 2 +- e2e/playwright/viewer/tsconfig.e2e.adf.json | 2 +- e2e/playwright/viewer/tsconfig.e2e.json | 2 +- .../aca-playwright-shared/ng-package.json | 2 +- projects/aca-playwright-shared/package.json | 3 +-- .../src/api/file-actions.ts | 3 +-- .../src/fixtures/index.ts | 25 ++++++++++++++++++ .../src/fixtures/page-initialization.ts | 16 +++++------- .../page-objects/components/dialogs/index.ts | 1 + .../search-filters-date.component.ts | 2 +- .../search-filters-location.component.ts | 2 +- .../search-filters-properties.component.ts | 2 +- .../search-filters-tags.component.ts | 2 +- .../components/sidenav.component.ts | 1 - .../src/page-objects/playwright-base.ts | 2 +- .../src/{index.ts => public-api.ts} | 5 ++-- .../src/resources/index.ts | 26 +++++++++++++++++++ .../test-data/test-data-files-folders.ts | 2 +- .../test-data/test-data-permissions.ts | 2 +- .../aca-playwright-shared/src/utils/utils.ts | 4 +-- .../tsconfig.lib.prod.json | 9 ++++++- tsconfig.adf.json | 2 +- tsconfig.json | 2 +- 141 files changed, 207 insertions(+), 156 deletions(-) create mode 100644 projects/aca-playwright-shared/src/fixtures/index.ts rename projects/aca-playwright-shared/src/{index.ts => public-api.ts} (90%) create mode 100644 projects/aca-playwright-shared/src/resources/index.ts diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 8c078e0c3..ef3cb905c 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -99,7 +99,7 @@ jobs: - name: Test all if: ${{ github.event_name != 'pull_request' }} - run: npx nx run-many --target=test --browsers=ChromeHeadless --watch=false $TEST_OPTS --base=origin/develop + run: npx nx run-many --target=test --browsers=ChromeHeadless --watch=false $TEST_OPTS e2es-playwright: needs: [lint, build, unit-tests] diff --git a/e2e/playwright/authentication/playwright.config.ts b/e2e/playwright/authentication/playwright.config.ts index df265178c..401336010 100644 --- a/e2e/playwright/authentication/playwright.config.ts +++ b/e2e/playwright/authentication/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/authentication/src/tests/general.e2e.ts b/e2e/playwright/authentication/src/tests/general.e2e.ts index c00dc4a7a..072fe375b 100644 --- a/e2e/playwright/authentication/src/tests/general.e2e.ts +++ b/e2e/playwright/authentication/src/tests/general.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test } from '@alfresco/aca-playwright-shared'; test.describe('Create folders', () => { const apiClientFactory = new ApiClientFactory(); diff --git a/e2e/playwright/authentication/src/tests/login.e2e.ts b/e2e/playwright/authentication/src/tests/login.e2e.ts index fd0cabb9c..2c8e8c7cb 100644 --- a/e2e/playwright/authentication/src/tests/login.e2e.ts +++ b/e2e/playwright/authentication/src/tests/login.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test } from '@alfresco/aca-playwright-shared'; test.describe('viewer file', () => { const apiClientFactory = new ApiClientFactory(); diff --git a/e2e/playwright/authentication/src/tests/logout.e2e.ts b/e2e/playwright/authentication/src/tests/logout.e2e.ts index 4a9998391..530740276 100644 --- a/e2e/playwright/authentication/src/tests/logout.e2e.ts +++ b/e2e/playwright/authentication/src/tests/logout.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test } from '@alfresco/aca-playwright-shared'; test.describe('viewer file', () => { const apiClientFactory = new ApiClientFactory(); diff --git a/e2e/playwright/authentication/tsconfig.e2e.adf.json b/e2e/playwright/authentication/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/authentication/tsconfig.e2e.adf.json +++ b/e2e/playwright/authentication/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/authentication/tsconfig.e2e.json b/e2e/playwright/authentication/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/authentication/tsconfig.e2e.json +++ b/e2e/playwright/authentication/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/copy-move-actions/playwright.config.ts b/e2e/playwright/copy-move-actions/playwright.config.ts index b478f7487..c9df77755 100644 --- a/e2e/playwright/copy-move-actions/playwright.config.ts +++ b/e2e/playwright/copy-move-actions/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray, timeouts } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray, timeouts } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/copy-move-actions/src/tests/copy.e2e.ts b/e2e/playwright/copy-move-actions/src/tests/copy.e2e.ts index 5d6135196..ebab6fd96 100644 --- a/e2e/playwright/copy-move-actions/src/tests/copy.e2e.ts +++ b/e2e/playwright/copy-move-actions/src/tests/copy.e2e.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { ApiClientFactory, test, Utils, PersonalFilesPage, NodesApi, LoginPage, TrashcanApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, test, Utils, PersonalFilesPage, NodesApi, LoginPage, TrashcanApi } from '@alfresco/aca-playwright-shared'; import { expect } from '@playwright/test'; test.describe('Copy actions', () => { diff --git a/e2e/playwright/copy-move-actions/src/tests/destination-picker-dialog.e2e.ts b/e2e/playwright/copy-move-actions/src/tests/destination-picker-dialog.e2e.ts index acd7a2f25..1a7c54f58 100644 --- a/e2e/playwright/copy-move-actions/src/tests/destination-picker-dialog.e2e.ts +++ b/e2e/playwright/copy-move-actions/src/tests/destination-picker-dialog.e2e.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { ApiClientFactory, MyLibrariesPage, NodesApi, SitesApi, test, Utils, TrashcanApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, MyLibrariesPage, NodesApi, SitesApi, test, Utils, TrashcanApi } from '@alfresco/aca-playwright-shared'; import { expect } from '@playwright/test'; import { Site } from '@alfresco/js-api'; diff --git a/e2e/playwright/copy-move-actions/src/tests/move.e2e.ts b/e2e/playwright/copy-move-actions/src/tests/move.e2e.ts index ba4eb6ba6..de95f40bb 100644 --- a/e2e/playwright/copy-move-actions/src/tests/move.e2e.ts +++ b/e2e/playwright/copy-move-actions/src/tests/move.e2e.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { ApiClientFactory, test, Utils, PersonalFilesPage, NodesApi, LoginPage, TrashcanApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, test, Utils, PersonalFilesPage, NodesApi, LoginPage, TrashcanApi } from '@alfresco/aca-playwright-shared'; import { expect } from '@playwright/test'; test.describe('Move actions', () => { diff --git a/e2e/playwright/copy-move-actions/tsconfig.e2e.adf.json b/e2e/playwright/copy-move-actions/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/copy-move-actions/tsconfig.e2e.adf.json +++ b/e2e/playwright/copy-move-actions/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/copy-move-actions/tsconfig.e2e.json b/e2e/playwright/copy-move-actions/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/copy-move-actions/tsconfig.e2e.json +++ b/e2e/playwright/copy-move-actions/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/create-actions/playwright.config.ts b/e2e/playwright/create-actions/playwright.config.ts index ad6838ebc..dbcf638b4 100644 --- a/e2e/playwright/create-actions/playwright.config.ts +++ b/e2e/playwright/create-actions/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/create-actions/src/tests/create-file-from-template.e2e.ts b/e2e/playwright/create-actions/src/tests/create-file-from-template.e2e.ts index 8e8f06d73..e11b6b8c0 100644 --- a/e2e/playwright/create-actions/src/tests/create-file-from-template.e2e.ts +++ b/e2e/playwright/create-actions/src/tests/create-file-from-template.e2e.ts @@ -36,7 +36,7 @@ import { errorStrings, test, TrashcanApi -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; test.describe('Create file from template', () => { let nodesApi: NodesApi; diff --git a/e2e/playwright/create-actions/src/tests/create-folder-from-template.e2e.ts b/e2e/playwright/create-actions/src/tests/create-folder-from-template.e2e.ts index dd0668f61..1447b4787 100644 --- a/e2e/playwright/create-actions/src/tests/create-folder-from-template.e2e.ts +++ b/e2e/playwright/create-actions/src/tests/create-folder-from-template.e2e.ts @@ -36,7 +36,7 @@ import { errorStrings, test, TrashcanApi -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; test.describe('Create folder from template', () => { const apiClientFactory = new ApiClientFactory(); diff --git a/e2e/playwright/create-actions/src/tests/create-folder.e2e.ts b/e2e/playwright/create-actions/src/tests/create-folder.e2e.ts index 738907d4d..e24430239 100644 --- a/e2e/playwright/create-actions/src/tests/create-folder.e2e.ts +++ b/e2e/playwright/create-actions/src/tests/create-folder.e2e.ts @@ -33,7 +33,7 @@ import { errorStrings, test, TrashcanApi -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; test.describe('Create folders', () => { const apiClientFactory = new ApiClientFactory(); diff --git a/e2e/playwright/create-actions/src/tests/create-library.e2e.ts b/e2e/playwright/create-actions/src/tests/create-library.e2e.ts index e21c8c037..3860eb1c6 100644 --- a/e2e/playwright/create-actions/src/tests/create-library.e2e.ts +++ b/e2e/playwright/create-actions/src/tests/create-library.e2e.ts @@ -35,7 +35,7 @@ import { Breadcrumb, TrashcanApi, NodesApi -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; test.describe('Create Libraries ', () => { const apiClientFactory = new ApiClientFactory(); diff --git a/e2e/playwright/create-actions/tsconfig.e2e.adf.json b/e2e/playwright/create-actions/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/create-actions/tsconfig.e2e.adf.json +++ b/e2e/playwright/create-actions/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/create-actions/tsconfig.e2e.json b/e2e/playwright/create-actions/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/create-actions/tsconfig.e2e.json +++ b/e2e/playwright/create-actions/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/delete-actions/playwright.config.ts b/e2e/playwright/delete-actions/playwright.config.ts index b0779e871..50d0fc68a 100644 --- a/e2e/playwright/delete-actions/playwright.config.ts +++ b/e2e/playwright/delete-actions/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/delete-actions/src/tests/delete-undo-delete.e2e.ts b/e2e/playwright/delete-actions/src/tests/delete-undo-delete.e2e.ts index 0728cbb27..158244ca2 100755 --- a/e2e/playwright/delete-actions/src/tests/delete-undo-delete.e2e.ts +++ b/e2e/playwright/delete-actions/src/tests/delete-undo-delete.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, NodesApi, Utils, test, TrashcanApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, Utils, test, TrashcanApi } from '@alfresco/aca-playwright-shared'; test.describe('Delete and undo delete', () => { const apiClientFactory = new ApiClientFactory(); diff --git a/e2e/playwright/delete-actions/src/tests/permanently-delete.e2e.ts b/e2e/playwright/delete-actions/src/tests/permanently-delete.e2e.ts index e69a6ebbf..5ec4042fd 100755 --- a/e2e/playwright/delete-actions/src/tests/permanently-delete.e2e.ts +++ b/e2e/playwright/delete-actions/src/tests/permanently-delete.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, NodesApi, Utils, test, TrashcanApi, SitesApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, Utils, test, TrashcanApi, SitesApi } from '@alfresco/aca-playwright-shared'; test.describe('Delete and undo delete', () => { const apiClientFactory = new ApiClientFactory(); diff --git a/e2e/playwright/delete-actions/src/tests/restore.e2e.ts b/e2e/playwright/delete-actions/src/tests/restore.e2e.ts index 670a7902b..bd63fcd31 100755 --- a/e2e/playwright/delete-actions/src/tests/restore.e2e.ts +++ b/e2e/playwright/delete-actions/src/tests/restore.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, NodesApi, Utils, test, TrashcanApi, SitesApi, APP_ROUTES, TrashPage } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, Utils, test, TrashcanApi, SitesApi, APP_ROUTES, TrashPage } from '@alfresco/aca-playwright-shared'; test.describe('Restore from Trash', () => { const apiClientFactory = new ApiClientFactory(); diff --git a/e2e/playwright/delete-actions/tsconfig.e2e.adf.json b/e2e/playwright/delete-actions/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/delete-actions/tsconfig.e2e.adf.json +++ b/e2e/playwright/delete-actions/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/delete-actions/tsconfig.e2e.json b/e2e/playwright/delete-actions/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/delete-actions/tsconfig.e2e.json +++ b/e2e/playwright/delete-actions/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/edit-actions/playwright.config.ts b/e2e/playwright/edit-actions/playwright.config.ts index f80c6ff3b..525999eba 100644 --- a/e2e/playwright/edit-actions/playwright.config.ts +++ b/e2e/playwright/edit-actions/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/edit-actions/src/tests/edit-folder.e2e.ts b/e2e/playwright/edit-actions/src/tests/edit-folder.e2e.ts index 9e55b6244..7b696c27b 100755 --- a/e2e/playwright/edit-actions/src/tests/edit-folder.e2e.ts +++ b/e2e/playwright/edit-actions/src/tests/edit-folder.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, NodesApi, Utils, test, TrashcanApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, Utils, test, TrashcanApi } from '@alfresco/aca-playwright-shared'; test.describe('Edit folder', () => { const apiClientFactory = new ApiClientFactory(); diff --git a/e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts b/e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts index 2ecc0ea32..844fb587e 100644 --- a/e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts +++ b/e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, NodesApi, Utils, test, TrashcanApi, FileActionsApi, TEST_FILES } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, Utils, test, TrashcanApi, FileActionsApi, TEST_FILES } from '@alfresco/aca-playwright-shared'; test.describe('Edit offline - on Personal Files', () => { const apiClientFactory = new ApiClientFactory(); diff --git a/e2e/playwright/edit-actions/tsconfig.e2e.adf.json b/e2e/playwright/edit-actions/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/edit-actions/tsconfig.e2e.adf.json +++ b/e2e/playwright/edit-actions/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/edit-actions/tsconfig.e2e.json b/e2e/playwright/edit-actions/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/edit-actions/tsconfig.e2e.json +++ b/e2e/playwright/edit-actions/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/favorite-actions/playwright.config.ts b/e2e/playwright/favorite-actions/playwright.config.ts index 2cc652a69..be808ff82 100644 --- a/e2e/playwright/favorite-actions/playwright.config.ts +++ b/e2e/playwright/favorite-actions/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/favorite-actions/src/tests/mark-favorite.e2e.ts b/e2e/playwright/favorite-actions/src/tests/mark-favorite.e2e.ts index fac9d67cf..1b5bfe8fa 100644 --- a/e2e/playwright/favorite-actions/src/tests/mark-favorite.e2e.ts +++ b/e2e/playwright/favorite-actions/src/tests/mark-favorite.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi, FavoritesPageApi, SharedLinksApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi, FavoritesPageApi, SharedLinksApi } from '@alfresco/aca-playwright-shared'; test.describe('Mark items as favorites', () => { let trashcanApi: TrashcanApi; diff --git a/e2e/playwright/favorite-actions/tsconfig.e2e.adf.json b/e2e/playwright/favorite-actions/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/favorite-actions/tsconfig.e2e.adf.json +++ b/e2e/playwright/favorite-actions/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/favorite-actions/tsconfig.e2e.json b/e2e/playwright/favorite-actions/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/favorite-actions/tsconfig.e2e.json +++ b/e2e/playwright/favorite-actions/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/folder-rules/playwright.config.ts b/e2e/playwright/folder-rules/playwright.config.ts index 21227baf7..847ea1f89 100644 --- a/e2e/playwright/folder-rules/playwright.config.ts +++ b/e2e/playwright/folder-rules/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/folder-rules/src/tests/create-rules.e2e.ts b/e2e/playwright/folder-rules/src/tests/create-rules.e2e.ts index 34262ca07..43e3d2d8e 100644 --- a/e2e/playwright/folder-rules/src/tests/create-rules.e2e.ts +++ b/e2e/playwright/folder-rules/src/tests/create-rules.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ActionType, ApiClientFactory, test, Utils, TrashcanApi, NodesApi, Comparator, Field } from '@alfresco/playwright-shared'; +import { ActionType, ApiClientFactory, test, Utils, TrashcanApi, NodesApi, Comparator, Field } from '@alfresco/aca-playwright-shared'; test.use({ launchOptions: { slowMo: 300 } }); test.describe('Folder Rules Actions', () => { diff --git a/e2e/playwright/folder-rules/src/tests/delete-view-rules.e2e.ts b/e2e/playwright/folder-rules/src/tests/delete-view-rules.e2e.ts index b690f3a84..121996a92 100644 --- a/e2e/playwright/folder-rules/src/tests/delete-view-rules.e2e.ts +++ b/e2e/playwright/folder-rules/src/tests/delete-view-rules.e2e.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { ApiClientFactory, test, Utils, NodesApi, TrashcanApi, RulesApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, test, Utils, NodesApi, TrashcanApi, RulesApi } from '@alfresco/aca-playwright-shared'; import { expect } from '@playwright/test'; test.use({ launchOptions: { slowMo: 300 } }); diff --git a/e2e/playwright/folder-rules/src/tests/update-rules.e2e.ts b/e2e/playwright/folder-rules/src/tests/update-rules.e2e.ts index 7780d0000..c14cadf24 100644 --- a/e2e/playwright/folder-rules/src/tests/update-rules.e2e.ts +++ b/e2e/playwright/folder-rules/src/tests/update-rules.e2e.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { ApiClientFactory, test, Utils, NodesApi, TrashcanApi, ActionType, RulesApi, Field, Comparator } from '@alfresco/playwright-shared'; +import { ApiClientFactory, test, Utils, NodesApi, TrashcanApi, ActionType, RulesApi, Field, Comparator } from '@alfresco/aca-playwright-shared'; import { expect } from '@playwright/test'; test.use({ launchOptions: { slowMo: 300 } }); diff --git a/e2e/playwright/folder-rules/tsconfig.e2e.adf.json b/e2e/playwright/folder-rules/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/folder-rules/tsconfig.e2e.adf.json +++ b/e2e/playwright/folder-rules/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/folder-rules/tsconfig.e2e.json b/e2e/playwright/folder-rules/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/folder-rules/tsconfig.e2e.json +++ b/e2e/playwright/folder-rules/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/info-drawer/playwright.config.ts b/e2e/playwright/info-drawer/playwright.config.ts index ca9502c42..66e0ce199 100644 --- a/e2e/playwright/info-drawer/playwright.config.ts +++ b/e2e/playwright/info-drawer/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/info-drawer/src/tests/comments.e2e.ts b/e2e/playwright/info-drawer/src/tests/comments.e2e.ts index 0238fdcae..79429051b 100755 --- a/e2e/playwright/info-drawer/src/tests/comments.e2e.ts +++ b/e2e/playwright/info-drawer/src/tests/comments.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, TrashcanApi, FavoritesPageApi, NodesApi, FileActionsApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, TrashcanApi, FavoritesPageApi, NodesApi, FileActionsApi } from '@alfresco/aca-playwright-shared'; test.describe('Info Drawer - Comments', () => { const apiClientFactory = new ApiClientFactory(); diff --git a/e2e/playwright/info-drawer/src/tests/file-folder-properties.e2e.ts b/e2e/playwright/info-drawer/src/tests/file-folder-properties.e2e.ts index 6dbbe7843..cbd0ceb25 100755 --- a/e2e/playwright/info-drawer/src/tests/file-folder-properties.e2e.ts +++ b/e2e/playwright/info-drawer/src/tests/file-folder-properties.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi, FileActionsApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi, FileActionsApi } from '@alfresco/aca-playwright-shared'; test.describe('Info Drawer - File Folder Properties', () => { let nodesApi: NodesApi; diff --git a/e2e/playwright/info-drawer/src/tests/file-preview.e2e.ts b/e2e/playwright/info-drawer/src/tests/file-preview.e2e.ts index 653065277..dba93d61b 100755 --- a/e2e/playwright/info-drawer/src/tests/file-preview.e2e.ts +++ b/e2e/playwright/info-drawer/src/tests/file-preview.e2e.ts @@ -23,7 +23,7 @@ */ import { expect, Page } from '@playwright/test'; -import { ApiClientFactory, test, TrashcanApi, NodesApi, FileActionsApi, TEST_FILES, Utils } from '@alfresco/playwright-shared'; +import { ApiClientFactory, test, TrashcanApi, NodesApi, FileActionsApi, TEST_FILES, Utils } from '@alfresco/aca-playwright-shared'; test.describe('File preview', () => { const timestamp = new Date().getTime(); diff --git a/e2e/playwright/info-drawer/src/tests/general.e2e.ts b/e2e/playwright/info-drawer/src/tests/general.e2e.ts index ab7ac2566..dd5138a13 100644 --- a/e2e/playwright/info-drawer/src/tests/general.e2e.ts +++ b/e2e/playwright/info-drawer/src/tests/general.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi, FileActionsApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi, FileActionsApi } from '@alfresco/aca-playwright-shared'; test.describe('Info Drawer - General', () => { let fileActionsApi: FileActionsApi; diff --git a/e2e/playwright/info-drawer/src/tests/library-properties.e2e.ts b/e2e/playwright/info-drawer/src/tests/library-properties.e2e.ts index cd3ae9674..54dfbf56a 100644 --- a/e2e/playwright/info-drawer/src/tests/library-properties.e2e.ts +++ b/e2e/playwright/info-drawer/src/tests/library-properties.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, SitesApi, QueriesApi, SITE_VISIBILITY, SITE_ROLES } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, SitesApi, QueriesApi, SITE_VISIBILITY, SITE_ROLES } from '@alfresco/aca-playwright-shared'; test.describe('Library properties', () => { let sitesApi: SitesApi; diff --git a/e2e/playwright/info-drawer/tsconfig.e2e.adf.json b/e2e/playwright/info-drawer/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/info-drawer/tsconfig.e2e.adf.json +++ b/e2e/playwright/info-drawer/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/info-drawer/tsconfig.e2e.json b/e2e/playwright/info-drawer/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/info-drawer/tsconfig.e2e.json +++ b/e2e/playwright/info-drawer/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/library-actions/playwright.config.ts b/e2e/playwright/library-actions/playwright.config.ts index 50d62f5ff..f1d0d1cf5 100644 --- a/e2e/playwright/library-actions/playwright.config.ts +++ b/e2e/playwright/library-actions/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/library-actions/src/tests/library-actions.e2e.ts b/e2e/playwright/library-actions/src/tests/library-actions.e2e.ts index e5cab8abf..5f10af0fd 100644 --- a/e2e/playwright/library-actions/src/tests/library-actions.e2e.ts +++ b/e2e/playwright/library-actions/src/tests/library-actions.e2e.ts @@ -36,7 +36,7 @@ import { AcaHeader, MatMenuComponent, TrashcanApi -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; import { Site } from '@alfresco/js-api'; test.describe('Library actions ', () => { diff --git a/e2e/playwright/library-actions/tsconfig.e2e.adf.json b/e2e/playwright/library-actions/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/library-actions/tsconfig.e2e.adf.json +++ b/e2e/playwright/library-actions/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/library-actions/tsconfig.e2e.json b/e2e/playwright/library-actions/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/library-actions/tsconfig.e2e.json +++ b/e2e/playwright/library-actions/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/list-views/playwright.config.ts b/e2e/playwright/list-views/playwright.config.ts index 0bb4cf7c1..aa15361d5 100644 --- a/e2e/playwright/list-views/playwright.config.ts +++ b/e2e/playwright/list-views/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/list-views/src/tests/empty-list.e2e.ts b/e2e/playwright/list-views/src/tests/empty-list.e2e.ts index 00112b7b9..af406c12f 100755 --- a/e2e/playwright/list-views/src/tests/empty-list.e2e.ts +++ b/e2e/playwright/list-views/src/tests/empty-list.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, SIDEBAR_LABELS, SearchPage, PersonalFilesPage } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, SIDEBAR_LABELS, SearchPage, PersonalFilesPage } from '@alfresco/aca-playwright-shared'; test.describe('Empty list views', () => { const username = `user-${Utils.random()}`; diff --git a/e2e/playwright/list-views/src/tests/favorites.e2e.ts b/e2e/playwright/list-views/src/tests/favorites.e2e.ts index ee145ffb1..96a03b544 100644 --- a/e2e/playwright/list-views/src/tests/favorites.e2e.ts +++ b/e2e/playwright/list-views/src/tests/favorites.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, NodesApi, Utils, test, SitesApi, FavoritesPageApi, timeouts, TrashcanApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, Utils, test, SitesApi, FavoritesPageApi, timeouts, TrashcanApi } from '@alfresco/aca-playwright-shared'; import { Site } from '@alfresco/js-api'; test.describe('Favorites Files', () => { diff --git a/e2e/playwright/list-views/src/tests/file-libraries.e2e.ts b/e2e/playwright/list-views/src/tests/file-libraries.e2e.ts index 896acdc57..9b9c77321 100755 --- a/e2e/playwright/list-views/src/tests/file-libraries.e2e.ts +++ b/e2e/playwright/list-views/src/tests/file-libraries.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, FavoritesPageApi, SitesApi, Utils, test, timeouts } from '@alfresco/playwright-shared'; +import { ApiClientFactory, FavoritesPageApi, SitesApi, Utils, test, timeouts } from '@alfresco/aca-playwright-shared'; import { Site } from '@alfresco/js-api'; test.describe('File Libraries', () => { diff --git a/e2e/playwright/list-views/src/tests/generic-errors.e2e.ts b/e2e/playwright/list-views/src/tests/generic-errors.e2e.ts index fa1af3801..2486a2732 100755 --- a/e2e/playwright/list-views/src/tests/generic-errors.e2e.ts +++ b/e2e/playwright/list-views/src/tests/generic-errors.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, NodesApi, TrashcanApi, Utils, test } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, TrashcanApi, Utils, test } from '@alfresco/aca-playwright-shared'; test.describe('Generic errors', () => { const username = `user-${Utils.random()}`; diff --git a/e2e/playwright/list-views/src/tests/permissions.e2e.ts b/e2e/playwright/list-views/src/tests/permissions.e2e.ts index 6fd3d4972..e3ab5f9e8 100755 --- a/e2e/playwright/list-views/src/tests/permissions.e2e.ts +++ b/e2e/playwright/list-views/src/tests/permissions.e2e.ts @@ -34,7 +34,7 @@ import { Utils, test, timeouts -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; import { Site } from '@alfresco/js-api'; test.describe('Special permissions', () => { diff --git a/e2e/playwright/list-views/src/tests/personal-files.e2e.ts b/e2e/playwright/list-views/src/tests/personal-files.e2e.ts index 569d6a10a..5563d488b 100644 --- a/e2e/playwright/list-views/src/tests/personal-files.e2e.ts +++ b/e2e/playwright/list-views/src/tests/personal-files.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { APP_ROUTES, ApiClientFactory, NodesApi, SIDEBAR_LABELS, Utils, test, TrashcanApi } from '@alfresco/playwright-shared'; +import { APP_ROUTES, ApiClientFactory, NodesApi, SIDEBAR_LABELS, Utils, test, TrashcanApi } from '@alfresco/aca-playwright-shared'; test.describe('Personal Files', () => { let nodesApi: NodesApi; diff --git a/e2e/playwright/list-views/src/tests/recent-files.e2e.ts b/e2e/playwright/list-views/src/tests/recent-files.e2e.ts index add45880e..c543266f2 100755 --- a/e2e/playwright/list-views/src/tests/recent-files.e2e.ts +++ b/e2e/playwright/list-views/src/tests/recent-files.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, NodesApi, SearchPageApi, SitesApi, TrashcanApi, Utils, test, timeouts } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, SearchPageApi, SitesApi, TrashcanApi, Utils, test, timeouts } from '@alfresco/aca-playwright-shared'; import { Site } from '@alfresco/js-api'; test.describe('Recent Files', () => { diff --git a/e2e/playwright/list-views/src/tests/shared-files.e2e.ts b/e2e/playwright/list-views/src/tests/shared-files.e2e.ts index ab2d59269..cb05ea74c 100644 --- a/e2e/playwright/list-views/src/tests/shared-files.e2e.ts +++ b/e2e/playwright/list-views/src/tests/shared-files.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, NodesApi, Utils, test, SitesApi, timeouts, SharedLinksApi, TrashcanApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, Utils, test, SitesApi, timeouts, SharedLinksApi, TrashcanApi } from '@alfresco/aca-playwright-shared'; import { Site } from '@alfresco/js-api'; test.describe('Shared Files', () => { diff --git a/e2e/playwright/list-views/src/tests/sort-list.e2e.ts b/e2e/playwright/list-views/src/tests/sort-list.e2e.ts index d1702ba49..2f1db328e 100644 --- a/e2e/playwright/list-views/src/tests/sort-list.e2e.ts +++ b/e2e/playwright/list-views/src/tests/sort-list.e2e.ts @@ -33,7 +33,7 @@ import { Utils, test, timeouts -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; async function getSortState(myPersonalFiles: PersonalFilesPage): Promise<{ [key: string]: string }> { return { diff --git a/e2e/playwright/list-views/src/tests/trash-admin.e2e.ts b/e2e/playwright/list-views/src/tests/trash-admin.e2e.ts index 056ac8fcc..df048beec 100755 --- a/e2e/playwright/list-views/src/tests/trash-admin.e2e.ts +++ b/e2e/playwright/list-views/src/tests/trash-admin.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, NodesApi, Utils, getUserState, test, TrashcanApi, users } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, Utils, getUserState, test, TrashcanApi, users } from '@alfresco/aca-playwright-shared'; test.use({ storageState: getUserState('admin') }); test.describe('Trash admin', () => { diff --git a/e2e/playwright/list-views/src/tests/trash.e2e.ts b/e2e/playwright/list-views/src/tests/trash.e2e.ts index 77ac720bb..4511c3158 100755 --- a/e2e/playwright/list-views/src/tests/trash.e2e.ts +++ b/e2e/playwright/list-views/src/tests/trash.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, NodesApi, SitesApi, Utils, test, TrashcanApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, SitesApi, Utils, test, TrashcanApi } from '@alfresco/aca-playwright-shared'; import { Site } from '@alfresco/js-api'; test.describe('Trash', () => { diff --git a/e2e/playwright/list-views/tsconfig.e2e.adf.json b/e2e/playwright/list-views/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/list-views/tsconfig.e2e.adf.json +++ b/e2e/playwright/list-views/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/list-views/tsconfig.e2e.json b/e2e/playwright/list-views/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/list-views/tsconfig.e2e.json +++ b/e2e/playwright/list-views/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/navigation/playwright.config.ts b/e2e/playwright/navigation/playwright.config.ts index 0c5957887..eabb7fd70 100644 --- a/e2e/playwright/navigation/playwright.config.ts +++ b/e2e/playwright/navigation/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/navigation/src/tests/breadcrumb-admin.e2e.ts b/e2e/playwright/navigation/src/tests/breadcrumb-admin.e2e.ts index 1afb690f1..8ba40d9e7 100644 --- a/e2e/playwright/navigation/src/tests/breadcrumb-admin.e2e.ts +++ b/e2e/playwright/navigation/src/tests/breadcrumb-admin.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, NodesApi, test, users, Utils } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, test, users, Utils } from '@alfresco/aca-playwright-shared'; test.describe('as admin', () => { test.describe.configure({ mode: 'serial' }); diff --git a/e2e/playwright/navigation/src/tests/breadcrumb.e2e.ts b/e2e/playwright/navigation/src/tests/breadcrumb.e2e.ts index 25d92ac0a..133bae81b 100644 --- a/e2e/playwright/navigation/src/tests/breadcrumb.e2e.ts +++ b/e2e/playwright/navigation/src/tests/breadcrumb.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, TrashcanApi, NodesApi, SitesApi, test, timeouts, Utils } from '@alfresco/playwright-shared'; +import { ApiClientFactory, TrashcanApi, NodesApi, SitesApi, test, timeouts, Utils } from '@alfresco/aca-playwright-shared'; import { Site } from '@alfresco/js-api'; test.describe('viewer action file', () => { diff --git a/e2e/playwright/navigation/src/tests/sidebar.e2e.ts b/e2e/playwright/navigation/src/tests/sidebar.e2e.ts index 9f86a66ce..c334e6816 100644 --- a/e2e/playwright/navigation/src/tests/sidebar.e2e.ts +++ b/e2e/playwright/navigation/src/tests/sidebar.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, APP_ROUTES, SIDEBAR_LABELS, test, Utils } from '@alfresco/playwright-shared'; +import { ApiClientFactory, APP_ROUTES, SIDEBAR_LABELS, test, Utils } from '@alfresco/aca-playwright-shared'; test.describe('Sidebar', () => { const username = `user-${Utils.random()}`; diff --git a/e2e/playwright/navigation/src/tests/single-click.e2e.ts b/e2e/playwright/navigation/src/tests/single-click.e2e.ts index 24742f0fb..ef7d1217d 100644 --- a/e2e/playwright/navigation/src/tests/single-click.e2e.ts +++ b/e2e/playwright/navigation/src/tests/single-click.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, TrashcanApi, NodesApi, SitesApi, test, Utils } from '@alfresco/playwright-shared'; +import { ApiClientFactory, TrashcanApi, NodesApi, SitesApi, test, Utils } from '@alfresco/aca-playwright-shared'; test.describe('Single click on item name', () => { let nodesApi: NodesApi; diff --git a/e2e/playwright/navigation/tsconfig.e2e.adf.json b/e2e/playwright/navigation/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/navigation/tsconfig.e2e.adf.json +++ b/e2e/playwright/navigation/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/navigation/tsconfig.e2e.json b/e2e/playwright/navigation/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/navigation/tsconfig.e2e.json +++ b/e2e/playwright/navigation/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/pagination/playwright.config.ts b/e2e/playwright/pagination/playwright.config.ts index 43872361f..b236851ed 100644 --- a/e2e/playwright/pagination/playwright.config.ts +++ b/e2e/playwright/pagination/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/pagination/src/tests/favorites.ts b/e2e/playwright/pagination/src/tests/favorites.ts index 740931631..b3761f546 100644 --- a/e2e/playwright/pagination/src/tests/favorites.ts +++ b/e2e/playwright/pagination/src/tests/favorites.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { test } from '@alfresco/playwright-shared'; +import { test } from '@alfresco/aca-playwright-shared'; import { expect } from '@playwright/test'; export function favoritesTests(username: string) { diff --git a/e2e/playwright/pagination/src/tests/multiple-pages-files.e2e.ts b/e2e/playwright/pagination/src/tests/multiple-pages-files.e2e.ts index 2936cb6d2..4438bd5ed 100755 --- a/e2e/playwright/pagination/src/tests/multiple-pages-files.e2e.ts +++ b/e2e/playwright/pagination/src/tests/multiple-pages-files.e2e.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { ApiClientFactory, FavoritesPageApi, NodesApi, test, timeouts, Utils, TrashcanApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, FavoritesPageApi, NodesApi, test, timeouts, Utils, TrashcanApi } from '@alfresco/aca-playwright-shared'; import { personalFilesTests } from './personal-files'; import { favoritesTests } from './favorites'; diff --git a/e2e/playwright/pagination/src/tests/personal-files.ts b/e2e/playwright/pagination/src/tests/personal-files.ts index b42e34d2a..bd874801d 100644 --- a/e2e/playwright/pagination/src/tests/personal-files.ts +++ b/e2e/playwright/pagination/src/tests/personal-files.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { test, timeouts } from '@alfresco/playwright-shared'; +import { test, timeouts } from '@alfresco/aca-playwright-shared'; import { expect } from '@playwright/test'; export function personalFilesTests(userName: string, parentName: string) { diff --git a/e2e/playwright/pagination/tsconfig.e2e.adf.json b/e2e/playwright/pagination/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/pagination/tsconfig.e2e.adf.json +++ b/e2e/playwright/pagination/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/pagination/tsconfig.e2e.json b/e2e/playwright/pagination/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/pagination/tsconfig.e2e.json +++ b/e2e/playwright/pagination/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/search/playwright.config.ts b/e2e/playwright/search/playwright.config.ts index e46271ebf..b7f07e69b 100644 --- a/e2e/playwright/search/playwright.config.ts +++ b/e2e/playwright/search/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/search/src/tests/search-filters-categories.e2e.ts b/e2e/playwright/search/src/tests/search-filters-categories.e2e.ts index 2af7558f0..d7cd6f7d2 100644 --- a/e2e/playwright/search/src/tests/search-filters-categories.e2e.ts +++ b/e2e/playwright/search/src/tests/search-filters-categories.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, FileActionsApi, TEST_FILES, CategoriesApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, FileActionsApi, TEST_FILES, CategoriesApi } from '@alfresco/aca-playwright-shared'; import { CategoryLinkBody, CategoryPaging, CategoryEntry } from '@alfresco/js-api'; test.describe('Search - Filters - Categories', () => { diff --git a/e2e/playwright/search/src/tests/search-filters-date.e2e.ts b/e2e/playwright/search/src/tests/search-filters-date.e2e.ts index e57966d8a..7c0f8d6af 100644 --- a/e2e/playwright/search/src/tests/search-filters-date.e2e.ts +++ b/e2e/playwright/search/src/tests/search-filters-date.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, FileActionsApi, TEST_FILES } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, FileActionsApi, TEST_FILES } from '@alfresco/aca-playwright-shared'; test.describe('Search - Filters - Date', () => { let nodesApi: NodesApi; diff --git a/e2e/playwright/search/src/tests/search-filters-general.e2e.ts b/e2e/playwright/search/src/tests/search-filters-general.e2e.ts index 2933010a9..c18ee5580 100644 --- a/e2e/playwright/search/src/tests/search-filters-general.e2e.ts +++ b/e2e/playwright/search/src/tests/search-filters-general.e2e.ts @@ -23,7 +23,7 @@ */ import { expect, Locator } from '@playwright/test'; -import { ApiClientFactory, Utils, test, SearchPage } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, SearchPage } from '@alfresco/aca-playwright-shared'; test.describe('Search - Filters - General', () => { const username = `user-${Utils.random()}`; diff --git a/e2e/playwright/search/src/tests/search-filters-location.e2e.ts b/e2e/playwright/search/src/tests/search-filters-location.e2e.ts index 0250ccd94..9d25f2371 100644 --- a/e2e/playwright/search/src/tests/search-filters-location.e2e.ts +++ b/e2e/playwright/search/src/tests/search-filters-location.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, SitesApi, SITE_VISIBILITY, SITE_ROLES } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, SitesApi, SITE_VISIBILITY, SITE_ROLES } from '@alfresco/aca-playwright-shared'; test.describe('Search - Filters - Location', () => { let nodesApi: NodesApi; diff --git a/e2e/playwright/search/src/tests/search-filters-logic.e2e.ts b/e2e/playwright/search/src/tests/search-filters-logic.e2e.ts index 470785f8c..18198cad0 100644 --- a/e2e/playwright/search/src/tests/search-filters-logic.e2e.ts +++ b/e2e/playwright/search/src/tests/search-filters-logic.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, FileActionsApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, FileActionsApi } from '@alfresco/aca-playwright-shared'; test.describe('Search - Filters - Logic', () => { let nodesApi: NodesApi; diff --git a/e2e/playwright/search/src/tests/search-filters-properties.e2e.ts b/e2e/playwright/search/src/tests/search-filters-properties.e2e.ts index 66236c88b..02230640c 100644 --- a/e2e/playwright/search/src/tests/search-filters-properties.e2e.ts +++ b/e2e/playwright/search/src/tests/search-filters-properties.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, FileActionsApi, TEST_FILES } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, FileActionsApi, TEST_FILES } from '@alfresco/aca-playwright-shared'; test.describe('Search - Filters - Properties', () => { let nodesApi: NodesApi; diff --git a/e2e/playwright/search/src/tests/search-filters-tags.e2e.ts b/e2e/playwright/search/src/tests/search-filters-tags.e2e.ts index e821bae68..77fd22793 100644 --- a/e2e/playwright/search/src/tests/search-filters-tags.e2e.ts +++ b/e2e/playwright/search/src/tests/search-filters-tags.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, TagsApi, FileActionsApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, NodesApi, TrashcanApi, TagsApi, FileActionsApi } from '@alfresco/aca-playwright-shared'; import { TagEntry, TagPaging } from '@alfresco/js-api'; test.describe('Search - Filters - Tags', () => { diff --git a/e2e/playwright/search/src/tests/search-input.e2e.ts b/e2e/playwright/search/src/tests/search-input.e2e.ts index 03fcc58a0..40d44f387 100644 --- a/e2e/playwright/search/src/tests/search-input.e2e.ts +++ b/e2e/playwright/search/src/tests/search-input.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test } from '@alfresco/aca-playwright-shared'; test.describe('Search - Input', () => { const username = `user1-${Utils.random()}`; diff --git a/e2e/playwright/search/src/tests/search-results-files-folders.e2e.ts b/e2e/playwright/search/src/tests/search-results-files-folders.e2e.ts index 69b6cdd2a..be43d627a 100644 --- a/e2e/playwright/search/src/tests/search-results-files-folders.e2e.ts +++ b/e2e/playwright/search/src/tests/search-results-files-folders.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi } from '@alfresco/aca-playwright-shared'; test.describe('Search results - files and folders', () => { let nodesApi: NodesApi; diff --git a/e2e/playwright/search/src/tests/search-results-general.e2e.ts b/e2e/playwright/search/src/tests/search-results-general.e2e.ts index 298156246..be58d7e2d 100644 --- a/e2e/playwright/search/src/tests/search-results-general.e2e.ts +++ b/e2e/playwright/search/src/tests/search-results-general.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi, SitesApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi, SitesApi } from '@alfresco/aca-playwright-shared'; test.describe('Search Results - General', () => { let trashcanApi: TrashcanApi; diff --git a/e2e/playwright/search/src/tests/search-results-libraries.e2e.ts b/e2e/playwright/search/src/tests/search-results-libraries.e2e.ts index f977950c2..a8e6e7a22 100644 --- a/e2e/playwright/search/src/tests/search-results-libraries.e2e.ts +++ b/e2e/playwright/search/src/tests/search-results-libraries.e2e.ts @@ -33,7 +33,7 @@ import { FileActionsApi, SITE_VISIBILITY, SITE_ROLES -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; test.describe('Search Results - General', () => { let trashcanApi: TrashcanApi; diff --git a/e2e/playwright/search/src/tests/search-sorting.e2e.ts b/e2e/playwright/search/src/tests/search-sorting.e2e.ts index c17df4ac2..cc5a9e478 100644 --- a/e2e/playwright/search/src/tests/search-sorting.e2e.ts +++ b/e2e/playwright/search/src/tests/search-sorting.e2e.ts @@ -34,7 +34,7 @@ import { SearchPage, SortByDirection, SortByType -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; test.describe('Search sorting', () => { const random = Utils.random(); diff --git a/e2e/playwright/search/tsconfig.e2e.adf.json b/e2e/playwright/search/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/search/tsconfig.e2e.adf.json +++ b/e2e/playwright/search/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/search/tsconfig.e2e.json b/e2e/playwright/search/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/search/tsconfig.e2e.json +++ b/e2e/playwright/search/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/share-action/playwright.config.ts b/e2e/playwright/share-action/playwright.config.ts index 4065d0e6d..a9d946a68 100644 --- a/e2e/playwright/share-action/playwright.config.ts +++ b/e2e/playwright/share-action/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/share-action/src/tests/share/share-file.e2e.ts b/e2e/playwright/share-action/src/tests/share/share-file.e2e.ts index 29c6c67fc..90384d8f6 100644 --- a/e2e/playwright/share-action/src/tests/share/share-file.e2e.ts +++ b/e2e/playwright/share-action/src/tests/share/share-file.e2e.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { ApiClientFactory, NodesApi, test, timeouts, Utils, SharedLinksApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, NodesApi, test, timeouts, Utils, SharedLinksApi } from '@alfresco/aca-playwright-shared'; import { expect } from '@playwright/test'; test.describe('Share a file', () => { diff --git a/e2e/playwright/share-action/src/tests/share/unshare-file-search-results.e2e.ts b/e2e/playwright/share-action/src/tests/share/unshare-file-search-results.e2e.ts index 6eca4c5b6..4b9f35101 100755 --- a/e2e/playwright/share-action/src/tests/share/unshare-file-search-results.e2e.ts +++ b/e2e/playwright/share-action/src/tests/share/unshare-file-search-results.e2e.ts @@ -33,7 +33,7 @@ import { test, timeouts, TrashcanApi -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; import { expect } from '@playwright/test'; test.describe('Unshare a file from Search Results', () => { diff --git a/e2e/playwright/share-action/tsconfig.e2e.adf.json b/e2e/playwright/share-action/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/share-action/tsconfig.e2e.adf.json +++ b/e2e/playwright/share-action/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/share-action/tsconfig.e2e.json b/e2e/playwright/share-action/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/share-action/tsconfig.e2e.json +++ b/e2e/playwright/share-action/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/special-permissions-actions-available/playwright.config.ts b/e2e/playwright/special-permissions-actions-available/playwright.config.ts index 147abf1e3..261b26757 100644 --- a/e2e/playwright/special-permissions-actions-available/playwright.config.ts +++ b/e2e/playwright/special-permissions-actions-available/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/special-permissions-actions-available/src/tests/folders-actions.e2e.ts b/e2e/playwright/special-permissions-actions-available/src/tests/folders-actions.e2e.ts index f2b60e213..ad9ef6e8a 100644 --- a/e2e/playwright/special-permissions-actions-available/src/tests/folders-actions.e2e.ts +++ b/e2e/playwright/special-permissions-actions-available/src/tests/folders-actions.e2e.ts @@ -22,8 +22,8 @@ * from Hyland Software. If not, see . */ -import { ApiClientFactory, FavoritesPageApi, PersonalFilesPage, NodesApi, TrashcanApi, Utils, test, timeouts } from '@alfresco/playwright-shared'; -import * as testData from '@alfresco/playwright-shared'; +import { ApiClientFactory, FavoritesPageApi, PersonalFilesPage, NodesApi, TrashcanApi, Utils, test, timeouts } from '@alfresco/aca-playwright-shared'; +import * as testData from '@alfresco/aca-playwright-shared'; test.describe('Folders - available actions : ', () => { const username = `user-${Utils.random()}`; diff --git a/e2e/playwright/special-permissions-actions-available/src/tests/other-permissions.ts b/e2e/playwright/special-permissions-actions-available/src/tests/other-permissions.ts index 5c42c7e0e..4254373fc 100644 --- a/e2e/playwright/special-permissions-actions-available/src/tests/other-permissions.ts +++ b/e2e/playwright/special-permissions-actions-available/src/tests/other-permissions.ts @@ -22,8 +22,8 @@ * from Hyland Software. If not, see . */ -import { MyLibrariesPage, test, Utils } from '@alfresco/playwright-shared'; -import * as testData from '@alfresco/playwright-shared'; +import { MyLibrariesPage, test, Utils } from '@alfresco/aca-playwright-shared'; +import * as testData from '@alfresco/aca-playwright-shared'; import { expect } from '@playwright/test'; async function checkActionsAvailable( diff --git a/e2e/playwright/special-permissions-actions-available/src/tests/special-permissions-actions.e2e.ts b/e2e/playwright/special-permissions-actions-available/src/tests/special-permissions-actions.e2e.ts index 8caefa2c5..21501bc74 100644 --- a/e2e/playwright/special-permissions-actions-available/src/tests/special-permissions-actions.e2e.ts +++ b/e2e/playwright/special-permissions-actions-available/src/tests/special-permissions-actions.e2e.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import * as testData from '@alfresco/playwright-shared'; +import * as testData from '@alfresco/aca-playwright-shared'; import { viewerTests } from './viewer'; import { collaboratorTests, filesLockedByCurrentUser, filesLockedByOtherUser } from './other-permissions'; import { @@ -37,7 +37,7 @@ import { SearchPageApi, timeouts, Utils -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; import { Site } from '@alfresco/js-api'; test.describe('Special permissions : ', () => { diff --git a/e2e/playwright/special-permissions-actions-available/src/tests/viewer.ts b/e2e/playwright/special-permissions-actions-available/src/tests/viewer.ts index e24b5eb46..c16d6e75a 100644 --- a/e2e/playwright/special-permissions-actions-available/src/tests/viewer.ts +++ b/e2e/playwright/special-permissions-actions-available/src/tests/viewer.ts @@ -23,8 +23,8 @@ */ import { expect } from '@playwright/test'; -import { FavoritesPage, LoginPage, MyLibrariesPage, SearchPage, SharedPage, test } from '@alfresco/playwright-shared'; -import * as testData from '@alfresco/playwright-shared'; +import { FavoritesPage, LoginPage, MyLibrariesPage, SearchPage, SharedPage, test } from '@alfresco/aca-playwright-shared'; +import * as testData from '@alfresco/aca-playwright-shared'; export function viewerTests(userConsumer: string, siteName: string) { test.describe('Consumer available actions : ', () => { diff --git a/e2e/playwright/special-permissions-actions-available/tsconfig.e2e.adf.json b/e2e/playwright/special-permissions-actions-available/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/special-permissions-actions-available/tsconfig.e2e.adf.json +++ b/e2e/playwright/special-permissions-actions-available/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/special-permissions-actions-available/tsconfig.e2e.json b/e2e/playwright/special-permissions-actions-available/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/special-permissions-actions-available/tsconfig.e2e.json +++ b/e2e/playwright/special-permissions-actions-available/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/upload-download-actions/playwright.config.ts b/e2e/playwright/upload-download-actions/playwright.config.ts index c06bdce74..1ee1469aa 100644 --- a/e2e/playwright/upload-download-actions/playwright.config.ts +++ b/e2e/playwright/upload-download-actions/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/upload-download-actions/src/tests/download.e2e.ts b/e2e/playwright/upload-download-actions/src/tests/download.e2e.ts index 1cb6ea045..52eda6b59 100644 --- a/e2e/playwright/upload-download-actions/src/tests/download.e2e.ts +++ b/e2e/playwright/upload-download-actions/src/tests/download.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi } from '@alfresco/aca-playwright-shared'; test.describe('Download from Personal Files', () => { let trashcanApi: TrashcanApi; diff --git a/e2e/playwright/upload-download-actions/src/tests/upload-new-version.e2e.ts b/e2e/playwright/upload-download-actions/src/tests/upload-new-version.e2e.ts index 44f6fdbc3..4f80b37a4 100755 --- a/e2e/playwright/upload-download-actions/src/tests/upload-new-version.e2e.ts +++ b/e2e/playwright/upload-download-actions/src/tests/upload-new-version.e2e.ts @@ -33,7 +33,7 @@ import { FileActionsApi, PersonalFilesPage, SearchPage -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; test.describe('Upload new version', () => { const username = `user-${Utils.random()}`; diff --git a/e2e/playwright/upload-download-actions/src/tests/upload.e2e.ts b/e2e/playwright/upload-download-actions/src/tests/upload.e2e.ts index bebc31329..db909edcf 100644 --- a/e2e/playwright/upload-download-actions/src/tests/upload.e2e.ts +++ b/e2e/playwright/upload-download-actions/src/tests/upload.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi, TEST_FILES } from '@alfresco/playwright-shared'; +import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi, TEST_FILES } from '@alfresco/aca-playwright-shared'; test.describe('Upload files', () => { let trashcanApi: TrashcanApi; diff --git a/e2e/playwright/upload-download-actions/src/tests/version-actions.e2e.ts b/e2e/playwright/upload-download-actions/src/tests/version-actions.e2e.ts index 9f59ef0d4..ef955f936 100644 --- a/e2e/playwright/upload-download-actions/src/tests/version-actions.e2e.ts +++ b/e2e/playwright/upload-download-actions/src/tests/version-actions.e2e.ts @@ -38,7 +38,7 @@ import { FavoritesPage, SharedPage, SearchPage -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; test.describe('Version actions', () => { let trashcanApi: TrashcanApi; diff --git a/e2e/playwright/upload-download-actions/tsconfig.e2e.adf.json b/e2e/playwright/upload-download-actions/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/upload-download-actions/tsconfig.e2e.adf.json +++ b/e2e/playwright/upload-download-actions/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/upload-download-actions/tsconfig.e2e.json b/e2e/playwright/upload-download-actions/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/upload-download-actions/tsconfig.e2e.json +++ b/e2e/playwright/upload-download-actions/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/viewer/playwright.config.ts b/e2e/playwright/viewer/playwright.config.ts index 9e7500bae..1a9b7dd53 100644 --- a/e2e/playwright/viewer/playwright.config.ts +++ b/e2e/playwright/viewer/playwright.config.ts @@ -23,7 +23,7 @@ */ import { PlaywrightTestConfig } from '@playwright/test'; -import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/playwright-shared'; +import { CustomConfig, getGlobalConfig, getExcludedTestsRegExpArray } from '@alfresco/aca-playwright-shared'; import EXCLUDED_JSON from './exclude.tests.json'; const config: PlaywrightTestConfig = { diff --git a/e2e/playwright/viewer/src/tests/viewer-action.e2e.ts b/e2e/playwright/viewer/src/tests/viewer-action.e2e.ts index 4d43de97a..ceda713cf 100644 --- a/e2e/playwright/viewer/src/tests/viewer-action.e2e.ts +++ b/e2e/playwright/viewer/src/tests/viewer-action.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, getUserState, test, TEST_FILES, timeouts, Utils } from '@alfresco/playwright-shared'; +import { ApiClientFactory, getUserState, test, TEST_FILES, timeouts, Utils } from '@alfresco/aca-playwright-shared'; test.use({ storageState: getUserState('hruser') }); test.describe('viewer action file', () => { diff --git a/e2e/playwright/viewer/src/tests/viewer-protected.e2e.ts b/e2e/playwright/viewer/src/tests/viewer-protected.e2e.ts index 95e951699..48fa5d3c7 100644 --- a/e2e/playwright/viewer/src/tests/viewer-protected.e2e.ts +++ b/e2e/playwright/viewer/src/tests/viewer-protected.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, getUserState, test, TEST_FILES, Utils } from '@alfresco/playwright-shared'; +import { ApiClientFactory, getUserState, test, TEST_FILES, Utils } from '@alfresco/aca-playwright-shared'; test.use({ storageState: getUserState('hruser') }); test.describe('viewer file', () => { diff --git a/e2e/playwright/viewer/src/tests/viewer-useraction.e2e.ts b/e2e/playwright/viewer/src/tests/viewer-useraction.e2e.ts index c014511e0..1abfe1b24 100644 --- a/e2e/playwright/viewer/src/tests/viewer-useraction.e2e.ts +++ b/e2e/playwright/viewer/src/tests/viewer-useraction.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, FileActionsApi, NodesApi, SitesApi, test, TEST_FILES, Utils, TrashcanApi } from '@alfresco/playwright-shared'; +import { ApiClientFactory, FileActionsApi, NodesApi, SitesApi, test, TEST_FILES, Utils, TrashcanApi } from '@alfresco/aca-playwright-shared'; import { SiteBodyCreate } from '@alfresco/js-api'; test.describe('from File Libraries', () => { diff --git a/e2e/playwright/viewer/src/tests/viewer.e2e.ts b/e2e/playwright/viewer/src/tests/viewer.e2e.ts index c9be1ed28..443625a9b 100644 --- a/e2e/playwright/viewer/src/tests/viewer.e2e.ts +++ b/e2e/playwright/viewer/src/tests/viewer.e2e.ts @@ -35,7 +35,7 @@ import { timeouts, Utils, TrashcanApi -} from '@alfresco/playwright-shared'; +} from '@alfresco/aca-playwright-shared'; import { Site } from '@alfresco/js-api'; test.describe('viewer file', () => { diff --git a/e2e/playwright/viewer/tsconfig.e2e.adf.json b/e2e/playwright/viewer/tsconfig.e2e.adf.json index 87cbcf775..47ea883b4 100644 --- a/e2e/playwright/viewer/tsconfig.e2e.adf.json +++ b/e2e/playwright/viewer/tsconfig.e2e.adf.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/e2e/playwright/viewer/tsconfig.e2e.json b/e2e/playwright/viewer/tsconfig.e2e.json index c31798523..16d87d8ec 100755 --- a/e2e/playwright/viewer/tsconfig.e2e.json +++ b/e2e/playwright/viewer/tsconfig.e2e.json @@ -8,7 +8,7 @@ "types": ["jasmine", "jasminewd2", "node", "@playwright/test"], "skipLibCheck": true, "paths": { - "@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"] + "@alfresco/aca-playwright-shared": ["dist/@alfresco/aca-playwright-shared"] } }, "exclude": ["node_modules"] diff --git a/projects/aca-playwright-shared/ng-package.json b/projects/aca-playwright-shared/ng-package.json index eda9e7190..5f1c388c2 100644 --- a/projects/aca-playwright-shared/ng-package.json +++ b/projects/aca-playwright-shared/ng-package.json @@ -1,6 +1,6 @@ { "dest": "../../dist/@alfresco/aca-playwright-shared", "lib": { - "entryFile": "src/index.ts" + "entryFile": "src/public-api.ts" } } diff --git a/projects/aca-playwright-shared/package.json b/projects/aca-playwright-shared/package.json index 960c474aa..76911a27e 100644 --- a/projects/aca-playwright-shared/package.json +++ b/projects/aca-playwright-shared/package.json @@ -1,8 +1,7 @@ { "name": "@alfresco/aca-playwright-shared", - "version": "3.0.0", + "version": "0.0.1", "license": "LGPL-3.0", - "main": "src/index.ts", "dependencies": { "tslib": "^2.0.0" }, diff --git a/projects/aca-playwright-shared/src/api/file-actions.ts b/projects/aca-playwright-shared/src/api/file-actions.ts index 122f47a74..ace3bd962 100644 --- a/projects/aca-playwright-shared/src/api/file-actions.ts +++ b/projects/aca-playwright-shared/src/api/file-actions.ts @@ -24,9 +24,8 @@ import * as fs from 'fs'; import { ApiClientFactory } from './api-client-factory'; -import { Utils } from '../utils'; +import { Utils, waitForApi } from '../utils'; import { NodeBodyCreate, NodeEntry, ResultSetPaging } from '@alfresco/js-api'; -import { waitForApi } from '@alfresco/playwright-shared'; export class FileActionsApi { private apiService: ApiClientFactory; diff --git a/projects/aca-playwright-shared/src/fixtures/index.ts b/projects/aca-playwright-shared/src/fixtures/index.ts new file mode 100644 index 000000000..b280be77b --- /dev/null +++ b/projects/aca-playwright-shared/src/fixtures/index.ts @@ -0,0 +1,25 @@ +/*! + * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved. + * + * Alfresco Example Content Application + * + * This file is part of the Alfresco Example Content Application. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * The Alfresco Example Content Application is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * The Alfresco Example Content Application is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * from Hyland Software. If not, see . + */ + +export * from './page-initialization'; diff --git a/projects/aca-playwright-shared/src/fixtures/page-initialization.ts b/projects/aca-playwright-shared/src/fixtures/page-initialization.ts index 4e2205f8a..324ea4093 100644 --- a/projects/aca-playwright-shared/src/fixtures/page-initialization.ts +++ b/projects/aca-playwright-shared/src/fixtures/page-initialization.ts @@ -24,23 +24,19 @@ import { test as base } from '@playwright/test'; import { + FavoritesLibrariesPage, + LoginPage, MyLibrariesPage, - FileActionsApi, NodesPage, PersonalFilesPage, RecentFilesPage, - SharedLinksApi, SharedPage, SearchPage, FavoritesPage, - FavoritesPageApi, - TrashPage, - LoginPage, - NodesApi, - SitesApi, - users, - FavoritesLibrariesPage -} from '../'; + TrashPage +} from '../page-objects'; +import { FileActionsApi, SharedLinksApi, FavoritesPageApi, NodesApi, SitesApi } from '../api'; +import { users } from '../base-config'; interface Pages { personalFiles: PersonalFilesPage; diff --git a/projects/aca-playwright-shared/src/page-objects/components/dialogs/index.ts b/projects/aca-playwright-shared/src/page-objects/components/dialogs/index.ts index decbbb0db..3690c18c4 100644 --- a/projects/aca-playwright-shared/src/page-objects/components/dialogs/index.ts +++ b/projects/aca-playwright-shared/src/page-objects/components/dialogs/index.ts @@ -36,3 +36,4 @@ export * from './upload-dialog.component'; export * from './delete-trash-dialog.component'; export * from './link-rules.component'; export * from './edit-dialog.component'; +export * from './manage-versions-dialog.component'; diff --git a/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-date.component.ts b/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-date.component.ts index e22d17b69..6879fa59a 100644 --- a/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-date.component.ts +++ b/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-date.component.ts @@ -24,7 +24,7 @@ import { BaseComponent } from '../../base.component'; import { Page, expect } from '@playwright/test'; -import { SearchPage, SearchType } from '@alfresco/playwright-shared'; +import { SearchPage, SearchType } from '../../../pages'; type FilterTab = 'Created' | 'Modified'; diff --git a/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-location.component.ts b/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-location.component.ts index cbfe20e84..44da1cadd 100644 --- a/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-location.component.ts +++ b/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-location.component.ts @@ -22,9 +22,9 @@ * from Hyland Software. If not, see . */ +import { SearchPage } from '../../../pages'; import { BaseComponent } from '../../base.component'; import { Page } from '@playwright/test'; -import { SearchPage } from '@alfresco/playwright-shared'; export class SearchFiltersLocation extends BaseComponent { private static rootElement = '.adf-search-filter-menu-card'; diff --git a/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-properties.component.ts b/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-properties.component.ts index 2f37d4a8e..7abf7acd4 100644 --- a/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-properties.component.ts +++ b/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-properties.component.ts @@ -22,9 +22,9 @@ * from Hyland Software. If not, see . */ +import { SearchPage } from '../../../pages'; import { BaseComponent } from '../../base.component'; import { Page } from '@playwright/test'; -import { SearchPage } from '@alfresco/playwright-shared'; export class SearchFiltersProperties extends BaseComponent { private static rootElement = '.adf-search-filter-menu-card'; diff --git a/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-tags.component.ts b/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-tags.component.ts index 82764392d..8fcc34306 100644 --- a/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-tags.component.ts +++ b/projects/aca-playwright-shared/src/page-objects/components/search/search-filters/search-filters-tags.component.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { SearchPage } from '@alfresco/playwright-shared'; +import { SearchPage } from '../../../pages'; import { BaseComponent } from '../../base.component'; import { Page } from '@playwright/test'; diff --git a/projects/aca-playwright-shared/src/page-objects/components/sidenav.component.ts b/projects/aca-playwright-shared/src/page-objects/components/sidenav.component.ts index 87c696b45..b7f39e2cc 100644 --- a/projects/aca-playwright-shared/src/page-objects/components/sidenav.component.ts +++ b/projects/aca-playwright-shared/src/page-objects/components/sidenav.component.ts @@ -30,7 +30,6 @@ export class SidenavComponent extends BaseComponent { private static rootElement = 'app-sidenav'; private personalFiles = this.getChild(`[data-automation-id='app.navbar.personalFiles']`); - private fileLibraries = this.getChild(`[data-automation-id='app.navbar.libraries.menu']`); private myLibraries = this.getChild(`[data-automation-id='app.navbar.libraries.files']`); private favoriteLibraries = this.getChild(`[data-automation-id='app.navbar.libraries.favorite']`); private shared = this.getChild(`[data-automation-id='app.navbar.shared']`); diff --git a/projects/aca-playwright-shared/src/page-objects/playwright-base.ts b/projects/aca-playwright-shared/src/page-objects/playwright-base.ts index 74d7aa663..be308d382 100644 --- a/projects/aca-playwright-shared/src/page-objects/playwright-base.ts +++ b/projects/aca-playwright-shared/src/page-objects/playwright-base.ts @@ -23,7 +23,7 @@ */ import { Page } from '@playwright/test'; -import { GenericLogger, LoggerLike } from '@alfresco/playwright-shared'; +import { GenericLogger, LoggerLike } from '../utils'; export abstract class PlaywrightBase { public page: Page; diff --git a/projects/aca-playwright-shared/src/index.ts b/projects/aca-playwright-shared/src/public-api.ts similarity index 90% rename from projects/aca-playwright-shared/src/index.ts rename to projects/aca-playwright-shared/src/public-api.ts index ab54cc366..6ccd1f4e6 100644 --- a/projects/aca-playwright-shared/src/index.ts +++ b/projects/aca-playwright-shared/src/public-api.ts @@ -26,7 +26,6 @@ export * from './api'; export * from './base-config'; export * from './models'; export * from './page-objects'; -export * from './fixtures/page-initialization'; +export * from './fixtures'; export * from './utils'; -export * from './resources/test-files'; -export * from './resources/test-data'; +export * from './resources'; diff --git a/projects/aca-playwright-shared/src/resources/index.ts b/projects/aca-playwright-shared/src/resources/index.ts new file mode 100644 index 000000000..aa71e3ec7 --- /dev/null +++ b/projects/aca-playwright-shared/src/resources/index.ts @@ -0,0 +1,26 @@ +/*! + * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved. + * + * Alfresco Example Content Application + * + * This file is part of the Alfresco Example Content Application. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * The Alfresco Example Content Application is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * The Alfresco Example Content Application is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * from Hyland Software. If not, see . + */ + +export * from './test-data'; +export * from './test-files'; diff --git a/projects/aca-playwright-shared/src/resources/test-data/test-data-files-folders.ts b/projects/aca-playwright-shared/src/resources/test-data/test-data-files-folders.ts index 801bbcf1a..04846b758 100644 --- a/projects/aca-playwright-shared/src/resources/test-data/test-data-files-folders.ts +++ b/projects/aca-playwright-shared/src/resources/test-data/test-data-files-folders.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { Utils } from '@alfresco/playwright-shared'; +import { Utils } from '../../utils'; const random = Utils.random(); const multipleSelToolbarPrimary = ['Download', 'View Details', 'More Actions']; diff --git a/projects/aca-playwright-shared/src/resources/test-data/test-data-permissions.ts b/projects/aca-playwright-shared/src/resources/test-data/test-data-permissions.ts index 6d512115b..341fa5a16 100644 --- a/projects/aca-playwright-shared/src/resources/test-data/test-data-permissions.ts +++ b/projects/aca-playwright-shared/src/resources/test-data/test-data-permissions.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { Utils } from '@alfresco/playwright-shared'; +import { Utils } from '../../utils'; export const random = Utils.random(); diff --git a/projects/aca-playwright-shared/src/utils/utils.ts b/projects/aca-playwright-shared/src/utils/utils.ts index 0a7783e57..d3f47e629 100644 --- a/projects/aca-playwright-shared/src/utils/utils.ts +++ b/projects/aca-playwright-shared/src/utils/utils.ts @@ -24,10 +24,10 @@ const crypto = require('crypto'); import * as path from 'path'; -import { LoginPage, MyLibrariesPage, PersonalFilesPage, FavoritesLibrariesPage, SearchPage, SharedPage, TrashPage } from '../'; -import { NodesApi, TrashcanApi, SitesApi } from '@alfresco/playwright-shared'; +import { LoginPage, MyLibrariesPage, PersonalFilesPage, FavoritesLibrariesPage, SearchPage, SharedPage, TrashPage } from '../page-objects'; import { format, subDays, subMonths, endOfMonth } from 'date-fns'; import StreamZip from 'node-stream-zip'; +import { NodesApi, SitesApi, TrashcanApi } from '../api'; export class Utils { static string257Long = 'x'.repeat(257); diff --git a/projects/aca-playwright-shared/tsconfig.lib.prod.json b/projects/aca-playwright-shared/tsconfig.lib.prod.json index 2a2faa884..85b4b1c84 100644 --- a/projects/aca-playwright-shared/tsconfig.lib.prod.json +++ b/projects/aca-playwright-shared/tsconfig.lib.prod.json @@ -1,7 +1,14 @@ { "extends": "./tsconfig.lib.json", "compilerOptions": { - "declarationMap": false + "declarationMap": false, + "paths": { + "@alfresco/aca-content": ["dist/@alfresco/aca-content"], + "@alfresco/aca-content/folder-rules": ["dist/@alfresco/aca-content/folder-rules"], + "@alfresco/aca-shared": ["dist/@alfresco/aca-shared"], + "@alfresco/aca-shared/store": ["dist/@alfresco/aca-shared/store"], + "@alfresco/aca-shared/rules": ["dist/@alfresco/aca-shared/rules"] + }, }, "angularCompilerOptions": { "compilationMode": "partial" diff --git a/tsconfig.adf.json b/tsconfig.adf.json index f313ee7fb..731bc40ea 100644 --- a/tsconfig.adf.json +++ b/tsconfig.adf.json @@ -21,7 +21,6 @@ "typeRoots": ["node_modules/@types"], "lib": ["es2019", "dom"], "paths": { - "@alfresco/playwright-shared": ["projects/aca-playwright-shared/src/index.ts"], "@alfresco/adf-core": ["../alfresco-ng2-components/lib/core/index.ts"], "@alfresco/adf-core/*": ["../alfresco-ng2-components/lib/core/*/public-api.ts"], "@alfresco/adf-core/shell": ["../alfresco-ng2-components/lib/core/shell/src/index.ts"], @@ -41,6 +40,7 @@ "@alfresco/aca-content": ["projects/aca-content/src/public-api.ts"], "@alfresco/aca-content/viewer": ["projects/aca-content/viewer/src/public-api.ts"], "@alfresco/aca-content/preview": ["projects/aca-content/preview/src/public-api.ts"], + "@alfresco/aca-playwright-shared": ["projects/aca-playwright-shared/src/public-api.ts"], "package.json": ["package.json"], "*": ["./node_modules/*"] } diff --git a/tsconfig.json b/tsconfig.json index 94e0afb05..3ebb52028 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -30,7 +30,7 @@ "@alfresco/aca-shared": ["projects/aca-shared/src/public-api.ts"], "@alfresco/aca-shared/rules": ["projects/aca-shared/rules/src/public-api.ts"], "@alfresco/aca-shared/store": ["projects/aca-shared/store/src/public-api.ts"], - "@alfresco/playwright-shared": ["projects/aca-playwright-shared/src/index.ts"], + "@alfresco/aca-playwright-shared": ["projects/aca-playwright-shared/src/public-api.ts"], "package.json": ["package.json"] } },