mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
ACS-10934: migrate from adf-toolbar to mat-toolbar (#4969)
* ACS-10934: migrate from adf-toolbar to mat-toolbar * update e2e
This commit is contained in:
+4
-4
@@ -27,18 +27,18 @@ import { Page } from '@playwright/test';
|
||||
|
||||
export class ToolbarComponent extends BaseComponent {
|
||||
private static rootElement = 'adf-toolbar';
|
||||
private createRuleButton = this.getChild('[data-automation-id="manage-rules-create-button"]');
|
||||
private linkRulesButton = this.getChild('[data-automation-id="manage-rules-link-button"]');
|
||||
|
||||
constructor(page: Page) {
|
||||
super(page, ToolbarComponent.rootElement);
|
||||
}
|
||||
|
||||
async clickCreateRuleButton(): Promise<void> {
|
||||
await this.createRuleButton.click();
|
||||
const button = this.page.locator('[data-automation-id="manage-rules-create-button"]');
|
||||
await button.click();
|
||||
}
|
||||
|
||||
async clickLinkRulesButton(): Promise<void> {
|
||||
await this.linkRulesButton.click();
|
||||
const button = this.page.locator('[data-automation-id="manage-rules-link-button"]');
|
||||
await button.click();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user