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();
|
||||
|
Reference in New Issue
Block a user