mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-6295] Updated attach-file-widget-cloud.page.ts (#7347)
* [AAE-6295] Updated attach-file-widget-cloud.page.ts * [ci:force] * Changes done as per comments on PR * Changes done as per comments on PR
This commit is contained in:
@@ -19,6 +19,7 @@ import { by, ElementFinder, browser, $ } from 'protractor';
|
||||
import { BrowserActions } from '../../../../core/utils/browser-actions';
|
||||
import { Logger } from '../../../../core/utils/logger';
|
||||
import { BrowserVisibility } from '../../../../core/utils/browser-visibility';
|
||||
import { TestElement } from '../../../../core/test-element';
|
||||
|
||||
export class AttachFileWidgetCloudPage {
|
||||
|
||||
@@ -63,6 +64,12 @@ export class AttachFileWidgetCloudPage {
|
||||
}
|
||||
}
|
||||
|
||||
async checkNoFileIsAttached(): Promise<void> {
|
||||
const filesListLocator = 'div[class="adf-file-properties-table"]';
|
||||
const fileItem = new TestElement(this.widget.$(filesListLocator).$('table'));
|
||||
await fileItem.waitNotVisible();
|
||||
}
|
||||
|
||||
async checkFileIsNotAttached(name): Promise<void> {
|
||||
const fileAttached = await this.getFileAttachedLocatorByContainingText(name);
|
||||
await BrowserVisibility.waitUntilElementIsNotVisible(fileAttached);
|
||||
|
Reference in New Issue
Block a user