mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[affected:*][ci:force] Fixing e2e - the return of the fail
This commit is contained in:
@@ -27,7 +27,7 @@ export class DropdownWidgetPage {
|
|||||||
readonly searchElementLocator = TestElement.byCss('[aria-label="Search options"]');
|
readonly searchElementLocator = TestElement.byCss('[aria-label="Search options"]');
|
||||||
|
|
||||||
async getSelectedOptionText(fieldId: string = 'dropdown'): Promise<string> {
|
async getSelectedOptionText(fieldId: string = 'dropdown'): Promise<string> {
|
||||||
return this.formFields.getFieldText(fieldId, by.css(`${materialLocators.Select.root}[id="${fieldId}"] span span`));
|
return this.formFields.getFieldText(fieldId, by.css(`${materialLocators.Select.root}[id="${fieldId}"] ${materialLocators.Select.minLine}`));
|
||||||
}
|
}
|
||||||
|
|
||||||
async selectOption(option: string, locator: string = '#dropdown'): Promise<void> {
|
async selectOption(option: string, locator: string = '#dropdown'): Promise<void> {
|
||||||
|
@@ -34,7 +34,7 @@ export class AttachFileWidgetCloudPage {
|
|||||||
await BrowserVisibility.waitUntilElementIsVisible(this.widget.$(this.filesListLocator));
|
await BrowserVisibility.waitUntilElementIsVisible(this.widget.$(this.filesListLocator));
|
||||||
}
|
}
|
||||||
|
|
||||||
getFileAttachedLocatorByContainingText = async (text: string): Promise<ElementFinder> => this.widget.$(this.filesListLocator).element(by.cssContainingText('table tbody tr td span ', text));
|
getFileAttachedLocatorByContainingText = async (text: string): Promise<ElementFinder> => this.widget.$(this.filesListLocator).element(by.cssContainingText('.adf-file', text));
|
||||||
|
|
||||||
assignWidget(fieldId: string): void {
|
assignWidget(fieldId: string): void {
|
||||||
this.widget = $(`adf-form-field div[id='field-${fieldId}-container']`);
|
this.widget = $(`adf-form-field div[id='field-${fieldId}-container']`);
|
||||||
|
Reference in New Issue
Block a user