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:
Denys Vuika
2026-01-08 15:29:39 +00:00
committed by GitHub
parent dd7852ead1
commit 4ea3775749
4 changed files with 27 additions and 17 deletions
@@ -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();
}
}