[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:
Akash Rathod
2023-09-25 13:00:22 +02:00
committed by GitHub
parent 2157e8e031
commit 97f01386f8
21 changed files with 435 additions and 294 deletions

View File

@@ -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);