mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
e2e fix
This commit is contained in:
committed by
Sheena Malhotra
parent
ceb9ae182e
commit
738d93f5d1
@@ -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, By } from 'protractor';
|
import { ElementFinder, by, browser, By, element } 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';
|
||||||
@@ -33,7 +33,7 @@ export class Toolbar extends Component {
|
|||||||
menu = new Menu();
|
menu = new Menu();
|
||||||
|
|
||||||
buttons = this.allByCss('button');
|
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']`);
|
viewButton = this.byCss(`.mat-icon-button[title='View']`);
|
||||||
downloadButton = this.byCss(`.mat-icon-button[title='Download']`);
|
downloadButton = this.byCss(`.mat-icon-button[title='Download']`);
|
||||||
editFolderButton = this.byId('app.toolbar.editFolder');
|
editFolderButton = this.byId('app.toolbar.editFolder');
|
||||||
@@ -74,7 +74,7 @@ export class Toolbar extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async openMoreMenu(): Promise<void> {
|
async openMoreMenu(): Promise<void> {
|
||||||
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 btnMoreActions.isPresent();
|
||||||
await BrowserActions.click(btnMoreActions);
|
await BrowserActions.click(btnMoreActions);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user