mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-11319] Move tree actions menu item buttons inside the component (#11749)
* [ACS-11319] Move tree actions menu item buttons inside the component * [ACS-11319] Copilot review fixes
This commit is contained in:
@@ -34,6 +34,8 @@ import { MatSnackBarHarness } from '@angular/material/snack-bar/testing';
|
||||
import { MatProgressBarHarness } from '@angular/material/progress-bar/testing';
|
||||
import { MatListOptionHarness } from '@angular/material/list/testing';
|
||||
import { MatCellHarness } from '@angular/material/table/testing';
|
||||
import { MatProgressSpinnerHarness } from '@angular/material/progress-spinner/testing';
|
||||
import { MatMenuHarness } from '@angular/material/menu/testing';
|
||||
|
||||
export class UnitTestingUtils {
|
||||
constructor(
|
||||
@@ -478,4 +480,20 @@ export class UnitTestingUtils {
|
||||
async getMatCellByColumnName(columnName: string): Promise<MatCellHarness> {
|
||||
return this.loader.getHarness(MatCellHarness.with({ columnName }));
|
||||
}
|
||||
|
||||
/** MatProgressSpinner related methods */
|
||||
|
||||
async getMatProgressSpinnerWithAncestorByCSS(selector: string): Promise<MatProgressSpinnerHarness> {
|
||||
return this.loader.getHarness(MatProgressSpinnerHarness.with({ ancestor: selector }));
|
||||
}
|
||||
|
||||
async getMatProgressSpinnerWithAncestorByDataAutomationId(dataAutomationId: string): Promise<MatProgressSpinnerHarness> {
|
||||
return this.loader.getHarness(MatProgressSpinnerHarness.with({ ancestor: `[data-automation-id="${dataAutomationId}"]` }));
|
||||
}
|
||||
|
||||
/** MatMenu related methods */
|
||||
|
||||
async getMatMenuByCSS(selector: string): Promise<MatMenuHarness> {
|
||||
return this.loader.getHarness(MatMenuHarness.with({ selector }));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user