From c6140331db8d70efe0ceb1a990f777a5523e7b60 Mon Sep 17 00:00:00 2001 From: Vito Albano Date: Thu, 7 Dec 2023 00:09:36 +0000 Subject: [PATCH] Rebase went little bit wrong --- .../form/widgets/attach-file-widget.page.ts | 7 ------- .../core/pages/material/dropdown.page.ts | 20 ------------------- 2 files changed, 27 deletions(-) diff --git a/lib/testing/src/lib/protractor/core/pages/form/widgets/attach-file-widget.page.ts b/lib/testing/src/lib/protractor/core/pages/form/widgets/attach-file-widget.page.ts index 9c336bf3f92..678666fc3a0 100644 --- a/lib/testing/src/lib/protractor/core/pages/form/widgets/attach-file-widget.page.ts +++ b/lib/testing/src/lib/protractor/core/pages/form/widgets/attach-file-widget.page.ts @@ -28,17 +28,10 @@ export class AttachFileWidgetPage { filesListLocator = 'div[data-automation-id="adf-attach-widget-readonly-list"]'; attachFileWidget = $('#attachfile'); attachedFileMenu = $('mat-list-item button'); -<<<<<<< Updated upstream - attachedFileOptions = $('.mat-mdc-menu-content'); - viewFileOptionButton = $(`.mat-mdc-menu-content button[id$="show-file"]`); - downloadFileOptionButton = $(`.mat-mdc-menu-content button[id$="download-file"]`); - removeFileOptionButton = TestElement.byCss(`.mat-mdc-menu-content button[id$="remove"]`); -======= attachedFileOptions = $('.mat-mdc-menu-panel .mat-mdc-menu-content'); viewFileOptionButton = $(`.mat-mdc-menu-panel .mat-mdc-menu-content button[id$="show-file"]`); downloadFileOptionButton = $(`.mat-mdc-menu-panel .mat-mdc-menu-content button[id$="download-file"]`); removeFileOptionButton = TestElement.byCss(`.mat-mdc-menu-panel .mat-mdc-menu-content button[id$="remove"]`); ->>>>>>> Stashed changes async attachFile(fieldId: string, fileLocation: string): Promise { const widget = await this.formFields.getWidget(fieldId); diff --git a/lib/testing/src/lib/protractor/core/pages/material/dropdown.page.ts b/lib/testing/src/lib/protractor/core/pages/material/dropdown.page.ts index 66674cb28d3..1883cf0f98a 100644 --- a/lib/testing/src/lib/protractor/core/pages/material/dropdown.page.ts +++ b/lib/testing/src/lib/protractor/core/pages/material/dropdown.page.ts @@ -35,11 +35,7 @@ export class DropdownPage { async selectOption(option: string): Promise { Logger.log(`Select dropdown option ${option}`); -<<<<<<< Updated upstream const optionElement = element.all(by.cssContainingText('.mat-mdc-option .mdc-list-item__primary-text', option)).first(); -======= - const optionElement = element.all(by.cssContainingText('mat-option span.mdc-list-item__primary-text', option)).first(); ->>>>>>> Stashed changes await BrowserActions.click(optionElement); await browser.waitForAngular(); } @@ -53,11 +49,7 @@ export class DropdownPage { } async getNumberOfOptions(): Promise { -<<<<<<< Updated upstream const dropdownOptions = $$('.mat-mdc-select-panel .mat-mdc-option'); -======= - const dropdownOptions = $$('.mat-mdc-select-panel mat-option'); ->>>>>>> Stashed changes return dropdownOptions.count(); } @@ -88,28 +80,16 @@ export class DropdownPage { } async getSelectedOptionText(): Promise { -<<<<<<< Updated upstream - const selectedOption = this.dropDownElement.$('.mdc-list-item__primary-text'); -======= const selectedOption = this.dropDownElement.$('.mat-mdc-select-value-text span'); ->>>>>>> Stashed changes return BrowserActions.getText(selectedOption); } async checkOptionIsDisplayed(option: string): Promise { -<<<<<<< Updated upstream await BrowserVisibility.waitUntilElementIsVisible(element.all(by.cssContainingText('.mat-mdc-option .mdc-list-item__primary-text', option)).first()); } async checkOptionIsNotDisplayed(option: string): Promise { await BrowserVisibility.waitUntilElementIsNotVisible(element.all(by.cssContainingText('.mat-mdc-option .mdc-list-item__primary-text', option)).first()); -======= - await BrowserVisibility.waitUntilElementIsVisible(element.all(by.cssContainingText('mat-option span.mdc-list-item__primary-text', option)).first()); - } - - async checkOptionIsNotDisplayed(option: string): Promise { - await BrowserVisibility.waitUntilElementIsNotVisible(element.all(by.cssContainingText('mat-option span.mdc-list-item__primary-text', option)).first()); ->>>>>>> Stashed changes } async selectDropdownOption(option: string): Promise {