[AAE-1846] [AAE-1857] automated e2e tests uploading folders (#5483)

* [AAE-1846] automated e2e tests - uploading a folder

* [AAE-1857] added automated e2e test upload folder with excluded file

* changed the script for cancel an uploading folder, added -b condition for the running tests for the uploadFolder method
This commit is contained in:
Alexandra Abrudan
2020-03-09 19:18:41 +00:00
committed by GitHub
parent 8fcdc55595
commit c91458df79
18 changed files with 226 additions and 92 deletions

View File

@@ -16,12 +16,12 @@
*/
import { element, by, ElementFinder } from 'protractor';
import { BrowserVisibility, FormControllersPage, BrowserActions } from '@alfresco/adf-testing';
import { BrowserVisibility, TogglePage, BrowserActions } from '@alfresco/adf-testing';
import moment = require('moment');
export class ShareDialogPage {
formControllersPage = new FormControllersPage();
togglePage = new TogglePage();
shareDialog: ElementFinder = element(by.css('adf-share-dialog'));
dialogTitle: ElementFinder = element(by.css('[data-automation-id="adf-share-dialog-title"]'));
shareToggle: ElementFinder = element(by.css('[data-automation-id="adf-share-toggle"] label'));
@@ -44,7 +44,7 @@ export class ShareDialogPage {
}
async clickUnShareFile() {
await this.formControllersPage.enableToggle(this.shareToggle);
await this.togglePage.enableToggle(this.shareToggle);
}
async clickConfirmationDialogCancelButton(): Promise<void> {