mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-08-14 17:58:21 +00:00
[ACS-5923] playwright sidenav and single click test (#3442)
* [ACS-5923] sidenav and singleclick test * remove protractor test and fix flaky test * test fix * Update error message for expect
This commit is contained in:
@@ -23,11 +23,12 @@
|
||||
*/
|
||||
|
||||
import { BaseComponent } from '.././base.component';
|
||||
import { Page } from '@playwright/test';
|
||||
import { Locator, Page } from '@playwright/test';
|
||||
export class Breadcrumb extends BaseComponent {
|
||||
private static rootElement = 'adf-breadcrumb';
|
||||
public items = this.getChild('.adf-breadcrumb-item');
|
||||
public currentItem = this.getChild('.adf-breadcrumb-item-current');
|
||||
getItemByTitle = (name: string): Locator => this.getChild(`.adf-breadcrumb-item[title=${name}]`);
|
||||
|
||||
constructor(page: Page) {
|
||||
super(page, Breadcrumb.rootElement);
|
||||
|
Reference in New Issue
Block a user