From 7fcc0af5bd4fa6e2f3357806f7099fef0cf39acb Mon Sep 17 00:00:00 2001 From: MichalKinas <113341662+MichalKinas@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:50:39 +0100 Subject: [PATCH] Manual dependencies update (#4298) * Manual dependencies update * Manual dependencies update - e2es fix --------- Co-authored-by: datguychen --- .../list-views/src/tests/favorites.e2e.ts | 2 +- .../src/tests/file-libraries.e2e.ts | 4 +- .../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/trash-admin.e2e.ts | 2 +- .../list-views/src/tests/trash.e2e.ts | 2 +- .../tests/search-results-files-folders.e2e.ts | 5 +- .../src/tests/search-results-libraries.e2e.ts | 2 +- package-lock.json | 183 ++++++------------ package.json | 14 +- .../aca-playwright-shared/src/utils/utils.ts | 10 + 12 files changed, 88 insertions(+), 142 deletions(-) diff --git a/e2e/playwright/list-views/src/tests/favorites.e2e.ts b/e2e/playwright/list-views/src/tests/favorites.e2e.ts index 9748afed7f..ed7097ed19 100644 --- a/e2e/playwright/list-views/src/tests/favorites.e2e.ts +++ b/e2e/playwright/list-views/src/tests/favorites.e2e.ts @@ -92,7 +92,7 @@ test.describe('Favorites Files', () => { test('[C280482] has the correct columns', async ({ favoritePage }) => { const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Modified by', 'Tags']; - const actualColumns = await favoritePage.dataTable.getColumnHeaders(); + const actualColumns = Utils.trimArrayElements(await favoritePage.dataTable.getColumnHeaders()); expect(actualColumns).toEqual(expectedColumns); }); 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 9b9c773217..a962e6c8e7 100755 --- a/e2e/playwright/list-views/src/tests/file-libraries.e2e.ts +++ b/e2e/playwright/list-views/src/tests/file-libraries.e2e.ts @@ -95,7 +95,7 @@ test.describe('File Libraries', () => { test('[C217095] has the correct columns', async ({ myLibrariesPage }) => { const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility']; - const actualColumns = await myLibrariesPage.dataTable.getColumnHeaders(); + const actualColumns = Utils.trimArrayElements(await myLibrariesPage.dataTable.getColumnHeaders()); expect(actualColumns).toEqual(expectedColumns); }); @@ -142,7 +142,7 @@ test.describe('File Libraries', () => { test('[C289893] has the correct columns', async ({ favoritesLibrariesPage }) => { const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility']; - const actualColumns = await favoritesLibrariesPage.dataTable.getColumnHeaders(); + const actualColumns = Utils.trimArrayElements(await favoritesLibrariesPage.dataTable.getColumnHeaders()); expect(actualColumns).toEqual(expectedColumns); }); 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 5563d488b8..12ef05ccc1 100644 --- a/e2e/playwright/list-views/src/tests/personal-files.e2e.ts +++ b/e2e/playwright/list-views/src/tests/personal-files.e2e.ts @@ -55,7 +55,7 @@ test.describe('Personal Files', () => { test('[C217142] has the correct columns', async ({ personalFiles }) => { const expectedColumns = ['Name', 'Size', 'Modified', 'Modified by', 'Tags']; - const actualColumns = await personalFiles.dataTable.getColumnHeaders(); + const actualColumns = Utils.trimArrayElements(await personalFiles.dataTable.getColumnHeaders()); expect(actualColumns).toEqual(expectedColumns); }); 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 c543266f25..99cd9b00ab 100755 --- a/e2e/playwright/list-views/src/tests/recent-files.e2e.ts +++ b/e2e/playwright/list-views/src/tests/recent-files.e2e.ts @@ -77,7 +77,7 @@ test.describe('Recent Files', () => { test('[C213168] has the correct columns', async ({ recentFilesPage }) => { const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Tags']; - const actualColumns = await recentFilesPage.dataTable.getColumnHeaders(); + const actualColumns = Utils.trimArrayElements(await recentFilesPage.dataTable.getColumnHeaders()); expect(actualColumns).toEqual(expectedColumns); }); 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 cb05ea74c7..e762d4c080 100644 --- a/e2e/playwright/list-views/src/tests/shared-files.e2e.ts +++ b/e2e/playwright/list-views/src/tests/shared-files.e2e.ts @@ -86,7 +86,7 @@ test.describe('Shared Files', () => { test('[C213113] has the correct columns', async ({ sharedPage }) => { const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Modified by', 'Shared by', 'Tags']; - const actualColumns = await sharedPage.dataTable.getColumnHeaders(); + const actualColumns = Utils.trimArrayElements(await sharedPage.dataTable.getColumnHeaders()); expect(actualColumns).toEqual(expectedColumns); }); 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 c1a0c3ba47..21ec20dc50 100755 --- a/e2e/playwright/list-views/src/tests/trash-admin.e2e.ts +++ b/e2e/playwright/list-views/src/tests/trash-admin.e2e.ts @@ -54,7 +54,7 @@ test.describe('Trash admin', () => { test('[C213217] has the correct columns', async ({ trashPage }) => { await trashPage.navigate(); const expectedColumns = ['Name', 'Location', 'Size', 'Deleted', 'Deleted by']; - const actualColumns = await trashPage.dataTable.getColumnHeaders(); + const actualColumns = Utils.trimArrayElements(await trashPage.dataTable.getColumnHeaders()); expect(actualColumns).toEqual(expectedColumns); }); diff --git a/e2e/playwright/list-views/src/tests/trash.e2e.ts b/e2e/playwright/list-views/src/tests/trash.e2e.ts index 4511c31583..b9602448c0 100755 --- a/e2e/playwright/list-views/src/tests/trash.e2e.ts +++ b/e2e/playwright/list-views/src/tests/trash.e2e.ts @@ -79,7 +79,7 @@ test.describe('Trash', () => { test('[C280494] has the correct columns', async ({ trashPage }) => { const expectedColumns = ['Name', 'Location', 'Size', 'Deleted']; - const actualColumns = await trashPage.dataTable.getColumnHeaders(); + const actualColumns = Utils.trimArrayElements(await trashPage.dataTable.getColumnHeaders()); expect(actualColumns).toEqual(expectedColumns); }); 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 be43d627aa..fea064c9cc 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,11 +23,12 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi } from '@alfresco/aca-playwright-shared'; +import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi, FileActionsApi } from '@alfresco/aca-playwright-shared'; test.describe('Search results - files and folders', () => { let nodesApi: NodesApi; let trashcanApi: TrashcanApi; + let fileActionsApi: FileActionsApi; const random = Utils.random(); const username = `user-${random}`; @@ -39,6 +40,7 @@ test.describe('Search results - files and folders', () => { await apiClientFactory.createUser({ username }); nodesApi = await NodesApi.initialize(username, username); trashcanApi = await TrashcanApi.initialize(username, username); + fileActionsApi = await FileActionsApi.initialize(username, username); } catch (error) { console.error(`beforeAll failed: ${error}`); } @@ -66,6 +68,7 @@ test.describe('Search results - files and folders', () => { const fileDescription = 'file description'; await nodesApi.createFile(file, '-my-', fileTitle, fileDescription); + await fileActionsApi.waitForNodes(file, { expect: 1 }); await searchPage.searchWithin(file, 'files'); await searchPage.dataTable.clickItemLocation(file); expect((await personalFiles.breadcrumb.items.textContent()).trim()).toEqual('Personal Files'); 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 a8e6e7a229..dfa3ab0065 100644 --- a/e2e/playwright/search/src/tests/search-results-libraries.e2e.ts +++ b/e2e/playwright/search/src/tests/search-results-libraries.e2e.ts @@ -171,7 +171,7 @@ test.describe('Search Results - General', () => { await searchPage.searchWithin(site1.name, 'libraries'); const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility']; - const actualColumns = await searchPage.dataTable.getColumnHeaders(); + const actualColumns = Utils.trimArrayElements(await searchPage.dataTable.getColumnHeaders()); expect(actualColumns).toEqual(expectedColumns); }); diff --git a/package-lock.json b/package-lock.json index 5ded206107..6edccdf348 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,11 +9,11 @@ "version": "5.3.0", "license": "LGPL-3.0", "dependencies": { - "@alfresco/adf-content-services": "7.0.0-alpha.7-12200140537", - "@alfresco/adf-core": "7.0.0-alpha.7-12200140537", - "@alfresco/adf-extensions": "7.0.0-alpha.7-12200140537", - "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.7-12200140537", - "@alfresco/js-api": "8.0.0-alpha.7-12200140537", + "@alfresco/adf-content-services": "7.0.0-alpha.7-12252448911", + "@alfresco/adf-core": "7.0.0-alpha.7-12252448911", + "@alfresco/adf-extensions": "7.0.0-alpha.7-12252448911", + "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.7-12252448911", + "@alfresco/js-api": "8.0.0-alpha.7-12252448911", "@angular/animations": "16.2.9", "@angular/cdk": "16.2.9", "@angular/common": "16.2.9", @@ -36,12 +36,12 @@ "material-icons": "^1.13.12", "minimatch-browser": "^1.0.0", "pdfjs-dist": "3.3.122", - "rxjs": "7.5.7", + "rxjs": "7.8.1", "tslib": "^2.7.0", "zone.js": "0.13.3" }, "devDependencies": { - "@alfresco/adf-cli": "7.0.0-alpha.7-12200140537", + "@alfresco/adf-cli": "7.0.0-alpha.7-12252448911", "@angular-devkit/build-angular": "16.2.9", "@angular-devkit/core": "16.2.9", "@angular-devkit/schematics": "16.2.9", @@ -106,13 +106,12 @@ "dev": true }, "node_modules/@alfresco/adf-cli": { - "version": "7.0.0-alpha.7-12200140537", - "resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-7.0.0-alpha.7-12200140537.tgz", - "integrity": "sha512-1HdeHpAW2UueMdGU2iFNbTIxLxzzyXAYbgL1YdzPw8X4JEheMgc8X8XBp2RAZZq5MSKhW8bLo0YSm52wZoFy5Q==", + "version": "7.0.0-alpha.7-12252448911", + "resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-7.0.0-alpha.7-12252448911.tgz", + "integrity": "sha512-M6jPkqXLtbgCeL+EWRc9VCVdW7yscDfVWi23uh7RRoG7NUxRGbd/Xylt5FTf+n5cFUuzaAkgG3jIjmPDuRn2ZQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@alfresco/js-api": ">=8.0.0-alpha.7-12200140537", + "@alfresco/js-api": ">=8.0.0-alpha.7-12252448911", "commander": "^6.2.1", "ejs": "^3.1.9", "license-checker": "^25.0.1", @@ -145,16 +144,15 @@ "dev": true }, "node_modules/@alfresco/adf-content-services": { - "version": "7.0.0-alpha.7-12200140537", - "resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-7.0.0-alpha.7-12200140537.tgz", - "integrity": "sha512-M70r0gEGTHshFne19ko6UzSO63Ki4h2Tj+kW49DaCi/TL3I9Pju5dx6z0ZWFLzvI3VFbjO0oQnJ2ZGTon7//MQ==", - "license": "Apache-2.0", + "version": "7.0.0-alpha.7-12252448911", + "resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-7.0.0-alpha.7-12252448911.tgz", + "integrity": "sha512-/waheSyN2Zao1M4KwvXm3IPOAaIYsjdEwjZrbOhiCijjQXQEDvPDDH42La6xXOHQYO7ZPCEBs72GcVFHjwydCw==", "dependencies": { "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/adf-core": ">=7.0.0-alpha.7-12200140537", - "@alfresco/js-api": ">=8.0.0-alpha.7-12200140537", + "@alfresco/adf-core": ">=7.0.0-alpha.7-12252448911", + "@alfresco/js-api": ">=8.0.0-alpha.7-12252448911", "@angular/animations": ">=14.1.3", "@angular/cdk": ">=14.1.2", "@angular/common": ">=14.1.3", @@ -169,62 +167,62 @@ } }, "node_modules/@alfresco/adf-core": { - "version": "7.0.0-alpha.7-12200140537", - "resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-7.0.0-alpha.7-12200140537.tgz", - "integrity": "sha512-KbgJFChj6miNaG6DCaEFWiIxqpbot4mR1ioXiG7UUqv8qLBnygWVbEptUh94R35WDjjBMfMJWBfK/BywPsHX0Q==", - "license": "Apache-2.0", - "dependencies": { - "angular-oauth2-oidc": "^15.0.1", - "angular-oauth2-oidc-jwks": "^17.0.2", - "cropperjs": "^1.5.13", + "version": "7.0.0-alpha.7-12252448911", + "resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-7.0.0-alpha.7-12252448911.tgz", + "integrity": "sha512-m8E4jOW/A7ySubchNg0JNaxICgSCKa8UqhOraQzX0mDEvSig7k1nBVucQdZeNUzRoLZ9+IoNg6P72dqIJ+GrKA==", + "dependencies": { + "angular-oauth2-oidc": "17.0.2", + "angular-oauth2-oidc-jwks": "17.0.2", + "cropperjs": "^1.6.2", + "date-fns": "^2.30.0", + "rxjs": "7.8.1", "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/adf-extensions": ">=7.0.0-alpha.7-12200140537", - "@alfresco/js-api": ">=8.0.0-alpha.7-12200140537", - "@angular/animations": ">=14.1.3", - "@angular/cdk": ">=14.1.2", - "@angular/common": ">=14.1.3", - "@angular/core": ">=14.1.3", - "@angular/forms": ">=14.1.3", - "@angular/material": ">=14.1.2", - "@angular/router": ">=14.1.3", - "@mat-datetimepicker/core": ">=10.1.1", - "@ngx-translate/core": ">=14.0.0", - "minimatch-browser": ">=1.0.0", - "pdfjs-dist": ">=3.3.122", + "@alfresco/adf-extensions": ">=7.0.0-alpha.7-12252448911", + "@alfresco/js-api": ">=8.0.0-alpha.7-12252448911", + "@angular/animations": "16.2.9", + "@angular/cdk": "16.2.9", + "@angular/common": "16.2.9", + "@angular/core": "16.2.9", + "@angular/forms": "16.2.9", + "@angular/material": "16.2.9", + "@angular/material-date-fns-adapter": "16.2.9", + "@angular/platform-browser": "16.2.9", + "@angular/router": "16.2.9", + "@mat-datetimepicker/core": "12.0.1", + "@ngx-translate/core": "^14.0.0", + "minimatch-browser": "1.0.0", + "pdfjs-dist": "3.3.122", "ts-morph": "^20.0.0" } }, "node_modules/@alfresco/adf-extensions": { - "version": "7.0.0-alpha.7-12200140537", - "resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-7.0.0-alpha.7-12200140537.tgz", - "integrity": "sha512-dQByfMkKf69wMc91ZBlpY4Gbz+79Wq/Ba3kBIfDMwCClZfLDu0STtu7c1qPrx4Ubfk3MDF+VMCvxChOvOOV1TQ==", - "license": "Apache-2.0", + "version": "7.0.0-alpha.7-12252448911", + "resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-7.0.0-alpha.7-12252448911.tgz", + "integrity": "sha512-vHJE4S+RI+73TccfuLuKtIQ0ioBO/aKpvnY7iIJoZWYGfu/nHmEQP0/KKBMtCMc/+8MNbwlYa4etxTXW3Ovr9A==", "dependencies": { "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/js-api": ">=8.0.0-alpha.7-12200140537", + "@alfresco/js-api": ">=8.0.0-alpha.7-12252448911", "@angular/common": ">=14.1.3", "@angular/core": ">=14.1.3" } }, "node_modules/@alfresco/eslint-plugin-eslint-angular": { - "version": "7.0.0-alpha.7-12200140537", - "resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-7.0.0-alpha.7-12200140537.tgz", - "integrity": "sha512-/DY0mesAM36ht/hCWX5zPTNBSrwrcNY0UaJE+wgAoh2zuLu6AnSZRzNDsqO3qlb+nFUKgxte7frKD/rMgbIO0A==", - "license": "Apache-2.0", + "version": "7.0.0-alpha.7-12252448911", + "resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-7.0.0-alpha.7-12252448911.tgz", + "integrity": "sha512-FUa5Wa4RSk9ZbcVpBUL+ej7VlJflm88OFY34XmCxBFUTM2gamUIUlxbug3EcETQAUkqgru6aA6PcmaFxYShxwg==", "dependencies": { "@angular-eslint/utils": "16.3.1", "@typescript-eslint/utils": "5.62.0" } }, "node_modules/@alfresco/js-api": { - "version": "8.0.0-alpha.7-12200140537", - "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-8.0.0-alpha.7-12200140537.tgz", - "integrity": "sha512-fpaBz6r3nbMUHha0gedXTKBCSH2RQ6fEG5zRnflzrZ1tx9cFK44iLo4PJSunVf0ZsGKE0pFMeE48svyFx2/ZNg==", - "license": "Apache-2.0", + "version": "8.0.0-alpha.7-12252448911", + "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-8.0.0-alpha.7-12252448911.tgz", + "integrity": "sha512-v+deXPT75N74LDN1trQjhc1L71JXt00jPhplrSevg32pdPdJjG/HyxVCUwkv9enhz3JiddYLSxjHfiEA+u7TLA==", "dependencies": { "event-emitter": "^0.3.5", "superagent": "^9.0.1", @@ -259,15 +257,6 @@ "yarn": ">= 1.13.0" } }, - "node_modules/@angular-devkit/architect/node_modules/rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", - "dev": true, - "dependencies": { - "tslib": "^2.1.0" - } - }, "node_modules/@angular-devkit/build-angular": { "version": "16.2.9", "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-16.2.9.tgz", @@ -780,15 +769,6 @@ "@esbuild/win32-x64": "0.18.17" } }, - "node_modules/@angular-devkit/build-angular/node_modules/rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", - "dev": true, - "dependencies": { - "tslib": "^2.1.0" - } - }, "node_modules/@angular-devkit/build-angular/node_modules/tslib": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz", @@ -814,15 +794,6 @@ "webpack-dev-server": "^4.0.0" } }, - "node_modules/@angular-devkit/build-webpack/node_modules/rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", - "dev": true, - "dependencies": { - "tslib": "^2.1.0" - } - }, "node_modules/@angular-devkit/core": { "version": "16.2.9", "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-16.2.9.tgz", @@ -850,15 +821,6 @@ } } }, - "node_modules/@angular-devkit/core/node_modules/rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", - "dev": true, - "dependencies": { - "tslib": "^2.1.0" - } - }, "node_modules/@angular-devkit/schematics": { "version": "16.2.9", "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-16.2.9.tgz", @@ -877,15 +839,6 @@ "yarn": ">= 1.13.0" } }, - "node_modules/@angular-devkit/schematics/node_modules/rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", - "dev": true, - "dependencies": { - "tslib": "^2.1.0" - } - }, "node_modules/@angular-eslint/builder": { "version": "17.0.0", "resolved": "https://registry.npmjs.org/@angular-eslint/builder/-/builder-17.0.0.tgz", @@ -8243,15 +8196,6 @@ "webpack": "^5.0.0" } }, - "node_modules/@nx/webpack/node_modules/rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", - "dev": true, - "dependencies": { - "tslib": "^2.1.0" - } - }, "node_modules/@nx/webpack/node_modules/sass-loader": { "version": "12.6.0", "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz", @@ -9336,7 +9280,6 @@ "version": "0.21.0", "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.21.0.tgz", "integrity": "sha512-ES110Mmne5Vi4ypUKrtVQfXFDtCsDXiUiGxF6ILVlE90dDD4fdpC1LSjydl/ml7xJWKSDZwUYD2zkOePMSrPBA==", - "license": "MIT", "peer": true, "dependencies": { "fast-glob": "^3.2.12", @@ -9349,7 +9292,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "license": "MIT", "peer": true, "dependencies": { "balanced-match": "^1.0.0" @@ -9359,7 +9301,6 @@ "version": "7.4.6", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.6.tgz", "integrity": "sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==", - "license": "ISC", "peer": true, "dependencies": { "brace-expansion": "^2.0.1" @@ -9375,7 +9316,6 @@ "version": "2.1.6", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-2.1.6.tgz", "integrity": "sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A==", - "license": "MIT", "peer": true, "bin": { "mkdirp": "dist/cjs/src/bin.js" @@ -10517,12 +10457,11 @@ } }, "node_modules/angular-oauth2-oidc": { - "version": "15.0.1", - "resolved": "https://registry.npmjs.org/angular-oauth2-oidc/-/angular-oauth2-oidc-15.0.1.tgz", - "integrity": "sha512-5gpqO9QL+qFqMItYFHe8F6H5nOIEaowcNUc9iTDs3P1bfVYnoKoVAaijob53PuPTF4YwzdfwKWZi4Mq6P7GENQ==", - "license": "MIT", + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/angular-oauth2-oidc/-/angular-oauth2-oidc-17.0.2.tgz", + "integrity": "sha512-zYgeLmAnu1g8XAYZK+csAsCQBDhgp9ffBv/eArEnujGxNPTeK00bREHWObtehflpQdSn+k9rY2D15ChCSydyVw==", "dependencies": { - "tslib": "^2.0.0" + "tslib": "^2.5.2" }, "peerDependencies": { "@angular/common": ">=14.0.0", @@ -10533,7 +10472,6 @@ "version": "17.0.2", "resolved": "https://registry.npmjs.org/angular-oauth2-oidc-jwks/-/angular-oauth2-oidc-jwks-17.0.2.tgz", "integrity": "sha512-zG0udq9VihQdCKfGjhUfrIg35TbxU34tGfOG/pddxKwJkodMAFI34cNoZoVyZ53hPgeZSDPra2rYyixkH7bkKw==", - "license": "MIT", "dependencies": { "jsrsasign": "^11.0.0", "tslib": "^2.5.2" @@ -12076,7 +12014,6 @@ "version": "12.0.0", "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-12.0.0.tgz", "integrity": "sha512-q4dMFMlXtKR3XNBHyMHt/3pwYNA69EDk00lloMOaaUMKPUXBw6lpXtbu3MMVG6/uOihGnRDOlkyqsONEUj60+w==", - "license": "MIT", "peer": true }, "node_modules/collect-v8-coverage": { @@ -12566,8 +12503,7 @@ "node_modules/cropperjs": { "version": "1.6.2", "resolved": "https://registry.npmjs.org/cropperjs/-/cropperjs-1.6.2.tgz", - "integrity": "sha512-nhymn9GdnV3CqiEHJVai54TULFAE3VshJTXSqSJKa8yXAKyBKDWdhHarnlIPrshJ0WMFTGuFvG02YjLXfPiuOA==", - "license": "MIT" + "integrity": "sha512-nhymn9GdnV3CqiEHJVai54TULFAE3VshJTXSqSJKa8yXAKyBKDWdhHarnlIPrshJ0WMFTGuFvG02YjLXfPiuOA==" }, "node_modules/cross-spawn": { "version": "7.0.6", @@ -18416,7 +18352,6 @@ "version": "11.1.0", "resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-11.1.0.tgz", "integrity": "sha512-Ov74K9GihaK9/9WncTe1mPmvrO7Py665TUfUKvraXBpu+xcTWitrtuOwcjf4KMU9maPaYn0OuaWy0HOzy/GBXg==", - "license": "MIT", "funding": { "url": "https://github.com/kjur/jsrsasign#donations" } @@ -22118,7 +22053,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", - "license": "MIT", "peer": true }, "node_modules/path-exists": { @@ -24094,9 +24028,9 @@ } }, "node_modules/rxjs": { - "version": "7.5.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz", - "integrity": "sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA==", + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", "dependencies": { "tslib": "^2.1.0" } @@ -26437,7 +26371,6 @@ "version": "20.0.0", "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-20.0.0.tgz", "integrity": "sha512-JVmEJy2Wow5n/84I3igthL9sudQ8qzjh/6i4tmYCm6IqYyKFlNbJZi7oBdjyqcWSWYRu3CtL0xbT6fS03ESZIg==", - "license": "MIT", "peer": true, "dependencies": { "@ts-morph/common": "~0.21.0", diff --git a/package.json b/package.json index d276c64517..52adc8a2e3 100644 --- a/package.json +++ b/package.json @@ -30,11 +30,11 @@ }, "private": true, "dependencies": { - "@alfresco/adf-content-services": "7.0.0-alpha.7-12200140537", - "@alfresco/adf-core": "7.0.0-alpha.7-12200140537", - "@alfresco/adf-extensions": "7.0.0-alpha.7-12200140537", - "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.7-12200140537", - "@alfresco/js-api": "8.0.0-alpha.7-12200140537", + "@alfresco/adf-content-services": "7.0.0-alpha.7-12252448911", + "@alfresco/adf-core": "7.0.0-alpha.7-12252448911", + "@alfresco/adf-extensions": "7.0.0-alpha.7-12252448911", + "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.7-12252448911", + "@alfresco/js-api": "8.0.0-alpha.7-12252448911", "@angular/animations": "16.2.9", "@angular/cdk": "16.2.9", "@angular/common": "16.2.9", @@ -57,12 +57,12 @@ "material-icons": "^1.13.12", "minimatch-browser": "^1.0.0", "pdfjs-dist": "3.3.122", - "rxjs": "7.5.7", + "rxjs": "7.8.1", "tslib": "^2.7.0", "zone.js": "0.13.3" }, "devDependencies": { - "@alfresco/adf-cli": "7.0.0-alpha.7-12200140537", + "@alfresco/adf-cli": "7.0.0-alpha.7-12252448911", "@angular-devkit/build-angular": "16.2.9", "@angular-devkit/core": "16.2.9", "@angular-devkit/schematics": "16.2.9", diff --git a/projects/aca-playwright-shared/src/utils/utils.ts b/projects/aca-playwright-shared/src/utils/utils.ts index 9e653bb874..da0243319c 100644 --- a/projects/aca-playwright-shared/src/utils/utils.ts +++ b/projects/aca-playwright-shared/src/utils/utils.ts @@ -169,4 +169,14 @@ export class Utils { return Object.keys(entries).some((entry) => entry.includes(name)); }); } + + /** + * Method used trim all elements of an array from all spaces characters + * + * @param arr array needed to be trimmed + * + */ + static trimArrayElements(arr: string[]): string[] { + return arr.map((element) => element.trim()); + } }