mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[no-issue] refactor failing e2e (#3865)
* fix ps test * fix import * fix import * fix ps * fix hyperlink * fix radio hiperlynk * autorename for clashes * notification fix * convert userdialog to ts * fix travis configuration * fix download in folder * convert contentservice page to ts * convert setting and login to ts * remove unused import * fix login import * fix login page * fix chips * fix import speed up viewer test * fix contentlist * change id * fix cs e2e * fix search lint * fix name issue
This commit is contained in:
@@ -18,13 +18,10 @@
|
||||
import path = require('path');
|
||||
import fs = require('fs');
|
||||
import TestConfig = require('../../test.config');
|
||||
import remote = require('selenium-webdriver/remote');
|
||||
|
||||
export class UploadActions {
|
||||
|
||||
async uploadFile(alfrescoJsApi, fileLocation, fileName, parentFolderId) {
|
||||
browser.setFileDetector(new remote.FileDetector());
|
||||
|
||||
let pathFile = path.join(TestConfig.main.rootPath + fileLocation);
|
||||
let file = fs.createReadStream(pathFile);
|
||||
|
||||
@@ -42,8 +39,6 @@ export class UploadActions {
|
||||
}
|
||||
|
||||
async createEmptyFiles(alfrescoJsApi, emptyFileNames: string[], parentFolderId) {
|
||||
browser.setFileDetector(new remote.FileDetector());
|
||||
|
||||
let filesRequest = [];
|
||||
|
||||
for (let i = 0; i < emptyFileNames.length; i++) {
|
||||
@@ -59,8 +54,6 @@ export class UploadActions {
|
||||
}
|
||||
|
||||
async uploadFolder(alfrescoJsApi, folderName, parentFolderId) {
|
||||
browser.setFileDetector(new remote.FileDetector());
|
||||
|
||||
return alfrescoJsApi.nodes.addNode(parentFolderId, {
|
||||
'name': folderName,
|
||||
'nodeType': 'cm:folder'
|
||||
|
Reference in New Issue
Block a user