mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
Multiple option env file (#4788)
* multi configuration file enabling * improve ignore * update i18n tool dep * update webbpack bundle analyzer version * fix ps cloud test wait setting * fix script content * remove use of testconfig for browser options * convert protractor to ts * download browser util fix
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import TestConfig = require('../../test.config');
|
||||
import { CreateFolderDialog } from './dialog/createFolderDialog';
|
||||
import { CreateLibraryDialog } from './dialog/createLibraryDialog';
|
||||
import { FormControllersPage } from '@alfresco/adf-testing';
|
||||
@@ -433,16 +432,16 @@ export class ContentServicesPage {
|
||||
uploadFile(fileLocation) {
|
||||
this.checkUploadButton();
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.uploadFileButton);
|
||||
this.uploadFileButton.sendKeys(path.resolve(path.join(TestConfig.main.rootPath, fileLocation)));
|
||||
this.uploadFileButton.sendKeys(path.resolve(path.join(browser.params.testConfig.main.rootPath, fileLocation)));
|
||||
this.checkUploadButton();
|
||||
return this;
|
||||
}
|
||||
|
||||
uploadMultipleFile(files) {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.uploadMultipleFileButton);
|
||||
let allFiles = path.resolve(path.join(TestConfig.main.rootPath, files[0]));
|
||||
let allFiles = path.resolve(path.join(browser.params.testConfig.main.rootPath, files[0]));
|
||||
for (let i = 1; i < files.length; i++) {
|
||||
allFiles = allFiles + '\n' + path.resolve(path.join(TestConfig.main.rootPath, files[i]));
|
||||
allFiles = allFiles + '\n' + path.resolve(path.join(browser.params.testConfig.main.rootPath, files[i]));
|
||||
}
|
||||
this.uploadMultipleFileButton.sendKeys(allFiles);
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.uploadMultipleFileButton);
|
||||
@@ -451,7 +450,7 @@ export class ContentServicesPage {
|
||||
|
||||
uploadFolder(folder) {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.uploadFolderButton);
|
||||
this.uploadFolderButton.sendKeys(path.resolve(path.join(TestConfig.main.rootPath, folder)));
|
||||
this.uploadFolderButton.sendKeys(path.resolve(path.join(browser.params.testConfig.main.rootPath, folder)));
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.uploadFolderButton);
|
||||
return this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user