@digital-ai/devops-page-object-release 0.0.0-snapshot-20251014105644 → 0.0.0-snapshot-20251023115157

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.js CHANGED
@@ -7716,12 +7716,22 @@ class $171d52b372748c0b$export$7e1d435fa474ee21 extends (0, $9626bc9256ce31f7$ex
7716
7716
  })).not.toBeVisible();
7717
7717
  }
7718
7718
  async clickCreateNewTemplate() {
7719
- await this.page.locator(".action-toolbar-actions").getByRole("button", {
7719
+ const newTemplateFromActionBarLocator = this.page.locator(".action-toolbar-actions").getByRole("button", {
7720
7720
  name: "New template"
7721
- }).click();
7722
- await this.page.locator(".action-toolbar-actions").getByRole("menuitem", {
7723
- name: "Create new template"
7724
- }).click();
7721
+ });
7722
+ await (0, $hOLA6$expect)(async ()=>{
7723
+ if (await newTemplateFromActionBarLocator.isVisible({
7724
+ timeout: 1000
7725
+ })) {
7726
+ await newTemplateFromActionBarLocator.click();
7727
+ await this.page.locator(".action-toolbar-actions").getByRole("menuitem", {
7728
+ name: "Create new template"
7729
+ }).click();
7730
+ } else // click on empty state
7731
+ await this.page.getByRole("button", {
7732
+ name: "New template"
7733
+ }).click();
7734
+ }).toPass();
7725
7735
  }
7726
7736
  async openTemplateByName(templateName) {
7727
7737
  await this.filterByTitle(templateName);
@@ -9582,11 +9592,11 @@ class $80c3ae34677b4324$var$Fixtures {
9582
9592
  // If teams are provided, send a request to add teams to the folder
9583
9593
  if (teams) {
9584
9594
  teams = this.addSystemTeams(teams);
9585
- return await this.doPost(`api/v1/folders/${folder.id}/teams`, teams);
9595
+ await this.doPost(`api/v1/folders/${folder.id}/teams`, teams);
9586
9596
  }
9587
9597
  if (children && children.length > 0) {
9588
9598
  await this.folderVariable(folderVariables);
9589
- return await this.folder(children[0]);
9599
+ for (const childFolder of children)await this.folder(childFolder);
9590
9600
  }
9591
9601
  if (folderVariables && folderVariables.length > 0) return await this.folderVariable(folderVariables);
9592
9602
  return response;