This commit is contained in:
Denys Vuika
2023-02-28 21:47:17 +00:00
committed by Sheena Malhotra
parent 6bbeb34b6a
commit ceb9ae182e

View File

@@ -23,7 +23,7 @@
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/ */
import { ElementFinder, by, browser } from 'protractor'; import { ElementFinder, by, browser, By } from 'protractor';
import { BrowserActions } from '@alfresco/adf-testing'; import { BrowserActions } from '@alfresco/adf-testing';
import { Menu } from '../menu/menu'; import { Menu } from '../menu/menu';
import { Component } from '../component'; import { Component } from '../component';
@@ -74,7 +74,7 @@ export class Toolbar extends Component {
} }
async openMoreMenu(): Promise<void> { async openMoreMenu(): Promise<void> {
const btnMoreActions = this.allByCss('[id="app.toolbar.more"]'); const btnMoreActions = browser.element(By.css('button[id="app.toolbar.more"]'));
await btnMoreActions.isPresent(); await btnMoreActions.isPresent();
await BrowserActions.click(btnMoreActions); await BrowserActions.click(btnMoreActions);