[ACS-5678] update create folder from template tests (#3564)

This commit is contained in:
Adam Zakrzewski
2023-12-18 17:29:20 +01:00
committed by GitHub
parent aad0837234
commit 6bcca76646
2 changed files with 127 additions and 60 deletions

View File

@@ -41,7 +41,14 @@ export class ContentNodeSelectorDialog extends BaseComponent {
getDialogTitle = (text: string) => this.getChild('[data-automation-id="content-node-selector-title"]', { hasText: text });
getBreadcrumb = (text: string) => this.getChild('[data-automation-id="current-folder"]', { hasText: text });
getFolderIcon = this.getChild('mat-icon[role="img"]', { hasText: "folder" });
loadMoreButton = this.getChild('[data-automation-id="adf-infinite-pagination-button"]');
async loadMoreNodes(): Promise<void> {
await this.spinnerWaitForReload();
while (await this.loadMoreButton.isVisible()) {
await this.loadMoreButton.click();
}
}
async selectLocation(location: string): Promise<void> {
await this.locationDropDown.click();