[AAE-3177] Fix tests that are using attach file widget (#5939)

* Fix few tests with alfresco content type

* Fix start-task-form-cloud suite: make tests independent

* no message

* Add new candidatebaseapp.zip - fix attach file widget with alfresco content & local type to have destination folder empty

* Fix json
This commit is contained in:
Cristina Jalba
2020-08-02 01:07:41 +03:00
committed by GitHub
parent 4ea73ec8f3
commit dc912aea5b
5 changed files with 22 additions and 55 deletions

View File

@@ -101,6 +101,7 @@ export class ContentNodeSelectorDialogPage {
async clickContentNodeSelectorResult(name: string): Promise<void> {
await this.dataTable.clickRowByContent(name);
await this.dataTable.checkRowByContentIsSelected(name);
}
async doubleClickContentNodeSelectorResult(name: string): Promise<void> {

View File

@@ -35,7 +35,7 @@ export class AttachFileWidgetCloudPage {
async attachLocalFile(fileLocation: string): Promise<void> {
await browser.setFileDetector(new remote.FileDetector());
const uploadButton = this.widget.element(by.css(`a input`));
const uploadButton = element(by.css('adf-upload-button input'));
await BrowserVisibility.waitUntilElementIsPresent(uploadButton);
await uploadButton.sendKeys(fileLocation);
await BrowserVisibility.waitUntilElementIsPresent(uploadButton);
@@ -44,8 +44,6 @@ export class AttachFileWidgetCloudPage {
async clickAttachContentFile(fileId: string): Promise<void> {
const uploadButton = this.widget.element(by.css(`button[id=${fileId}]`));
await BrowserActions.click(uploadButton);
await browser.sleep(1000);
await BrowserActions.clickExecuteScript('button[id="attach-Alfresco Content"]');
}
async checkUploadContentButtonIsDisplayed(fileId: string): Promise<void> {