mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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> {
|
||||
|
@@ -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> {
|
||||
|
Reference in New Issue
Block a user