[affected:*][ci:force] Fixing e2e - the return of the fail

This commit is contained in:
Vito Albano 2024-03-15 02:45:07 +00:00
parent d49f6525eb
commit 21b39c9710
2 changed files with 3 additions and 3 deletions

View File

@ -116,8 +116,6 @@ describe('Form Field Component - Dropdown Widget', () => {
await taskFormCloudComponent.formFields().checkFormIsDisplayed();
await taskFormCloudComponent.formFields().checkWidgetIsVisible('DropdownMultiselect');
optionsSelected.push(await dropdown.getSelectedOptionText('DropdownMultiselect'));
await expect(optionsSelected.toString().replace(/\s+/g, '')).toEqual([optionsToSelect, optionsToSelect].toString());
});

View File

@ -34,7 +34,9 @@ export class AttachFileWidgetCloudPage {
await BrowserVisibility.waitUntilElementIsVisible(this.widget.$(this.filesListLocator));
}
getFileAttachedLocatorByContainingText = async (text: string): Promise<ElementFinder> => this.widget.$(this.filesListLocator).element(by.cssContainingText('.adf-file', text));
async getFileAttachedLocatorByContainingText(text: string): Promise<ElementFinder> {
return this.widget.$(this.filesListLocator).element(by.cssContainingText('span', text));
}
assignWidget(fieldId: string): void {
this.widget = $(`adf-form-field div[id='field-${fieldId}-container']`);