mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-6535]add e2e test suite for copy-move-actions (#3576)
* add e2e test suite for copy-action * code fix * [ACS-6457] Migrated unshare-file e2es to playwright (#3575) * [ACS-6457] Migrated unshare-file e2es to playwright * Removed only * [ACS-6457] Removed protractor file * Updated timeout * Updated timeout * Removed clickClose method * Addressed review comments * Addressed review comments * Created a separate test suit for share-actions * Remove only * rebase * code fix * code fix ---------
This commit is contained in:
@@ -43,7 +43,7 @@ export class FileActionsApi {
|
||||
|
||||
async uploadFile(fileLocation: string, fileName: string, parentFolderId: string): Promise<NodeEntry> {
|
||||
const file = fs.createReadStream(fileLocation);
|
||||
return this.apiService.upload.uploadFile(file, '', parentFolderId, null, {
|
||||
return await this.apiService.upload.uploadFile(file, '', parentFolderId, null, {
|
||||
name: fileName,
|
||||
nodeType: 'cm:content',
|
||||
renditions: 'doclib'
|
||||
@@ -149,7 +149,7 @@ export class FileActionsApi {
|
||||
};
|
||||
|
||||
try {
|
||||
return this.apiService.search.search(data);
|
||||
return await this.apiService.search.search(data);
|
||||
} catch (error) {
|
||||
Logger.error(`SearchApi queryNodesNames : catch : `, error);
|
||||
return new ResultSetPaging();
|
||||
|
@@ -130,7 +130,7 @@ export class NodesApi {
|
||||
|
||||
async renameNode(nodeId: string, newName: string): Promise<NodeEntry | null> {
|
||||
try {
|
||||
return this.apiService.nodes.updateNode(nodeId, { name: newName });
|
||||
return await this.apiService.nodes.updateNode(nodeId, { name: newName });
|
||||
} catch (error) {
|
||||
console.error(`${this.constructor.name} ${this.renameNode.name}`, error);
|
||||
return null;
|
||||
@@ -335,7 +335,7 @@ export class NodesApi {
|
||||
|
||||
private async addAspects(nodeId: string, aspectNames: string[]): Promise<NodeEntry> {
|
||||
try {
|
||||
return this.apiService.nodes.updateNode(nodeId, { aspectNames });
|
||||
return await this.apiService.nodes.updateNode(nodeId, { aspectNames });
|
||||
} catch (error) {
|
||||
console.error(`${this.constructor.name} ${this.addAspects.name}`, error);
|
||||
return null;
|
||||
|
@@ -53,7 +53,7 @@ export class SearchPageApi {
|
||||
};
|
||||
|
||||
try {
|
||||
return this.apiService.search.search(data);
|
||||
return await this.apiService.search.search(data);
|
||||
} catch (error) {
|
||||
Logger.error(`SearchApi queryRecentFiles : catch : `, error);
|
||||
return new ResultSetPaging;
|
||||
|
@@ -89,7 +89,7 @@ export class SharedLinksApi {
|
||||
}
|
||||
};
|
||||
|
||||
return Utils.retryCall(sharedFile);
|
||||
return await Utils.retryCall(sharedFile);
|
||||
} catch (error) {
|
||||
console.error(`SharedLinksApi waitForFilesToBeShared : catch : ${error}`);
|
||||
console.error(`\tWait timeout reached waiting for files to be shared`);
|
||||
|
Reference in New Issue
Block a user