From 738d93f5d134d9eab9255366fec8268db76d7add Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 28 Feb 2023 22:10:49 +0000 Subject: [PATCH] e2e fix --- .../aca-testing-shared/src/components/toolbar/toolbar.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/aca-testing-shared/src/components/toolbar/toolbar.ts b/projects/aca-testing-shared/src/components/toolbar/toolbar.ts index 307caa3e4..7fbd056ab 100755 --- a/projects/aca-testing-shared/src/components/toolbar/toolbar.ts +++ b/projects/aca-testing-shared/src/components/toolbar/toolbar.ts @@ -23,7 +23,7 @@ * along with Alfresco. If not, see . */ -import { ElementFinder, by, browser, By } from 'protractor'; +import { ElementFinder, by, browser, By, element } from 'protractor'; import { BrowserActions } from '@alfresco/adf-testing'; import { Menu } from '../menu/menu'; import { Component } from '../component'; @@ -33,7 +33,7 @@ export class Toolbar extends Component { menu = new Menu(); buttons = this.allByCss('button'); - shareButton = this.byId('share-action-button'); + shareButton = element(By.css('button[data-automation-id="share-action-button"]')); viewButton = this.byCss(`.mat-icon-button[title='View']`); downloadButton = this.byCss(`.mat-icon-button[title='Download']`); editFolderButton = this.byId('app.toolbar.editFolder'); @@ -74,7 +74,7 @@ export class Toolbar extends Component { } async openMoreMenu(): Promise { - const btnMoreActions = browser.element(By.css('button[id="app.toolbar.more"]')); + const btnMoreActions = element(By.css('button[id="app.toolbar.more"]')); await btnMoreActions.isPresent(); await BrowserActions.click(btnMoreActions);