mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACS-8688] export playwright shared lib (#4068)
* [ACS-8688] export playwright shared lib * [ACS-8688] changes name * [ACS-8688] changes name * [ACS-8688] add lint file and fix lint issue * [ACS-8688] test fix * added ng package file
This commit is contained in:
parent
14bb6b3155
commit
56c2c55daf
3
.github/actions/publish-libs/npm-publish.sh
vendored
3
.github/actions/publish-libs/npm-publish.sh
vendored
@ -12,7 +12,8 @@ fi
|
|||||||
|
|
||||||
export PROJECTS=(
|
export PROJECTS=(
|
||||||
'aca-content'
|
'aca-content'
|
||||||
'aca-shared'
|
'aca-shared',
|
||||||
|
'aca-playwright-shared'
|
||||||
);
|
);
|
||||||
|
|
||||||
for PROJECT in ${PROJECTS[@]}
|
for PROJECT in ${PROJECTS[@]}
|
||||||
|
@ -11,7 +11,8 @@ fi
|
|||||||
|
|
||||||
export PROJECTS=(
|
export PROJECTS=(
|
||||||
'aca-content'
|
'aca-content'
|
||||||
'aca-shared'
|
'aca-shared',
|
||||||
|
'aca-playwright-shared'
|
||||||
);
|
);
|
||||||
|
|
||||||
for PROJECT in ${PROJECTS[@]}
|
for PROJECT in ${PROJECTS[@]}
|
||||||
|
@ -32,4 +32,4 @@ if (environment.production) {
|
|||||||
enableProdMode();
|
enableProdMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule);
|
void platformBrowserDynamic().bootstrapModule(AppModule);
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
"package.json"
|
"package.json"
|
||||||
],
|
],
|
||||||
"words": [
|
"words": [
|
||||||
"Hyland",
|
|
||||||
"ADDFEATURES",
|
"ADDFEATURES",
|
||||||
"afts",
|
"afts",
|
||||||
"androidamw",
|
"androidamw",
|
||||||
@ -20,6 +19,7 @@
|
|||||||
"folderlink",
|
"folderlink",
|
||||||
"formcontrolname",
|
"formcontrolname",
|
||||||
"hruser",
|
"hruser",
|
||||||
|
"Hyland",
|
||||||
"iosamw",
|
"iosamw",
|
||||||
"mobileapps",
|
"mobileapps",
|
||||||
"mysites",
|
"mysites",
|
||||||
@ -31,6 +31,7 @@
|
|||||||
"qshare",
|
"qshare",
|
||||||
"repo",
|
"repo",
|
||||||
"reportportal",
|
"reportportal",
|
||||||
|
"sfdc",
|
||||||
"sharedlinks",
|
"sharedlinks",
|
||||||
"sidenav",
|
"sidenav",
|
||||||
"simpletask",
|
"simpletask",
|
||||||
@ -38,7 +39,8 @@
|
|||||||
"textitem",
|
"textitem",
|
||||||
"thumbnailed",
|
"thumbnailed",
|
||||||
"versionable",
|
"versionable",
|
||||||
"sfdc"
|
"любимый",
|
||||||
|
"сайт"
|
||||||
],
|
],
|
||||||
"dictionaries": [
|
"dictionaries": [
|
||||||
"html",
|
"html",
|
||||||
|
@ -71,7 +71,9 @@ test.describe('Unshare a file from Search Results', () => {
|
|||||||
await apiClientFactory.createUser({ username });
|
await apiClientFactory.createUser({ username });
|
||||||
nodesApi = await NodesApi.initialize(username, username);
|
nodesApi = await NodesApi.initialize(username, username);
|
||||||
trashcanApi = await TrashcanApi.initialize(username, username);
|
trashcanApi = await TrashcanApi.initialize(username, username);
|
||||||
sitesApi = await SitesApi.initialize(username, username);
|
sitesApi = await SitesApi.initialize('admin');
|
||||||
|
const nodesApiAdmin = await NodesApi.initialize('admin');
|
||||||
|
const shareApiAdmin = await SharedLinksApi.initialize('admin');
|
||||||
const shareApi = await SharedLinksApi.initialize(username, username);
|
const shareApi = await SharedLinksApi.initialize(username, username);
|
||||||
const filesAction = await FileActionsApi.initialize(username, username);
|
const filesAction = await FileActionsApi.initialize(username, username);
|
||||||
parentId = (await nodesApi.createFolder(parent)).entry.id;
|
parentId = (await nodesApi.createFolder(parent)).entry.id;
|
||||||
@ -84,13 +86,13 @@ test.describe('Unshare a file from Search Results', () => {
|
|||||||
await sitesApi.createSite(sitePrivate, Site.VisibilityEnum.PRIVATE);
|
await sitesApi.createSite(sitePrivate, Site.VisibilityEnum.PRIVATE);
|
||||||
const docLibId = await sitesApi.getDocLibId(sitePrivate);
|
const docLibId = await sitesApi.getDocLibId(sitePrivate);
|
||||||
|
|
||||||
const fileSite1Id = (await nodesApi.createFile(fileSite1, docLibId)).entry.id;
|
const fileSite1Id = (await nodesApiAdmin.createFile(fileSite1, docLibId)).entry.id;
|
||||||
fileSite2Id = (await nodesApi.createFile(fileSite2, docLibId)).entry.id;
|
fileSite2Id = (await nodesApiAdmin.createFile(fileSite2, docLibId)).entry.id;
|
||||||
|
|
||||||
await sitesApi.addSiteMember(sitePrivate, username, Site.RoleEnum.SiteConsumer);
|
await sitesApi.addSiteMember(sitePrivate, username, Site.RoleEnum.SiteConsumer);
|
||||||
|
|
||||||
await shareApi.shareFilesByIds([fileSite1Id]);
|
await shareApiAdmin.shareFilesByIds([fileSite1Id]);
|
||||||
await shareApi.waitForFilesToBeShared([fileSite1Id]);
|
await shareApiAdmin.waitForFilesToBeShared([fileSite1Id]);
|
||||||
|
|
||||||
await shareApi.shareFilesByIds([file1Id, file2Id, file3Id, file4Id, fileSite2Id]);
|
await shareApi.shareFilesByIds([file1Id, file2Id, file3Id, file4Id, fileSite2Id]);
|
||||||
await shareApi.waitForFilesToBeShared([file1Id, file2Id, file3Id, file4Id, fileSite2Id]);
|
await shareApi.waitForFilesToBeShared([file1Id, file2Id, file3Id, file4Id, fileSite2Id]);
|
||||||
|
17
projects/aca-playwright-shared/.eslintrc.js
Normal file
17
projects/aca-playwright-shared/.eslintrc.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
const path = require('path');
|
||||||
|
module.exports = {
|
||||||
|
extends: '../../.eslintrc.json',
|
||||||
|
ignorePatterns: ['!**/*'],
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: ['*.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: [path.join(__dirname, 'tsconfig.lib.json'), path.join(__dirname, 'tsconfig.spec.json')],
|
||||||
|
createDefaultProgram: true
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
'no-console': ['error', {'allow': ['info', 'log', 'warn', 'error'] }]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
6
projects/aca-playwright-shared/ng-package.json
Normal file
6
projects/aca-playwright-shared/ng-package.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"dest": "../../dist/@alfresco/aca-playwright-shared",
|
||||||
|
"lib": {
|
||||||
|
"entryFile": "src/index.ts"
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "aca-playwright-shared",
|
"name": "@alfresco/aca-playwright-shared",
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"license": "LGPL-3.0",
|
"license": "LGPL-3.0",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
@ -1,7 +1,28 @@
|
|||||||
{
|
{
|
||||||
"name": "playwright-shared",
|
"name": "aca-playwright-shared",
|
||||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||||
"sourceRoot": "projects/aca-playwright-shared/src",
|
"sourceRoot": "projects/aca-playwright-shared/src",
|
||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"prefix": "lib"
|
"prefix": "lib",
|
||||||
|
"targets": {
|
||||||
|
"build": {
|
||||||
|
"executor": "@angular-devkit/build-angular:ng-packagr",
|
||||||
|
"options": {
|
||||||
|
"tsConfig": "projects/aca-playwright-shared/tsconfig.lib.json",
|
||||||
|
"project": "projects/aca-playwright-shared/ng-package.json"
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"tsConfig": "projects/aca-playwright-shared/tsconfig.lib.prod.json"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultConfiguration": "production",
|
||||||
|
"outputs": [
|
||||||
|
"{workspaceRoot}/dist/@alfresco/aca-playwright-shared"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"lint": {
|
||||||
|
"executor": "@angular-eslint/builder:lint"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ApiClientFactory } from './api-client-factory';
|
import { ApiClientFactory } from './api-client-factory';
|
||||||
@ -40,7 +40,7 @@ export class CategoriesApi {
|
|||||||
|
|
||||||
async createCategory(categoryId: string, categoryBodyCreate: CategoryBody[], opts?: CategoryQuery): Promise<CategoryPaging | CategoryEntry> {
|
async createCategory(categoryId: string, categoryBodyCreate: CategoryBody[], opts?: CategoryQuery): Promise<CategoryPaging | CategoryEntry> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.categoriesApi.createSubcategories(categoryId, categoryBodyCreate, opts);
|
return this.apiService.categoriesApi.createSubcategories(categoryId, categoryBodyCreate, opts);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
return null;
|
return null;
|
||||||
@ -49,7 +49,7 @@ export class CategoriesApi {
|
|||||||
|
|
||||||
async deleteCategory(categoryId: string): Promise<void> {
|
async deleteCategory(categoryId: string): Promise<void> {
|
||||||
if (categoryId === null) {
|
if (categoryId === null) {
|
||||||
console.log('categoryId is null, skipping deletion');
|
console.error('categoryId is null, skipping deletion');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ export class CategoriesApi {
|
|||||||
opts?: CategoryQuery
|
opts?: CategoryQuery
|
||||||
): Promise<CategoryPaging | CategoryEntry> {
|
): Promise<CategoryPaging | CategoryEntry> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.categoriesApi.linkNodeToCategory(nodeId, categoryLinkBodyCreate, opts);
|
return this.apiService.categoriesApi.linkNodeToCategory(nodeId, categoryLinkBodyCreate, opts);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.linkNodeToCategory.name}: ${error}`);
|
console.error(`${this.constructor.name} ${this.linkNodeToCategory.name}: ${error}`);
|
||||||
return null;
|
return null;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ApiClientFactory } from './api-client-factory';
|
import { ApiClientFactory } from './api-client-factory';
|
||||||
@ -38,7 +38,7 @@ export class FavoritesPageApi {
|
|||||||
return classObj;
|
return classObj;
|
||||||
}
|
}
|
||||||
async addFavoriteById(nodeType: 'file' | 'folder' | 'site', id: string): Promise<FavoriteEntry> {
|
async addFavoriteById(nodeType: 'file' | 'folder' | 'site', id: string): Promise<FavoriteEntry> {
|
||||||
let guid = nodeType === 'site' ? (await this.apiService.sites.getSite(id)).entry.guid : id;
|
const guid = nodeType === 'site' ? (await this.apiService.sites.getSite(id)).entry.guid : id;
|
||||||
const data = {
|
const data = {
|
||||||
target: {
|
target: {
|
||||||
[nodeType]: {
|
[nodeType]: {
|
||||||
@ -46,7 +46,7 @@ export class FavoritesPageApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return await this.apiService.favorites.createFavorite('-me-', data);
|
return this.apiService.favorites.createFavorite('-me-', data);
|
||||||
}
|
}
|
||||||
|
|
||||||
async addFavoritesByIds(nodeType: 'file' | 'folder' | 'site', ids: string[]): Promise<FavoriteEntry[]> {
|
async addFavoritesByIds(nodeType: 'file' | 'folder' | 'site', ids: string[]): Promise<FavoriteEntry[]> {
|
||||||
@ -64,7 +64,7 @@ export class FavoritesPageApi {
|
|||||||
|
|
||||||
private async getFavorites(username: string): Promise<FavoritePaging> {
|
private async getFavorites(username: string): Promise<FavoritePaging> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.favorites.listFavorites(username);
|
return this.apiService.favorites.listFavorites(username);
|
||||||
} catch {
|
} catch {
|
||||||
return new FavoritePaging();
|
return new FavoritePaging();
|
||||||
}
|
}
|
||||||
@ -89,7 +89,7 @@ export class FavoritesPageApi {
|
|||||||
return Promise.resolve(isFavorite);
|
return Promise.resolve(isFavorite);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return await Utils.retryCall(favorite);
|
return Utils.retryCall(favorite);
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
return isFavorite;
|
return isFavorite;
|
||||||
}
|
}
|
||||||
@ -112,7 +112,7 @@ export class FavoritesPageApi {
|
|||||||
return Promise.resolve(totalItems);
|
return Promise.resolve(totalItems);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return await Utils.retryCall(favoriteFiles);
|
return Utils.retryCall(favoriteFiles);
|
||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
@ -43,7 +43,7 @@ export class FileActionsApi {
|
|||||||
|
|
||||||
async uploadFile(fileLocation: string, fileName: string, parentFolderId: string): Promise<NodeEntry> {
|
async uploadFile(fileLocation: string, fileName: string, parentFolderId: string): Promise<NodeEntry> {
|
||||||
const file = fs.createReadStream(fileLocation);
|
const file = fs.createReadStream(fileLocation);
|
||||||
return await this.apiService.upload.uploadFile(file, '', parentFolderId, null, {
|
return this.apiService.upload.uploadFile(file, '', parentFolderId, null, {
|
||||||
name: fileName,
|
name: fileName,
|
||||||
nodeType: 'cm:content',
|
nodeType: 'cm:content',
|
||||||
renditions: 'doclib'
|
renditions: 'doclib'
|
||||||
@ -71,7 +71,7 @@ export class FileActionsApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.apiService.upload.uploadFile(file, '', parentId, nodeProps, opts);
|
return this.apiService.upload.uploadFile(file, '', parentId, nodeProps, opts);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
}
|
}
|
||||||
@ -87,7 +87,7 @@ export class FileActionsApi {
|
|||||||
|
|
||||||
async getNodeById(id: string): Promise<NodeEntry | null> {
|
async getNodeById(id: string): Promise<NodeEntry | null> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.nodes.getNode(id);
|
return this.apiService.nodes.getNode(id);
|
||||||
} catch {
|
} catch {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -126,7 +126,7 @@ export class FileActionsApi {
|
|||||||
return Promise.resolve(isLocked);
|
return Promise.resolve(isLocked);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return await Utils.retryCall(locked, data.retry);
|
return Utils.retryCall(locked, data.retry);
|
||||||
} catch {}
|
} catch {}
|
||||||
return isLocked;
|
return isLocked;
|
||||||
}
|
}
|
||||||
@ -141,7 +141,7 @@ export class FileActionsApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.apiService.search.search(data);
|
return this.apiService.search.search(data);
|
||||||
} catch {
|
} catch {
|
||||||
return new ResultSetPaging();
|
return new ResultSetPaging();
|
||||||
}
|
}
|
||||||
@ -172,7 +172,7 @@ export class FileActionsApi {
|
|||||||
comment: comment,
|
comment: comment,
|
||||||
name: newName
|
name: newName
|
||||||
};
|
};
|
||||||
return await this.apiService.nodes.updateNodeContent(nodeId, content, opts);
|
return this.apiService.nodes.updateNodeContent(nodeId, content, opts);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.updateNodeContent.name}`, error);
|
console.error(`${this.constructor.name} ${this.updateNodeContent.name}`, error);
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { NodeBodyCreate } from '@alfresco/js-api';
|
import { NodeBodyCreate } from '@alfresco/js-api';
|
||||||
@ -41,9 +41,8 @@ export function flattenNodeContentTree(content: NodeContentTree, relativePath: s
|
|||||||
const { name, files, folders, title, description } = content;
|
const { name, files, folders, title, description } = content;
|
||||||
const aspectNames: string[] = ['cm:versionable'];
|
const aspectNames: string[] = ['cm:versionable'];
|
||||||
let data: NodeBodyCreate[] = [];
|
let data: NodeBodyCreate[] = [];
|
||||||
let properties: any;
|
|
||||||
|
|
||||||
properties = {
|
const properties = {
|
||||||
[NODE_TITLE]: title,
|
[NODE_TITLE]: title,
|
||||||
[NODE_DESCRIPTION]: description
|
[NODE_DESCRIPTION]: description
|
||||||
};
|
};
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ApiClientFactory } from './api-client-factory';
|
import { ApiClientFactory } from './api-client-factory';
|
||||||
@ -48,7 +48,7 @@ export class NodesApi {
|
|||||||
aspectNames: string[] = null
|
aspectNames: string[] = null
|
||||||
): Promise<NodeEntry | null> {
|
): Promise<NodeEntry | null> {
|
||||||
try {
|
try {
|
||||||
return await this.createNode('cm:folder', name, parentId, title, description, null, author, null, aspectNames);
|
return this.createNode('cm:folder', name, parentId, title, description, null, author, null, aspectNames);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.createFolder.name}`, error);
|
console.error(`${this.constructor.name} ${this.createFolder.name}`, error);
|
||||||
return null;
|
return null;
|
||||||
@ -65,7 +65,7 @@ export class NodesApi {
|
|||||||
aspectNames: string[] = null
|
aspectNames: string[] = null
|
||||||
): Promise<NodeEntry> {
|
): Promise<NodeEntry> {
|
||||||
try {
|
try {
|
||||||
return await this.createNode('cm:content', name, parentId, title, description, null, author, majorVersion, aspectNames);
|
return this.createNode('cm:content', name, parentId, title, description, null, author, majorVersion, aspectNames);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.createFile.name}`, error);
|
console.error(`${this.constructor.name} ${this.createFile.name}`, error);
|
||||||
return null;
|
return null;
|
||||||
@ -74,7 +74,7 @@ export class NodesApi {
|
|||||||
|
|
||||||
async createFiles(names: string[], relativePath = '/'): Promise<NodePaging> {
|
async createFiles(names: string[], relativePath = '/'): Promise<NodePaging> {
|
||||||
try {
|
try {
|
||||||
return await this.createContent({ files: names }, relativePath);
|
return this.createContent({ files: names }, relativePath);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.createFiles.name}: ${error}`);
|
console.error(`${this.constructor.name} ${this.createFiles.name}: ${error}`);
|
||||||
return null;
|
return null;
|
||||||
@ -83,7 +83,7 @@ export class NodesApi {
|
|||||||
|
|
||||||
async createFolders(names: string[], relativePath = '/'): Promise<NodePaging> {
|
async createFolders(names: string[], relativePath = '/'): Promise<NodePaging> {
|
||||||
try {
|
try {
|
||||||
return await this.createContent({ folders: names }, relativePath);
|
return this.createContent({ folders: names }, relativePath);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.createFolders.name}: ${error}`);
|
console.error(`${this.constructor.name} ${this.createFolders.name}: ${error}`);
|
||||||
return null;
|
return null;
|
||||||
@ -128,7 +128,7 @@ export class NodesApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.apiService.nodes.createNode(parentId, nodeBody, {
|
return this.apiService.nodes.createNode(parentId, nodeBody, {
|
||||||
majorVersion
|
majorVersion
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -139,7 +139,7 @@ export class NodesApi {
|
|||||||
|
|
||||||
async renameNode(nodeId: string, newName: string): Promise<NodeEntry | null> {
|
async renameNode(nodeId: string, newName: string): Promise<NodeEntry | null> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.nodes.updateNode(nodeId, { name: newName });
|
return this.apiService.nodes.updateNode(nodeId, { name: newName });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.renameNode.name}`, error);
|
console.error(`${this.constructor.name} ${this.renameNode.name}`, error);
|
||||||
return null;
|
return null;
|
||||||
@ -195,7 +195,7 @@ export class NodesApi {
|
|||||||
|
|
||||||
async createContent(content: NodeContentTree, relativePath: string = '/'): Promise<NodePaging> {
|
async createContent(content: NodeContentTree, relativePath: string = '/'): Promise<NodePaging> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.nodes.createNode('-my-', flattenNodeContentTree(content, relativePath) as any);
|
return this.apiService.nodes.createNode('-my-', flattenNodeContentTree(content, relativePath) as any);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.createContent.name}`, error);
|
console.error(`${this.constructor.name} ${this.createContent.name}`, error);
|
||||||
return null;
|
return null;
|
||||||
@ -204,7 +204,7 @@ export class NodesApi {
|
|||||||
|
|
||||||
async getNodeById(id: string): Promise<NodeEntry | null> {
|
async getNodeById(id: string): Promise<NodeEntry | null> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.nodes.getNode(id);
|
return this.apiService.nodes.getNode(id);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.getNodeById.name}`, error);
|
console.error(`${this.constructor.name} ${this.getNodeById.name}`, error);
|
||||||
return null;
|
return null;
|
||||||
@ -226,7 +226,7 @@ export class NodesApi {
|
|||||||
const opts = {
|
const opts = {
|
||||||
include: ['properties']
|
include: ['properties']
|
||||||
};
|
};
|
||||||
return await this.apiService.nodes.listNodeChildren(nodeId, opts);
|
return this.apiService.nodes.listNodeChildren(nodeId, opts);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.getNodeChildren.name}`, error);
|
console.error(`${this.constructor.name} ${this.getNodeChildren.name}`, error);
|
||||||
return null;
|
return null;
|
||||||
@ -304,7 +304,7 @@ export class NodesApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.apiService.nodes.updateNode(nodeId, data);
|
return this.apiService.nodes.updateNode(nodeId, data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.setGranularPermission.name}`, error);
|
console.error(`${this.constructor.name} ${this.setGranularPermission.name}`, error);
|
||||||
return null;
|
return null;
|
||||||
@ -343,7 +343,7 @@ export class NodesApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.apiService.nodes.updateNode(nodeId, data);
|
return this.apiService.nodes.updateNode(nodeId, data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.setInheritPermissions.name}`, error);
|
console.error(`${this.constructor.name} ${this.setInheritPermissions.name}`, error);
|
||||||
return null;
|
return null;
|
||||||
@ -352,7 +352,7 @@ export class NodesApi {
|
|||||||
|
|
||||||
private async addAspects(nodeId: string, aspectNames: string[]): Promise<NodeEntry> {
|
private async addAspects(nodeId: string, aspectNames: string[]): Promise<NodeEntry> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.nodes.updateNode(nodeId, { aspectNames });
|
return this.apiService.nodes.updateNode(nodeId, { aspectNames });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.addAspects.name}`, error);
|
console.error(`${this.constructor.name} ${this.addAspects.name}`, error);
|
||||||
return null;
|
return null;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface PersonModel {
|
export interface PersonModel {
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FindQuery } from '@alfresco/js-api';
|
import { FindQuery } from '@alfresco/js-api';
|
||||||
@ -50,7 +50,7 @@ export class QueriesApi {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return await Utils.retryCall(sites);
|
return Utils.retryCall(sites);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`QueriesApi waitForSites : catch : `);
|
console.error(`QueriesApi waitForSites : catch : `);
|
||||||
console.error(`\tExpected: ${data.expect} items, but found ${error}`);
|
console.error(`\tExpected: ${data.expect} items, but found ${error}`);
|
||||||
|
@ -53,7 +53,7 @@ export class RulesApi {
|
|||||||
async createRandomRule(folderId: string, ruleName: string): Promise<Rule> {
|
async createRandomRule(folderId: string, ruleName: string): Promise<Rule> {
|
||||||
const randomActionsIndex = crypto.randomInt(0, ActionTypes.actions.length);
|
const randomActionsIndex = crypto.randomInt(0, ActionTypes.actions.length);
|
||||||
const randomAction = ActionTypes.actions[randomActionsIndex];
|
const randomAction = ActionTypes.actions[randomActionsIndex];
|
||||||
return await this.createRule(folderId, {
|
return this.createRule(folderId, {
|
||||||
name: ruleName,
|
name: ruleName,
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
actions: [randomAction]
|
actions: [randomAction]
|
||||||
@ -66,13 +66,13 @@ export class RulesApi {
|
|||||||
}
|
}
|
||||||
const randomActionsIndex = crypto.randomInt(0, ActionTypes.actions.length);
|
const randomActionsIndex = crypto.randomInt(0, ActionTypes.actions.length);
|
||||||
const randomAction = ActionTypes.actions[randomActionsIndex];
|
const randomAction = ActionTypes.actions[randomActionsIndex];
|
||||||
let conditionsArray = [];
|
const conditionsArray = [];
|
||||||
for (let i = 0; i < numOfConditions; i++) {
|
for (let i = 0; i < numOfConditions; i++) {
|
||||||
const randomIndex = crypto.randomInt(0, ConditionsTypes.conditions.length);
|
const randomIndex = crypto.randomInt(0, ConditionsTypes.conditions.length);
|
||||||
const randomCondition = ConditionsTypes.conditions[randomIndex];
|
const randomCondition = ConditionsTypes.conditions[randomIndex];
|
||||||
conditionsArray.push(randomCondition);
|
conditionsArray.push(randomCondition);
|
||||||
}
|
}
|
||||||
return await this.createRule(folderId, {
|
return this.createRule(folderId, {
|
||||||
name: ruleName,
|
name: ruleName,
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
actions: [randomAction],
|
actions: [randomAction],
|
||||||
@ -88,24 +88,30 @@ export class RulesApi {
|
|||||||
if (numOfActions > ActionTypes.actions.length) {
|
if (numOfActions > ActionTypes.actions.length) {
|
||||||
numOfActions = ActionTypes.actions.length;
|
numOfActions = ActionTypes.actions.length;
|
||||||
}
|
}
|
||||||
let actionsArray = [];
|
const actionsArray = [];
|
||||||
for (let i = 0; i < numOfActions; i++) {
|
for (let i = 0; i < numOfActions; i++) {
|
||||||
const randomIndex = crypto.randomInt(0, ActionTypes.actions.length);
|
const randomIndex = crypto.randomInt(0, ActionTypes.actions.length);
|
||||||
const randomAction = ActionTypes.actions[randomIndex];
|
const randomAction = ActionTypes.actions[randomIndex];
|
||||||
actionsArray.push(randomAction);
|
actionsArray.push(randomAction);
|
||||||
}
|
}
|
||||||
return await this.createRule(folderId, {
|
return this.createRule(folderId, {
|
||||||
name: ruleName,
|
name: ruleName,
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
actions: actionsArray
|
actions: actionsArray
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async createRandomComplexRule(folderId: string, ruleName: string, numOfConditions: number, numOfActions: number, ruleDescription?: string): Promise<Rule> {
|
async createRandomComplexRule(
|
||||||
|
folderId: string,
|
||||||
|
ruleName: string,
|
||||||
|
numOfConditions: number,
|
||||||
|
numOfActions: number,
|
||||||
|
ruleDescription?: string
|
||||||
|
): Promise<Rule> {
|
||||||
if (numOfConditions > ConditionsTypes.conditions.length) {
|
if (numOfConditions > ConditionsTypes.conditions.length) {
|
||||||
numOfConditions = ConditionsTypes.conditions.length;
|
numOfConditions = ConditionsTypes.conditions.length;
|
||||||
}
|
}
|
||||||
let conditionsArray = [];
|
const conditionsArray = [];
|
||||||
for (let i = 0; i < numOfConditions; i++) {
|
for (let i = 0; i < numOfConditions; i++) {
|
||||||
const randomIndex = crypto.randomInt(0, ConditionsTypes.conditions.length);
|
const randomIndex = crypto.randomInt(0, ConditionsTypes.conditions.length);
|
||||||
const randomCondition = ConditionsTypes.conditions[randomIndex];
|
const randomCondition = ConditionsTypes.conditions[randomIndex];
|
||||||
@ -114,13 +120,13 @@ export class RulesApi {
|
|||||||
if (numOfActions > ActionTypes.actions.length) {
|
if (numOfActions > ActionTypes.actions.length) {
|
||||||
numOfActions = ActionTypes.actions.length;
|
numOfActions = ActionTypes.actions.length;
|
||||||
}
|
}
|
||||||
let actionsArray = [];
|
const actionsArray = [];
|
||||||
for (let i = 0; i < numOfActions; i++) {
|
for (let i = 0; i < numOfActions; i++) {
|
||||||
const randomIndex = crypto.randomInt(0, ActionTypes.actions.length);
|
const randomIndex = crypto.randomInt(0, ActionTypes.actions.length);
|
||||||
const randomAction = ActionTypes.actions[randomIndex];
|
const randomAction = ActionTypes.actions[randomIndex];
|
||||||
actionsArray.push(randomAction);
|
actionsArray.push(randomAction);
|
||||||
}
|
}
|
||||||
return await this.createRule(folderId, {
|
return this.createRule(folderId, {
|
||||||
name: ruleName,
|
name: ruleName,
|
||||||
description: ruleDescription,
|
description: ruleDescription,
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
@ -134,7 +140,7 @@ export class RulesApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async createRuleWithRandomAspects(folderId: string, ruleName: string): Promise<Rule> {
|
async createRuleWithRandomAspects(folderId: string, ruleName: string): Promise<Rule> {
|
||||||
return await this.createRule(folderId, {
|
return this.createRule(folderId, {
|
||||||
name: ruleName,
|
name: ruleName,
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
actions: [
|
actions: [
|
||||||
@ -166,7 +172,7 @@ export class RulesApi {
|
|||||||
actionType: 'move' | 'copy' | 'import',
|
actionType: 'move' | 'copy' | 'import',
|
||||||
destinationFolderId: string
|
destinationFolderId: string
|
||||||
): Promise<Rule> {
|
): Promise<Rule> {
|
||||||
return await this.createRule(folderId, {
|
return this.createRule(folderId, {
|
||||||
name: ruleName,
|
name: ruleName,
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
actions: [
|
actions: [
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ApiClientFactory } from './api-client-factory';
|
import { ApiClientFactory } from './api-client-factory';
|
||||||
@ -52,7 +52,7 @@ export class SearchPageApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.apiService.search.search(data);
|
return this.apiService.search.search(data);
|
||||||
} catch {
|
} catch {
|
||||||
return new ResultSetPaging();
|
return new ResultSetPaging();
|
||||||
}
|
}
|
||||||
@ -73,7 +73,7 @@ export class SearchPageApi {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return await Utils.retryCall(searchFiles);
|
return Utils.retryCall(searchFiles);
|
||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ApiClientFactory } from './api-client-factory';
|
import { ApiClientFactory } from './api-client-factory';
|
||||||
@ -44,7 +44,7 @@ export class SharedLinksApi {
|
|||||||
nodeId: id,
|
nodeId: id,
|
||||||
expiresAt: expireDate
|
expiresAt: expireDate
|
||||||
};
|
};
|
||||||
return await this.apiService.share.createSharedLink(data);
|
return this.apiService.share.createSharedLink(data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ export class SharedLinksApi {
|
|||||||
const opts = {
|
const opts = {
|
||||||
maxItems
|
maxItems
|
||||||
};
|
};
|
||||||
return await this.apiService.share.listSharedLinks(opts);
|
return this.apiService.share.listSharedLinks(opts);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`SharedLinksApi getSharedLinks : catch : `, error);
|
console.error(`SharedLinksApi getSharedLinks : catch : `, error);
|
||||||
return new SharedLinkPaging();
|
return new SharedLinkPaging();
|
||||||
@ -89,7 +89,7 @@ export class SharedLinksApi {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return await Utils.retryCall(sharedFile);
|
return Utils.retryCall(sharedFile);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`SharedLinksApi waitForFilesToBeShared : catch : ${error}`);
|
console.error(`SharedLinksApi waitForFilesToBeShared : catch : ${error}`);
|
||||||
console.error(`\tWait timeout reached waiting for files to be shared`);
|
console.error(`\tWait timeout reached waiting for files to be shared`);
|
||||||
@ -110,7 +110,7 @@ export class SharedLinksApi {
|
|||||||
async unshareFileById(fileId: string): Promise<void> {
|
async unshareFileById(fileId: string): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const sharedId = await this.getSharedIdOfNode(fileId);
|
const sharedId = await this.getSharedIdOfNode(fileId);
|
||||||
return await this.apiService.share.deleteSharedLink(sharedId);
|
return this.apiService.share.deleteSharedLink(sharedId);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`SharedLinksApi unshareFileById : catch : `, error);
|
console.error(`SharedLinksApi unshareFileById : catch : `, error);
|
||||||
}
|
}
|
||||||
@ -132,7 +132,7 @@ export class SharedLinksApi {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return await Utils.retryCall(sharedFile);
|
return Utils.retryCall(sharedFile);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`SharedLinksApi waitForFilesToNotBeShared : catch : ${error}`);
|
console.error(`SharedLinksApi waitForFilesToNotBeShared : catch : ${error}`);
|
||||||
console.error(`\tWait timeout reached waiting for files to no longer be shared`);
|
console.error(`\tWait timeout reached waiting for files to no longer be shared`);
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ApiClientFactory } from './api-client-factory';
|
import { ApiClientFactory } from './api-client-factory';
|
||||||
@ -55,7 +55,7 @@ export class SitesApi {
|
|||||||
} as SiteBodyCreate;
|
} as SiteBodyCreate;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.apiService.sites.createSite(site);
|
return this.apiService.sites.createSite(site);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`SitesApi createSite : catch : `, error);
|
console.error(`SitesApi createSite : catch : `, error);
|
||||||
return null;
|
return null;
|
||||||
@ -94,7 +94,7 @@ export class SitesApi {
|
|||||||
} as SiteMembershipBodyUpdate;
|
} as SiteMembershipBodyUpdate;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.apiService.sites.updateSiteMembership(siteId, userId, siteRole);
|
return this.apiService.sites.updateSiteMembership(siteId, userId, siteRole);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`SitesApi updateSiteMember : catch : `, error);
|
console.error(`SitesApi updateSiteMember : catch : `, error);
|
||||||
return new SiteMemberEntry();
|
return new SiteMemberEntry();
|
||||||
@ -108,7 +108,7 @@ export class SitesApi {
|
|||||||
} as SiteMembershipBodyCreate;
|
} as SiteMembershipBodyCreate;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.apiService.sites.createSiteMembership(siteId, memberBody);
|
return this.apiService.sites.createSiteMembership(siteId, memberBody);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.status === 409) {
|
if (error.status === 409) {
|
||||||
return this.updateSiteMember(siteId, userId, role);
|
return this.updateSiteMember(siteId, userId, role);
|
||||||
@ -125,7 +125,7 @@ export class SitesApi {
|
|||||||
} as SiteMembershipRequestBodyCreate;
|
} as SiteMembershipRequestBodyCreate;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.apiService.sites.createSiteMembershipRequestForPerson(personId, body);
|
return this.apiService.sites.createSiteMembershipRequestForPerson(personId, body);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`SitesApi createSiteMembershipRequestForPerson : catch : `, error);
|
console.error(`SitesApi createSiteMembershipRequestForPerson : catch : `, error);
|
||||||
return null;
|
return null;
|
||||||
@ -134,7 +134,7 @@ export class SitesApi {
|
|||||||
|
|
||||||
async approveSiteMembershipRequest(siteId: string, inviteeId: string): Promise<SiteMemberEntry> {
|
async approveSiteMembershipRequest(siteId: string, inviteeId: string): Promise<SiteMemberEntry> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.sites.approveSiteMembershipRequest(siteId, inviteeId);
|
return this.apiService.sites.approveSiteMembershipRequest(siteId, inviteeId);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`SitesApi approveSiteMembershipRequest : catch : `, error);
|
console.error(`SitesApi approveSiteMembershipRequest : catch : `, error);
|
||||||
return null;
|
return null;
|
||||||
@ -153,7 +153,7 @@ export class SitesApi {
|
|||||||
|
|
||||||
async deleteSiteMember(siteId: string, userId: string) {
|
async deleteSiteMember(siteId: string, userId: string) {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.sites.deleteSiteMembership(siteId, userId);
|
return this.apiService.sites.deleteSiteMembership(siteId, userId);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`SitesApi deleteSiteMember : catch : `, error);
|
console.error(`SitesApi deleteSiteMember : catch : `, error);
|
||||||
}
|
}
|
||||||
@ -161,7 +161,7 @@ export class SitesApi {
|
|||||||
|
|
||||||
async getSite(siteId: string): Promise<SiteEntry> {
|
async getSite(siteId: string): Promise<SiteEntry> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.sites.getSite(siteId);
|
return this.apiService.sites.getSite(siteId);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`SitesApi getSite : catch : `, error);
|
console.error(`SitesApi getSite : catch : `, error);
|
||||||
return null;
|
return null;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { TagBody, TagEntry } from '@alfresco/js-api';
|
import { TagBody, TagEntry } from '@alfresco/js-api';
|
||||||
@ -40,7 +40,7 @@ export class TagsApi {
|
|||||||
|
|
||||||
async createTags(tags: TagBody[]): Promise<TagEntry[]> {
|
async createTags(tags: TagBody[]): Promise<TagEntry[]> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.tagsApi.createTags(tags);
|
return this.apiService.tagsApi.createTags(tags);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
return null;
|
return null;
|
||||||
@ -49,7 +49,7 @@ export class TagsApi {
|
|||||||
|
|
||||||
async assignTagToNode(nodeId: string, tag: TagBody): Promise<TagEntry> {
|
async assignTagToNode(nodeId: string, tag: TagBody): Promise<TagEntry> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.tagsApi.assignTagToNode(nodeId, tag);
|
return this.apiService.tagsApi.assignTagToNode(nodeId, tag);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
return null;
|
return null;
|
||||||
@ -58,7 +58,7 @@ export class TagsApi {
|
|||||||
|
|
||||||
async deleteTag(tagId: string): Promise<void> {
|
async deleteTag(tagId: string): Promise<void> {
|
||||||
try {
|
try {
|
||||||
return await this.apiService.tagsApi.deleteTag(tagId);
|
return this.apiService.tagsApi.deleteTag(tagId);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ApiClientFactory } from './api-client-factory';
|
import { ApiClientFactory } from './api-client-factory';
|
||||||
@ -33,25 +33,24 @@ export class TrashcanApi {
|
|||||||
return classObj;
|
return classObj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Empties the trashcan. Uses multiple batches 1000 nodes each.
|
* Empties the trashcan. Uses multiple batches 1000 nodes each.
|
||||||
*/
|
*/
|
||||||
async emptyTrashcan(): Promise<void> {
|
async emptyTrashcan(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const nodes = await this.apiService.trashCan.listDeletedNodes({
|
const nodes = await this.apiService.trashCan.listDeletedNodes({
|
||||||
maxItems: 1000
|
maxItems: 1000
|
||||||
});
|
});
|
||||||
|
|
||||||
if (nodes?.list?.entries?.length > 0) {
|
if (nodes?.list?.entries?.length > 0) {
|
||||||
const ids = nodes.list.entries.map((entries) => entries.entry.id);
|
const ids = nodes.list.entries.map((entries) => entries.entry.id);
|
||||||
|
|
||||||
for (const nodeId of ids) {
|
for (const nodeId of ids) {
|
||||||
await this.apiService.trashCan.deleteDeletedNode(nodeId);
|
await this.apiService.trashCan.deleteDeletedNode(nodeId);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
|
||||||
console.error('User Actions - emptyTrashcan failed : ', error);
|
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error('User Actions - emptyTrashcan failed : ', error);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,10 +42,13 @@ async function globalSetup(config: FullConfig<CustomConfig>) {
|
|||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
const loginPage = new LoginPage(page);
|
const loginPage = new LoginPage(page);
|
||||||
await page.goto(use.baseURL);
|
await page.goto(use.baseURL);
|
||||||
await loginPage.loginUser({ username: users[user].username, password: users[user].password }, {
|
await loginPage.loginUser(
|
||||||
withNavigation: false,
|
{ username: users[user].username, password: users[user].password },
|
||||||
waitForLoading: true
|
{
|
||||||
});
|
withNavigation: false,
|
||||||
|
waitForLoading: true
|
||||||
|
}
|
||||||
|
);
|
||||||
await page.context().storageState({ path: `${paths.userStates}/${user}UserState.json` });
|
await page.context().storageState({ path: `${paths.userStates}/${user}UserState.json` });
|
||||||
await browser.close();
|
await browser.close();
|
||||||
} else {
|
} else {
|
||||||
|
@ -56,7 +56,7 @@ export const getGlobalConfig: PlaywrightTestConfig = {
|
|||||||
actionTimeout: 0,
|
actionTimeout: 0,
|
||||||
/* Base URL to use in actions like `await page.goto('/')`. */
|
/* Base URL to use in actions like `await page.goto('/')`. */
|
||||||
baseURL: env.PLAYWRIGHT_E2E_HOST,
|
baseURL: env.PLAYWRIGHT_E2E_HOST,
|
||||||
headless: !!env.PLAYWRIGHT_HEADLESS ? (env.PLAYWRIGHT_HEADLESS === 'true') : !!env.CI,
|
headless: env.PLAYWRIGHT_HEADLESS === 'true' || !!env.CI,
|
||||||
ignoreHTTPSErrors: true,
|
ignoreHTTPSErrors: true,
|
||||||
bypassCSP: true,
|
bypassCSP: true,
|
||||||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
||||||
@ -77,5 +77,5 @@ export const getGlobalConfig: PlaywrightTestConfig = {
|
|||||||
...devices['Desktop Chrome']
|
...devices['Desktop Chrome']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
};
|
};
|
||||||
|
@ -1,9 +1,25 @@
|
|||||||
/*
|
/*!
|
||||||
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||||
*
|
*
|
||||||
* License rights for this program may be obtained from Hyland Software, Inc.
|
* Alfresco Example Content Application
|
||||||
* pursuant to a written agreement and any use of this program without such an
|
*
|
||||||
* agreement is prohibited.
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ReporterDescription } from '@playwright/test';
|
import { ReporterDescription } from '@playwright/test';
|
||||||
@ -36,6 +52,4 @@ export const getReportPortalConfig = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const getReporter = (): ReporterDescription[] =>
|
export const getReporter = (): ReporterDescription[] =>
|
||||||
env.CI
|
env.CI ? [['@reportportal/agent-js-playwright', getReportPortalConfig()], ['github']] : [['html']];
|
||||||
? [['@reportportal/agent-js-playwright', getReportPortalConfig()], ['github']]
|
|
||||||
: [['html']];
|
|
||||||
|
@ -67,8 +67,8 @@ export class AcaHeader extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async verifyToolbarPrimaryActions(expectedToolbarPrimary: string[]): Promise<void> {
|
async verifyToolbarPrimaryActions(expectedToolbarPrimary: string[]): Promise<void> {
|
||||||
let buttons = await this.page.$$('aca-toolbar button');
|
const buttons = await this.page.$$('aca-toolbar button');
|
||||||
let actualPrimaryActions: string[] = await Promise.all(
|
const actualPrimaryActions: string[] = await Promise.all(
|
||||||
buttons.map(async (button) => {
|
buttons.map(async (button) => {
|
||||||
const title = await button.getAttribute('title');
|
const title = await button.getAttribute('title');
|
||||||
return title || '';
|
return title || '';
|
||||||
|
@ -52,7 +52,8 @@ export enum ActionType {
|
|||||||
export class ActionsDropdownComponent extends BaseComponent {
|
export class ActionsDropdownComponent extends BaseComponent {
|
||||||
private static rootElement = 'aca-edit-rule-dialog aca-rule-action-list';
|
private static rootElement = 'aca-edit-rule-dialog aca-rule-action-list';
|
||||||
|
|
||||||
private getOptionLocator = (optionName: string): Locator => this.page.locator('.mat-mdc-select-panel .mdc-list-item__primary-text', { hasText: optionName }).first();
|
private getOptionLocator = (optionName: string): Locator =>
|
||||||
|
this.page.locator('.mat-mdc-select-panel .mdc-list-item__primary-text', { hasText: optionName }).first();
|
||||||
private ruleActionLocator = this.getChild('aca-rule-action');
|
private ruleActionLocator = this.getChild('aca-rule-action');
|
||||||
private addActionButtonLocator = this.getChild('[data-automation-id="rule-action-list-add-action-button"]');
|
private addActionButtonLocator = this.getChild('[data-automation-id="rule-action-list-add-action-button"]');
|
||||||
private actionDropdownLocator = this.getChild('[data-automation-id="rule-action-select"]');
|
private actionDropdownLocator = this.getChild('[data-automation-id="rule-action-select"]');
|
||||||
|
@ -32,7 +32,8 @@ export class AdfInfoDrawerComponent extends BaseComponent {
|
|||||||
super(page, AdfInfoDrawerComponent.rootElement);
|
super(page, AdfInfoDrawerComponent.rootElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getNameField = (labelText: string) => this.getChild(`[data-automation-id="library-name-properties-wrapper"] input[placeholder='${labelText}']`);
|
public getNameField = (labelText: string) =>
|
||||||
|
this.getChild(`[data-automation-id="library-name-properties-wrapper"] input[placeholder='${labelText}']`);
|
||||||
public getIdField = (labelText: string) => this.getChild(`[data-automation-id="library-id-properties-wrapper"] input[placeholder='${labelText}']`);
|
public getIdField = (labelText: string) => this.getChild(`[data-automation-id="library-id-properties-wrapper"] input[placeholder='${labelText}']`);
|
||||||
public getVisibilityField = (labelText: string) =>
|
public getVisibilityField = (labelText: string) =>
|
||||||
this.getChild(`[data-automation-id="library-visibility-properties-wrapper"] mat-select[ng-reflect-placeholder='${labelText}']`);
|
this.getChild(`[data-automation-id="library-visibility-properties-wrapper"] mat-select[ng-reflect-placeholder='${labelText}']`);
|
||||||
@ -66,7 +67,7 @@ export class AdfInfoDrawerComponent extends BaseComponent {
|
|||||||
async checkCommentsHeaderCount(): Promise<number> {
|
async checkCommentsHeaderCount(): Promise<number> {
|
||||||
const commentsCountTextContent = await this.commentsHeader.textContent();
|
const commentsCountTextContent = await this.commentsHeader.textContent();
|
||||||
const commentsCountString = commentsCountTextContent.match(/\d+/g)[0];
|
const commentsCountString = commentsCountTextContent.match(/\d+/g)[0];
|
||||||
return parseInt(commentsCountString);
|
return parseInt(commentsCountString, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
async verifyCommentsCountFromList(expectedNumber: number): Promise<void> {
|
async verifyCommentsCountFromList(expectedNumber: number): Promise<void> {
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { BaseComponent } from '.././base.component';
|
import { BaseComponent } from '.././base.component';
|
||||||
|
@ -56,8 +56,8 @@ export class DataTableComponent extends BaseComponent {
|
|||||||
sitesName = this.page.locator('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="Name"]');
|
sitesName = this.page.locator('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="Name"]');
|
||||||
sitesRole = this.page.locator('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="My Role"]');
|
sitesRole = this.page.locator('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="My Role"]');
|
||||||
lockOwner = this.page.locator('.aca-locked-by--name');
|
lockOwner = this.page.locator('.aca-locked-by--name');
|
||||||
uncheckedChecbox = this.page.locator('.mat-mdc-checkbox');
|
uncheckedCheckbox = this.page.locator('.mat-mdc-checkbox');
|
||||||
checkedChecbox = this.page.locator('.mat-mdc-checkbox-checked');
|
checkedCheckbox = this.page.locator('.mat-mdc-checkbox-checked');
|
||||||
|
|
||||||
/** Locator for row (or rows) */
|
/** Locator for row (or rows) */
|
||||||
getRowLocator = this.page.getByRole('rowgroup').nth(1).locator('adf-datatable-row');
|
getRowLocator = this.page.getByRole('rowgroup').nth(1).locator('adf-datatable-row');
|
||||||
@ -244,17 +244,17 @@ export class DataTableComponent extends BaseComponent {
|
|||||||
for (const name of names) {
|
for (const name of names) {
|
||||||
const isSelected = await this.isRowSelected(name);
|
const isSelected = await this.isRowSelected(name);
|
||||||
if (!isSelected) {
|
if (!isSelected) {
|
||||||
let row = this.getRowByName(name);
|
const row = this.getRowByName(name);
|
||||||
await row.hover();
|
await row.hover();
|
||||||
await row.locator(this.uncheckedChecbox).click();
|
await row.locator(this.uncheckedCheckbox).click();
|
||||||
await row.locator(this.checkedChecbox).waitFor({ state: 'attached' });
|
await row.locator(this.checkedCheckbox).waitFor({ state: 'attached' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async isRowSelected(itemName: string): Promise<boolean> {
|
async isRowSelected(itemName: string): Promise<boolean> {
|
||||||
const row = this.getRowByName(itemName);
|
const row = this.getRowByName(itemName);
|
||||||
return await row.locator(this.checkedChecbox).isVisible();
|
return row.locator(this.checkedCheckbox).isVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
async getColumnHeaders(): Promise<Array<string>> {
|
async getColumnHeaders(): Promise<Array<string>> {
|
||||||
@ -341,7 +341,7 @@ export class DataTableComponent extends BaseComponent {
|
|||||||
*/
|
*/
|
||||||
async getSitesNameAndVisibility(): Promise<{ [siteName: string]: string }> {
|
async getSitesNameAndVisibility(): Promise<{ [siteName: string]: string }> {
|
||||||
const rowsCount = await this.sitesName.count();
|
const rowsCount = await this.sitesName.count();
|
||||||
let sitesInfo: { [siteName: string]: string } = {};
|
const sitesInfo: { [siteName: string]: string } = {};
|
||||||
for (let i = 0; i < rowsCount; i++) {
|
for (let i = 0; i < rowsCount; i++) {
|
||||||
let siteVisibilityText = await this.sitesVisibility.nth(i).textContent();
|
let siteVisibilityText = await this.sitesVisibility.nth(i).textContent();
|
||||||
let siteNameText = await this.sitesName.nth(i).textContent();
|
let siteNameText = await this.sitesName.nth(i).textContent();
|
||||||
@ -359,7 +359,7 @@ export class DataTableComponent extends BaseComponent {
|
|||||||
*/
|
*/
|
||||||
async getSitesNameAndRole(): Promise<{ [siteName: string]: string }> {
|
async getSitesNameAndRole(): Promise<{ [siteName: string]: string }> {
|
||||||
const rowsCount = await this.sitesName.count();
|
const rowsCount = await this.sitesName.count();
|
||||||
let sitesInfo: { [siteName: string]: string } = {};
|
const sitesInfo: { [siteName: string]: string } = {};
|
||||||
for (let i = 0; i < rowsCount; i++) {
|
for (let i = 0; i < rowsCount; i++) {
|
||||||
let siteNameText = await this.sitesName.nth(i).textContent();
|
let siteNameText = await this.sitesName.nth(i).textContent();
|
||||||
let siteRoleText = await this.sitesRole.nth(i).textContent();
|
let siteRoleText = await this.sitesRole.nth(i).textContent();
|
||||||
|
@ -56,13 +56,13 @@ export class MatMenuComponent extends BaseComponent {
|
|||||||
async isMenuItemVisible(menuItem: string): Promise<boolean> {
|
async isMenuItemVisible(menuItem: string): Promise<boolean> {
|
||||||
const menuElement = this.getButtonByText(menuItem);
|
const menuElement = this.getButtonByText(menuItem);
|
||||||
await menuElement.waitFor({ state: 'attached' });
|
await menuElement.waitFor({ state: 'attached' });
|
||||||
return await menuElement.isVisible();
|
return menuElement.isVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
async verifyActualMoreActions(expectedToolbarMore: string[]): Promise<void> {
|
async verifyActualMoreActions(expectedToolbarMore: string[]): Promise<void> {
|
||||||
await this.page.locator('.mat-mdc-menu-content').waitFor({ state: 'attached' });
|
await this.page.locator('.mat-mdc-menu-content').waitFor({ state: 'attached' });
|
||||||
let menus = await this.page.$$('.mat-mdc-menu-content .mat-mdc-menu-item');
|
const menus = await this.page.$$('.mat-mdc-menu-content .mat-mdc-menu-item');
|
||||||
let actualMoreActions: string[] = await Promise.all(
|
const actualMoreActions: string[] = await Promise.all(
|
||||||
menus.map(async (button) => {
|
menus.map(async (button) => {
|
||||||
const title = await (await button.$('.mdc-list-item__primary-text span')).innerText();
|
const title = await (await button.$('.mdc-list-item__primary-text span')).innerText();
|
||||||
return title || '';
|
return title || '';
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Page } from '@playwright/test';
|
import { Page } from '@playwright/test';
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Page } from '@playwright/test';
|
import { Page } from '@playwright/test';
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
/*!
|
/*!
|
||||||
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||||
*
|
*
|
||||||
* Alfresco Example Content Application
|
* Alfresco Example Content Application
|
||||||
*
|
*
|
||||||
* This file is part of the 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
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
* the paid license agreement will prevail. Otherwise, the software is
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
* provided under the following open source license terms:
|
* provided under the following open source license terms:
|
||||||
*
|
*
|
||||||
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
* 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
|
* 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
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
* 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
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { BaseComponent } from '../base.component';
|
import { BaseComponent } from '../base.component';
|
||||||
import { Page } from '@playwright/test';
|
import { Page } from '@playwright/test';
|
||||||
@ -49,10 +49,14 @@ export class AdfFolderDialogComponent extends BaseComponent {
|
|||||||
* @param titleInput input for Title field
|
* @param titleInput input for Title field
|
||||||
* @param descriptionInput input for Description field
|
* @param descriptionInput input for Description field
|
||||||
*/
|
*/
|
||||||
async createNewFolderDialog(nameInput: string, titleInput?: string, descriptionInput?: string): Promise<void> {
|
async createNewFolderDialog(nameInput: string, titleInput?: string, descriptionInput?: string): Promise<void> {
|
||||||
await this.folderNameInputLocator.fill(nameInput);
|
await this.folderNameInputLocator.fill(nameInput);
|
||||||
if (titleInput) { await this.folderTitleInput.fill(titleInput); }
|
if (titleInput) {
|
||||||
if (descriptionInput) { await this.folderDescriptionInput.fill(descriptionInput); }
|
await this.folderTitleInput.fill(titleInput);
|
||||||
await this.createButton.click();
|
}
|
||||||
}
|
if (descriptionInput) {
|
||||||
|
await this.folderDescriptionInput.fill(descriptionInput);
|
||||||
|
}
|
||||||
|
await this.createButton.click();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
/*!
|
/*!
|
||||||
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||||
*
|
*
|
||||||
* Alfresco Example Content Application
|
* Alfresco Example Content Application
|
||||||
*
|
*
|
||||||
* This file is part of the 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
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
* the paid license agreement will prevail. Otherwise, the software is
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
* provided under the following open source license terms:
|
* provided under the following open source license terms:
|
||||||
*
|
*
|
||||||
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
* 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
|
* 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
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
* 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
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { timeouts } from '../../../utils';
|
import { timeouts } from '../../../utils';
|
||||||
import { BaseComponent } from '../base.component';
|
import { BaseComponent } from '../base.component';
|
||||||
@ -39,9 +39,9 @@ export class AdfLibraryDialogComponent extends BaseComponent {
|
|||||||
public getLabelText = (text: string) => this.getChild('label', { hasText: text });
|
public getLabelText = (text: string) => this.getChild('label', { hasText: text });
|
||||||
public getRequiredMarker = (text: string) => this.getLabelText(text).locator('.mat-mdc-form-field-required-marker');
|
public getRequiredMarker = (text: string) => this.getLabelText(text).locator('.mat-mdc-form-field-required-marker');
|
||||||
public getDialogTitle = (text: string) => this.getChild('.mat-mdc-dialog-title', { hasText: text });
|
public getDialogTitle = (text: string) => this.getChild('.mat-mdc-dialog-title', { hasText: text });
|
||||||
public getErrorByText = (text: string): Locator => this.page.locator('mat-error', {hasText: text});
|
public getErrorByText = (text: string): Locator => this.page.locator('mat-error', { hasText: text });
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is used when we want to fill in Create Library Dialog and choose Create button
|
* This method is used when we want to fill in Create Library Dialog and choose Create button
|
||||||
*
|
*
|
||||||
* @param nameInput input for the Name field
|
* @param nameInput input for the Name field
|
||||||
@ -49,18 +49,22 @@ export class AdfLibraryDialogComponent extends BaseComponent {
|
|||||||
* @param descriptionInput input for Description field
|
* @param descriptionInput input for Description field
|
||||||
* @param visibility visibility of the library
|
* @param visibility visibility of the library
|
||||||
*/
|
*/
|
||||||
async createLibraryWithNameAndId(nameInput: string, libraryIdInput: string, descriptionInput?: string, visibility?: string): Promise<void> {
|
async createLibraryWithNameAndId(nameInput: string, libraryIdInput: string, descriptionInput?: string, visibility?: string): Promise<void> {
|
||||||
await this.getLabelText('Name').fill(nameInput);
|
await this.getLabelText('Name').fill(nameInput);
|
||||||
await this.getLabelText('Library ID').clear();
|
await this.getLabelText('Library ID').clear();
|
||||||
await this.getLabelText('Library ID').fill(libraryIdInput);
|
await this.getLabelText('Library ID').fill(libraryIdInput);
|
||||||
if (descriptionInput) { await this.getLabelText('Description').fill(descriptionInput); }
|
if (descriptionInput) {
|
||||||
if (visibility) { await this.getLabelText(visibility).click(); }
|
await this.getLabelText('Description').fill(descriptionInput);
|
||||||
await this.createButton.click();
|
|
||||||
await this.spinnerWaitForReload();
|
|
||||||
}
|
}
|
||||||
|
if (visibility) {
|
||||||
|
await this.getLabelText(visibility).click();
|
||||||
|
}
|
||||||
|
await this.createButton.click();
|
||||||
|
await this.spinnerWaitForReload();
|
||||||
|
}
|
||||||
|
|
||||||
async isErrorMessageDisplayed(errorText: string): Promise<boolean> {
|
async isErrorMessageDisplayed(errorText: string): Promise<boolean> {
|
||||||
await this.getErrorByText(errorText).waitFor({ state: 'visible', timeout: timeouts.large });
|
await this.getErrorByText(errorText).waitFor({ state: 'visible', timeout: timeouts.large });
|
||||||
return await this.getErrorByText(errorText).isVisible();
|
return this.getErrorByText(errorText).isVisible();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Locator, Page, expect } from '@playwright/test';
|
import { Locator, Page, expect } from '@playwright/test';
|
||||||
@ -36,7 +36,8 @@ export class ContentNodeSelectorDialog extends BaseComponent {
|
|||||||
public actionButton = this.getChild('[data-automation-id="content-node-selector-actions-choose"]');
|
public actionButton = this.getChild('[data-automation-id="content-node-selector-actions-choose"]');
|
||||||
public locationDropDown = this.getChild('[id="site-dropdown-container"] mat-form-field');
|
public locationDropDown = this.getChild('[id="site-dropdown-container"] mat-form-field');
|
||||||
private selectedRow = this.getChild('.adf-is-selected');
|
private selectedRow = this.getChild('.adf-is-selected');
|
||||||
getOptionLocator = (optionName: string): Locator => this.page.locator('.mat-mdc-select-panel .mdc-list-item__primary-text', { hasText: optionName });
|
getOptionLocator = (optionName: string): Locator =>
|
||||||
|
this.page.locator('.mat-mdc-select-panel .mdc-list-item__primary-text', { hasText: optionName });
|
||||||
private getRowByName = (name: string | number): Locator => this.getChild(`adf-datatable-row`, { hasText: name.toString() });
|
private getRowByName = (name: string | number): Locator => this.getChild(`adf-datatable-row`, { hasText: name.toString() });
|
||||||
getDialogTitle = (text: string) => this.getChild('[data-automation-id="content-node-selector-title"]', { hasText: text });
|
getDialogTitle = (text: string) => this.getChild('[data-automation-id="content-node-selector-title"]', { hasText: text });
|
||||||
getBreadcrumb = (text: string) => this.getChild('[data-automation-id="current-folder"]', { hasText: text });
|
getBreadcrumb = (text: string) => this.getChild('[data-automation-id="current-folder"]', { hasText: text });
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Locator, Page } from '@playwright/test';
|
import { Locator, Page } from '@playwright/test';
|
||||||
@ -37,21 +37,24 @@ export class CreateFromTemplateDialogComponent extends BaseComponent {
|
|||||||
createButton = this.getChild('[data-automation-id="create-from-template-dialog-create-button"]');
|
createButton = this.getChild('[data-automation-id="create-from-template-dialog-create-button"]');
|
||||||
getDialogTitle = (text: string) => this.getChild('.mat-dialog-title', { hasText: text });
|
getDialogTitle = (text: string) => this.getChild('.mat-dialog-title', { hasText: text });
|
||||||
getDialogLabel = (text: string) => this.getChild('label', { hasText: text });
|
getDialogLabel = (text: string) => this.getChild('label', { hasText: text });
|
||||||
getErrorByText = (text: string): Locator => this.page.locator('mat-error', {hasText: text});
|
getErrorByText = (text: string): Locator => this.page.locator('mat-error', { hasText: text });
|
||||||
|
|
||||||
|
|
||||||
async isErrorMessageDisplayed(errorText: string): Promise<boolean> {
|
async isErrorMessageDisplayed(errorText: string): Promise<boolean> {
|
||||||
await this.getErrorByText(errorText).waitFor({ state: 'visible', timeout: timeouts.large });
|
await this.getErrorByText(errorText).waitFor({ state: 'visible', timeout: timeouts.large });
|
||||||
return await this.getErrorByText(errorText).isVisible();
|
return this.getErrorByText(errorText).isVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is used when we want to fill in Create new folder/document/file from template dialog and choose Create button
|
* This method is used when we want to fill in Create new folder/document/file from template dialog and choose Create button
|
||||||
*/
|
*/
|
||||||
async createFromTemplateAction( nameInput: string, titleInput?: string, descriptionInput?: string): Promise<void> {
|
async createFromTemplateAction(nameInput: string, titleInput?: string, descriptionInput?: string): Promise<void> {
|
||||||
await this.getDialogLabel('Name *').fill(nameInput);
|
await this.getDialogLabel('Name *').fill(nameInput);
|
||||||
if (titleInput) { await this.getDialogLabel('Title').fill(titleInput); }
|
if (titleInput) {
|
||||||
if (descriptionInput) { await this.getDialogLabel('Description').fill(descriptionInput); }
|
await this.getDialogLabel('Title').fill(titleInput);
|
||||||
await this.createButton.click();
|
|
||||||
}
|
}
|
||||||
|
if (descriptionInput) {
|
||||||
|
await this.getDialogLabel('Description').fill(descriptionInput);
|
||||||
|
}
|
||||||
|
await this.createButton.click();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Page } from '@playwright/test';
|
import { Page } from '@playwright/test';
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Page } from '@playwright/test';
|
import { Page } from '@playwright/test';
|
||||||
@ -39,4 +39,4 @@ export class EditDialog extends BaseComponent {
|
|||||||
constructor(page: Page) {
|
constructor(page: Page) {
|
||||||
super(page, EditDialog.rootElement);
|
super(page, EditDialog.rootElement);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Locator, Page, expect } from '@playwright/test';
|
import { Locator, Page, expect } from '@playwright/test';
|
||||||
@ -35,7 +35,8 @@ export class LinkRulesDialog extends BaseComponent {
|
|||||||
cancelButton = this.getChild('[data-automation-id="content-node-selector-actions-cancel"]');
|
cancelButton = this.getChild('[data-automation-id="content-node-selector-actions-cancel"]');
|
||||||
selectFolderButton = this.getChild('button', { hasText: ' Select folder ' });
|
selectFolderButton = this.getChild('button', { hasText: ' Select folder ' });
|
||||||
emptyLinkRules = this.getChild('.adf-empty-content__title');
|
emptyLinkRules = this.getChild('.adf-empty-content__title');
|
||||||
getOptionLocator = (optionName: string): Locator => this.page.locator('.mat-mdc-select-panel .mdc-list-item__primary-text', { hasText: optionName });
|
getOptionLocator = (optionName: string): Locator =>
|
||||||
|
this.page.locator('.mat-mdc-select-panel .mdc-list-item__primary-text', { hasText: optionName });
|
||||||
private getRowByName = (name: string | number): Locator => this.getChild(`adf-datatable-row`, { hasText: name.toString() });
|
private getRowByName = (name: string | number): Locator => this.getChild(`adf-datatable-row`, { hasText: name.toString() });
|
||||||
getDialogTitle = (text: string) => this.getChild('[data-automation-id="content-node-selector-title"]', { hasText: text });
|
getDialogTitle = (text: string) => this.getChild('[data-automation-id="content-node-selector-title"]', { hasText: text });
|
||||||
getBreadcrumb = (text: string) => this.getChild('[data-automation-id="current-folder"]', { hasText: text });
|
getBreadcrumb = (text: string) => this.getChild('[data-automation-id="current-folder"]', { hasText: text });
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Page } from '@playwright/test';
|
import { Page } from '@playwright/test';
|
||||||
|
@ -50,24 +50,24 @@ export class PasswordOverlayDialogComponent extends BaseComponent {
|
|||||||
|
|
||||||
async isDialogOpen(): Promise<boolean> {
|
async isDialogOpen(): Promise<boolean> {
|
||||||
await this.waitForDialogToOpen();
|
await this.waitForDialogToOpen();
|
||||||
return await this.passwordInput.isVisible();
|
return this.passwordInput.isVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
async isCloseVisible(): Promise<boolean> {
|
async isCloseVisible(): Promise<boolean> {
|
||||||
return await this.closeButton.isVisible();
|
return this.closeButton.isVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
async isSubmitHidden(): Promise<boolean> {
|
async isSubmitHidden(): Promise<boolean> {
|
||||||
return await this.submitButton.isHidden();
|
return this.submitButton.isHidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
async isPasswordInputDisplayed(): Promise<boolean> {
|
async isPasswordInputDisplayed(): Promise<boolean> {
|
||||||
return await this.passwordInput.isVisible();
|
return this.passwordInput.isVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
async isErrorDisplayed(): Promise<boolean> {
|
async isErrorDisplayed(): Promise<boolean> {
|
||||||
await this.errorMessage.waitFor({ state: 'visible', timeout: timeouts.short });
|
await this.errorMessage.waitFor({ state: 'visible', timeout: timeouts.short });
|
||||||
return await this.errorMessage.isVisible();
|
return this.errorMessage.isVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
async getErrorMessage(): Promise<string> {
|
async getErrorMessage(): Promise<string> {
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ElementHandle, Locator, Page } from '@playwright/test';
|
import { ElementHandle, Locator, Page } from '@playwright/test';
|
||||||
@ -51,19 +51,19 @@ export class ShareDialogComponent extends BaseComponent {
|
|||||||
getErrorByText = (text: string): Locator => this.page.locator('mat-error', { hasText: text });
|
getErrorByText = (text: string): Locator => this.page.locator('mat-error', { hasText: text });
|
||||||
|
|
||||||
async getLabels(): Promise<Array<string>> {
|
async getLabels(): Promise<Array<string>> {
|
||||||
return await this.page.$$eval('.adf-share-link__label', (elements) => elements.map((element) => element.textContent));
|
return this.page.$$eval('.adf-share-link__label', (elements) => elements.map((element) => element.textContent));
|
||||||
}
|
}
|
||||||
|
|
||||||
async getDialogTitle(): Promise<string> {
|
async getDialogTitle(): Promise<string> {
|
||||||
return await this.dialogTitle.innerText();
|
return this.dialogTitle.innerText();
|
||||||
}
|
}
|
||||||
|
|
||||||
async getInfoText(): Promise<string> {
|
async getInfoText(): Promise<string> {
|
||||||
return await this.infoText.innerText();
|
return this.infoText.innerText();
|
||||||
}
|
}
|
||||||
|
|
||||||
async getLinkUrl(): Promise<string> {
|
async getLinkUrl(): Promise<string> {
|
||||||
return await this.url.first().inputValue();
|
return this.url.first().inputValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
async isUrlReadOnly(): Promise<boolean> {
|
async isUrlReadOnly(): Promise<boolean> {
|
||||||
@ -72,7 +72,7 @@ export class ShareDialogComponent extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async isCloseEnabled(): Promise<boolean> {
|
async isCloseEnabled(): Promise<boolean> {
|
||||||
return await this.closeButton.isEnabled();
|
return this.closeButton.isEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
async clickClose(): Promise<void> {
|
async clickClose(): Promise<void> {
|
||||||
@ -96,6 +96,6 @@ export class ShareDialogComponent extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getExpireDate(): Promise<string> {
|
async getExpireDate(): Promise<string> {
|
||||||
return await this.expireInput.inputValue();
|
return this.expireInput.inputValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Page } from '@playwright/test';
|
import { Page } from '@playwright/test';
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Page } from '@playwright/test';
|
import { Page } from '@playwright/test';
|
||||||
|
@ -54,14 +54,16 @@ export class ManageRulesDialogComponent extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async deleteActions(noActions: number): Promise<void> {
|
async deleteActions(noActions: number): Promise<void> {
|
||||||
for(let i = 0; i < noActions; i++) {
|
for (let i = 0; i < noActions; i++) {
|
||||||
await this.actionsEllipsisButtons.first().click();
|
await this.actionsEllipsisButtons.first().click();
|
||||||
await this.actionsEllipsisDelete.click();
|
await this.actionsEllipsisDelete.click();
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async deleteConditions(noConditions: number): Promise<void> {
|
async deleteConditions(noConditions: number): Promise<void> {
|
||||||
for(let i = 0; i < noConditions; i++) {
|
for (let i = 0; i < noConditions; i++) {
|
||||||
await this.conditionsEllipsisButtons.first().click();
|
await this.conditionsEllipsisButtons.first().click();
|
||||||
await this.conditionsEllipsisDelete.click();
|
await this.conditionsEllipsisDelete.click();
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ export class ManageRules extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async checkIfRuleListEmpty(): Promise<boolean> {
|
async checkIfRuleListEmpty(): Promise<boolean> {
|
||||||
return await this.rulesEmptyListTitle.isVisible();
|
return this.rulesEmptyListTitle.isVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
async checkIfRuleIsOnTheList(ruleName: string): Promise<void> {
|
async checkIfRuleIsOnTheList(ruleName: string): Promise<void> {
|
||||||
@ -61,7 +61,7 @@ export class ManageRules extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async countConditionsInGroup(): Promise<number> {
|
async countConditionsInGroup(): Promise<number> {
|
||||||
return await this.ruleConditionsInGroup.count();
|
return this.ruleConditionsInGroup.count();
|
||||||
}
|
}
|
||||||
|
|
||||||
async turnOffRuleToggle(): Promise<void> {
|
async turnOffRuleToggle(): Promise<void> {
|
||||||
|
@ -152,7 +152,7 @@ export class PaginationComponent extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getItemsCount(): Promise<number> {
|
async getItemsCount(): Promise<number> {
|
||||||
return await this.page.getByRole('menuitem').count();
|
return this.page.getByRole('menuitem').count();
|
||||||
}
|
}
|
||||||
|
|
||||||
async clickNthItem(nth: number): Promise<void> {
|
async clickNthItem(nth: number): Promise<void> {
|
||||||
|
@ -39,10 +39,10 @@ export class SearchFilters extends BaseComponent {
|
|||||||
public locationFilter = this.page.locator('adf-search-widget-chip', { hasText: 'Location' });
|
public locationFilter = this.page.locator('adf-search-widget-chip', { hasText: 'Location' });
|
||||||
public tagsFilter = this.page.locator('adf-search-widget-chip', { hasText: 'Tags' });
|
public tagsFilter = this.page.locator('adf-search-widget-chip', { hasText: 'Tags' });
|
||||||
public categoriesFilter = this.page.locator('adf-search-widget-chip', { hasText: 'Categories' });
|
public categoriesFilter = this.page.locator('adf-search-widget-chip', { hasText: 'Categories' });
|
||||||
public resetButton = this.page.locator('button' , { hasText: 'Reset' });
|
public resetButton = this.page.locator('button', { hasText: 'Reset' });
|
||||||
public menuCardTitle = this.page.locator('.adf-search-filter-title');
|
public menuCardTitle = this.page.locator('.adf-search-filter-title');
|
||||||
public menuCardClose = this.page.locator('.adf-search-filter-title-action');
|
public menuCardClose = this.page.locator('.adf-search-filter-title-action');
|
||||||
public menuCardClear = this.page.locator('#cancel-filter-button');
|
public menuCardClear = this.page.locator('#cancel-filter-button');
|
||||||
public menuCardApply = this.page.locator('#apply-filter-button');
|
public menuCardApply = this.page.locator('#apply-filter-button');
|
||||||
public dropdownOptions = this.page.locator(`mat-option`);
|
public dropdownOptions = this.page.locator(`mat-option`);
|
||||||
}
|
}
|
||||||
|
@ -89,17 +89,7 @@ export class SearchFiltersDate extends BaseComponent {
|
|||||||
* @param endDay end day for time-frame search. DD-MMMM-YY
|
* @param endDay end day for time-frame search. DD-MMMM-YY
|
||||||
*/
|
*/
|
||||||
async filterFilesByDate(params: FilterFilesByDateParams) {
|
async filterFilesByDate(params: FilterFilesByDateParams) {
|
||||||
const {
|
const { searchPage, filterType, dateFilterTab, searchPhrase, searchType, expectSearchResults, inTheLastInputValue, startDay, endDay } = params;
|
||||||
searchPage,
|
|
||||||
filterType,
|
|
||||||
dateFilterTab,
|
|
||||||
searchPhrase,
|
|
||||||
searchType,
|
|
||||||
expectSearchResults,
|
|
||||||
inTheLastInputValue,
|
|
||||||
startDay,
|
|
||||||
endDay
|
|
||||||
} = params;
|
|
||||||
|
|
||||||
await searchPage.searchWithin(searchPhrase, searchType);
|
await searchPage.searchWithin(searchPhrase, searchType);
|
||||||
await searchPage.searchFilters.dateFilter.click();
|
await searchPage.searchFilters.dateFilter.click();
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Page } from '@playwright/test';
|
import { Page } from '@playwright/test';
|
||||||
@ -58,15 +58,15 @@ export class SearchSortingPicker extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getSortByOptionsList(): Promise<string[]> {
|
async getSortByOptionsList(): Promise<string[]> {
|
||||||
let sortOptionsCount = await this.sortByList.count();
|
const sortOptionsCount = await this.sortByList.count();
|
||||||
let sortByOptions: string[] = [];
|
const sortByOptions: string[] = [];
|
||||||
for (let i = 1; i < sortOptionsCount; i++) {
|
for (let i = 1; i < sortOptionsCount; i++) {
|
||||||
let textContent = (await this.sortByList.nth(i).textContent()).trim();
|
const textContent = (await this.sortByList.nth(i).textContent()).trim();
|
||||||
sortByOptions.push(textContent);
|
sortByOptions.push(textContent);
|
||||||
}
|
}
|
||||||
sortByOptions.sort((a, b) => a.localeCompare(b));
|
sortByOptions.sort((a, b) => a.localeCompare(b));
|
||||||
return sortByOptions;
|
return sortByOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
async sortBy(option: SortByType, direction: SortByDirection): Promise<void> {
|
async sortBy(option: SortByType, direction: SortByDirection): Promise<void> {
|
||||||
await this.actionMenu.click();
|
await this.actionMenu.click();
|
||||||
@ -76,7 +76,7 @@ export class SearchSortingPicker extends BaseComponent {
|
|||||||
await this.clickSortByDropdown();
|
await this.clickSortByDropdown();
|
||||||
}
|
}
|
||||||
const elem = this.sortByList.getByText(option);
|
const elem = this.sortByList.getByText(option);
|
||||||
const optionId = await elem.locator("..").getAttribute('id');
|
const optionId = await elem.locator('..').getAttribute('id');
|
||||||
await elem.click();
|
await elem.click();
|
||||||
const directionSortElement = this.page.locator(`[id="${optionId}-${direction.toLocaleLowerCase()}"]`);
|
const directionSortElement = this.page.locator(`[id="${optionId}-${direction.toLocaleLowerCase()}"]`);
|
||||||
await directionSortElement.click();
|
await directionSortElement.click();
|
||||||
|
@ -45,7 +45,7 @@ export class SnackBarComponent extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getSnackBarActionText(): Promise<string> {
|
async getSnackBarActionText(): Promise<string> {
|
||||||
if (await this.actionButton.isVisible()){
|
if (await this.actionButton.isVisible()) {
|
||||||
return this.actionButton.textContent();
|
return this.actionButton.textContent();
|
||||||
} else {
|
} else {
|
||||||
return '';
|
return '';
|
||||||
|
@ -59,17 +59,17 @@ export class ViewerComponent extends BaseComponent {
|
|||||||
|
|
||||||
async isViewerOpened(): Promise<boolean> {
|
async isViewerOpened(): Promise<boolean> {
|
||||||
await this.waitForViewerToOpen();
|
await this.waitForViewerToOpen();
|
||||||
return await this.viewerLocator.isVisible();
|
return this.viewerLocator.isVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
async isCloseButtonDisplayed(): Promise<boolean> {
|
async isCloseButtonDisplayed(): Promise<boolean> {
|
||||||
await this.closeButtonLocator.waitFor({ state: 'visible', timeout: timeouts.normal });
|
await this.closeButtonLocator.waitFor({ state: 'visible', timeout: timeouts.normal });
|
||||||
return await this.closeButtonLocator.isEnabled({ timeout: timeouts.normal });
|
return this.closeButtonLocator.isEnabled({ timeout: timeouts.normal });
|
||||||
}
|
}
|
||||||
|
|
||||||
async isFileTitleDisplayed(): Promise<boolean> {
|
async isFileTitleDisplayed(): Promise<boolean> {
|
||||||
await this.fileTitleButtonLocator.waitFor({ state: 'visible', timeout: timeouts.normal });
|
await this.fileTitleButtonLocator.waitFor({ state: 'visible', timeout: timeouts.normal });
|
||||||
return await this.fileTitleButtonLocator.isVisible();
|
return this.fileTitleButtonLocator.isVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
async getFileTitle(): Promise<string> {
|
async getFileTitle(): Promise<string> {
|
||||||
@ -79,14 +79,14 @@ export class ViewerComponent extends BaseComponent {
|
|||||||
|
|
||||||
async getCloseButtonTooltip(): Promise<string> {
|
async getCloseButtonTooltip(): Promise<string> {
|
||||||
await this.closeButtonLocator.waitFor({ state: 'visible', timeout: timeouts.normal });
|
await this.closeButtonLocator.waitFor({ state: 'visible', timeout: timeouts.normal });
|
||||||
return await this.closeButtonLocator.getAttribute('title');
|
return this.closeButtonLocator.getAttribute('title');
|
||||||
}
|
}
|
||||||
|
|
||||||
async verifyViewerPrimaryActions(expectedToolbarPrimary: string[]): Promise<void> {
|
async verifyViewerPrimaryActions(expectedToolbarPrimary: string[]): Promise<void> {
|
||||||
const toRemove = ['Close', 'Previous File', 'Next File', 'View details'];
|
const toRemove = ['Close', 'Previous File', 'Next File', 'View details'];
|
||||||
const removeClosePreviousNextOldInfo = (actions: string[]): string[] => actions.filter((elem) => !toRemove.includes(elem));
|
const removeClosePreviousNextOldInfo = (actions: string[]): string[] => actions.filter((elem) => !toRemove.includes(elem));
|
||||||
|
|
||||||
let buttons = await this.page.$$('adf-viewer button');
|
const buttons = await this.page.$$('adf-viewer button');
|
||||||
let actualPrimaryActions: string[] = await Promise.all(
|
let actualPrimaryActions: string[] = await Promise.all(
|
||||||
buttons.map(async (button) => {
|
buttons.map(async (button) => {
|
||||||
const title = await button.getAttribute('title');
|
const title = await button.getAttribute('title');
|
||||||
|
@ -24,7 +24,15 @@
|
|||||||
|
|
||||||
import { Page } from '@playwright/test';
|
import { Page } from '@playwright/test';
|
||||||
import { BasePage } from './base.page';
|
import { BasePage } from './base.page';
|
||||||
import { DataTableComponent, MatMenuComponent, ViewerComponent, SidenavComponent, PaginationComponent, Breadcrumb, AdfInfoDrawerComponent } from '../components';
|
import {
|
||||||
|
DataTableComponent,
|
||||||
|
MatMenuComponent,
|
||||||
|
ViewerComponent,
|
||||||
|
SidenavComponent,
|
||||||
|
PaginationComponent,
|
||||||
|
Breadcrumb,
|
||||||
|
AdfInfoDrawerComponent
|
||||||
|
} from '../components';
|
||||||
import { AcaHeader } from '../components/aca-header.component';
|
import { AcaHeader } from '../components/aca-header.component';
|
||||||
import { AdfFolderDialogComponent, ViewerOverlayDialogComponent, ManageVersionsDialog } from '../components/dialogs';
|
import { AdfFolderDialogComponent, ViewerOverlayDialogComponent, ManageVersionsDialog } from '../components/dialogs';
|
||||||
|
|
||||||
|
@ -68,8 +68,8 @@ export class LoginPage extends BasePage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async verifyUserLogin(): Promise<void> {
|
async verifyUserLogin(): Promise<void> {
|
||||||
if (this.username.isVisible()) {
|
if (await this.username.isVisible()) {
|
||||||
await this.page.reload({ waitUntil:"load" });
|
await this.page.reload({ waitUntil: 'load' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,5 +45,4 @@ export class SharedPage extends BasePage {
|
|||||||
public breadcrumb = new Breadcrumb(this.page);
|
public breadcrumb = new Breadcrumb(this.page);
|
||||||
public infoDrawer = new AdfInfoDrawerComponent(this.page);
|
public infoDrawer = new AdfInfoDrawerComponent(this.page);
|
||||||
public manageVersionsDialog = new ManageVersionsDialog(this.page);
|
public manageVersionsDialog = new ManageVersionsDialog(this.page);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export type ApiResultPredicate<T> = (result: T) => boolean;
|
export type ApiResultPredicate<T> = (result: T) => boolean;
|
||||||
@ -40,7 +40,12 @@ export async function waitForApi<T>(apiCall: ApiCall<T>, predicate: ApiResultPre
|
|||||||
|
|
||||||
function retryCall(fn: () => Promise<any>, retry: number = 30, delay: number = 1000): Promise<string> {
|
function retryCall(fn: () => Promise<any>, retry: number = 30, delay: number = 1000): Promise<string> {
|
||||||
const pause = (duration) => new Promise((res) => setTimeout(res, duration));
|
const pause = (duration) => new Promise((res) => setTimeout(res, duration));
|
||||||
const run = (retries) => fn().catch((err) => (retries > 1 ? pause(delay).then(() => run(retries - 1)) : Promise.reject(new Error(`API call did not satisfy predicate: ${JSON.stringify(err)}`))));
|
const run = (retries) =>
|
||||||
|
fn().catch((err) =>
|
||||||
|
retries > 1
|
||||||
|
? pause(delay).then(() => run(retries - 1))
|
||||||
|
: Promise.reject(new Error(`API call did not satisfy predicate: ${JSON.stringify(err)}`))
|
||||||
|
);
|
||||||
|
|
||||||
return run(retry);
|
return run(retry);
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* GNU Lesser General Public License for more details.
|
* GNU Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const APP_ROUTES = {
|
export const APP_ROUTES = {
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export const errorStrings = {
|
export const errorStrings = {
|
||||||
|
|
||||||
errorMessageNotPresent: 'Error message is not displayed',
|
errorMessageNotPresent: 'Error message is not displayed',
|
||||||
nameIsRequiredError: 'Name is required',
|
nameIsRequiredError: 'Name is required',
|
||||||
nameWithSpecialCharactersError: `Name can't contain these characters * " < > \\ / ? : |`,
|
nameWithSpecialCharactersError: `Name can't contain these characters * " < > \\ / ? : |`,
|
||||||
@ -38,4 +37,4 @@ export const errorStrings = {
|
|||||||
folderNameCantContainTheseCharacters: `Folder name can't contain these characters`,
|
folderNameCantContainTheseCharacters: `Folder name can't contain these characters`,
|
||||||
folderNameCantContainOnlySpaces: `Folder name can't contain only spaces`,
|
folderNameCantContainOnlySpaces: `Folder name can't contain only spaces`,
|
||||||
thereIsAlreadyAFolderWithThisName: `There's already a folder with this name. Try a different name.`
|
thereIsAlreadyAFolderWithThisName: `There's already a folder with this name. Try a different name.`
|
||||||
}
|
};
|
||||||
|
@ -1,20 +1,36 @@
|
|||||||
/*
|
/*!
|
||||||
* Copyright © 2005 - 2021 Alfresco Software, Ltd. All rights reserved.
|
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||||
*
|
*
|
||||||
* License rights for this program may be obtained from Alfresco Software, Ltd.
|
* Alfresco Example Content Application
|
||||||
* pursuant to a written agreement and any use of this program without such an
|
*
|
||||||
* agreement is prohibited.
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const getExcludedTestsRegExpArray = (excludedJson: any, projectName: string) => {
|
export const getExcludedTestsRegExpArray = (excludedJson: any, projectName: string) => {
|
||||||
const prefix = `[ 🎭 Playwright Excludes - ${projectName} ]`;
|
const prefix = `[ 🎭 Playwright Excludes - ${projectName} ]`;
|
||||||
const objectKeys = Object.keys(excludedJson);
|
const objectKeys = Object.keys(excludedJson);
|
||||||
|
|
||||||
if (!objectKeys.length) {
|
if (!objectKeys.length) {
|
||||||
console.info(`${prefix} ✅ No excluded tests 🎉 `);
|
console.info(`${prefix} ✅ No excluded tests 🎉 `);
|
||||||
} else {
|
} else {
|
||||||
console.warn(`${prefix} ❌ Tests excluded because of 🐛 : ${objectKeys}`);
|
console.warn(`${prefix} ❌ Tests excluded because of 🐛 : ${objectKeys}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return objectKeys.map((key) => new RegExp(key));
|
return objectKeys.map((key) => new RegExp(key));
|
||||||
};
|
};
|
||||||
|
@ -24,6 +24,6 @@
|
|||||||
|
|
||||||
export const libraryErrors = {
|
export const libraryErrors = {
|
||||||
libraryIdIsNotAvailable: "This Library ID isn't available. Try a different Library ID.",
|
libraryIdIsNotAvailable: "This Library ID isn't available. Try a different Library ID.",
|
||||||
libraryIdIsAlreadyUsed: "This Library ID is already used. Check the trashcan.",
|
libraryIdIsAlreadyUsed: 'This Library ID is already used. Check the trashcan.',
|
||||||
useNumbersAndLettersOnly: "Use numbers and letters only"
|
useNumbersAndLettersOnly: 'Use numbers and letters only'
|
||||||
}
|
};
|
||||||
|
@ -25,9 +25,9 @@
|
|||||||
const rootFolder = 'e2e-output';
|
const rootFolder = 'e2e-output';
|
||||||
|
|
||||||
export const paths = {
|
export const paths = {
|
||||||
rootFolder,
|
rootFolder,
|
||||||
allData: `${rootFolder}/playwright-data`,
|
allData: `${rootFolder}/playwright-data`,
|
||||||
files: `${rootFolder}/playwright-data/downloads`,
|
files: `${rootFolder}/playwright-data/downloads`,
|
||||||
report: `${rootFolder}/playwright-data/report`,
|
report: `${rootFolder}/playwright-data/report`,
|
||||||
userStates: `${rootFolder}/playwright-data/user-states`,
|
userStates: `${rootFolder}/playwright-data/user-states`
|
||||||
};
|
};
|
||||||
|
@ -22,13 +22,12 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import { paths } from '.';
|
import { paths } from '.';
|
||||||
import { users } from '../base-config';
|
import { users } from '../base-config';
|
||||||
|
|
||||||
export function getUserState(user: UserType) {
|
export function getUserState(user: UserType) {
|
||||||
return resolve(process.cwd(), `${paths.userStates}/${user}UserState.json`);
|
return resolve(process.cwd(), `${paths.userStates}/${user}UserState.json`);
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserType = keyof typeof users;
|
type UserType = keyof typeof users;
|
||||||
|
9
projects/aca-playwright-shared/tsconfig.lib.prod.json
Normal file
9
projects/aca-playwright-shared/tsconfig.lib.prod.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.lib.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"declarationMap": false
|
||||||
|
},
|
||||||
|
"angularCompilerOptions": {
|
||||||
|
"compilationMode": "partial"
|
||||||
|
}
|
||||||
|
}
|
@ -36,7 +36,6 @@
|
|||||||
"@alfresco/aca-shared/store": ["projects/aca-shared/store/src/public-api.ts"],
|
"@alfresco/aca-shared/store": ["projects/aca-shared/store/src/public-api.ts"],
|
||||||
"@alfresco/aca-shared/rules": ["projects/aca-shared/rules/src/public-api.ts"],
|
"@alfresco/aca-shared/rules": ["projects/aca-shared/rules/src/public-api.ts"],
|
||||||
"@alfresco/aca-content/ms-office": ["projects/aca-content/ms-office/src/public-api.ts"],
|
"@alfresco/aca-content/ms-office": ["projects/aca-content/ms-office/src/public-api.ts"],
|
||||||
"@alfresco/aca-testing-shared": ["projects/aca-testing-shared/src/index.ts"],
|
|
||||||
"@alfresco/aca-content/about": ["projects/aca-content/about/src/public-api.ts"],
|
"@alfresco/aca-content/about": ["projects/aca-content/about/src/public-api.ts"],
|
||||||
"@alfresco/aca-content/folder-rules": ["projects/aca-content/folder-rules/src/public-api.ts"],
|
"@alfresco/aca-content/folder-rules": ["projects/aca-content/folder-rules/src/public-api.ts"],
|
||||||
"@alfresco/aca-content": ["projects/aca-content/src/public-api.ts"],
|
"@alfresco/aca-content": ["projects/aca-content/src/public-api.ts"],
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
"@alfresco/aca-shared": ["projects/aca-shared/src/public-api.ts"],
|
"@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/rules": ["projects/aca-shared/rules/src/public-api.ts"],
|
||||||
"@alfresco/aca-shared/store": ["projects/aca-shared/store/src/public-api.ts"],
|
"@alfresco/aca-shared/store": ["projects/aca-shared/store/src/public-api.ts"],
|
||||||
"@alfresco/aca-testing-shared": ["projects/aca-testing-shared/src/index.ts"],
|
|
||||||
"@alfresco/playwright-shared": ["projects/aca-playwright-shared/src/index.ts"],
|
"@alfresco/playwright-shared": ["projects/aca-playwright-shared/src/index.ts"],
|
||||||
"package.json": ["package.json"]
|
"package.json": ["package.json"]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user