@digital-ai/devops-page-object-release 0.0.0-snapshot-20251122175005 → 0.0.0-snapshot-20251124090206

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
@@ -4984,18 +4984,15 @@ class $112122b844be02a3$export$e2613a7eee3a1b1b extends (0, $9626bc9256ce31f7$ex
4984
4984
  const tagLocator = rowLocator.locator(`.tag-label:has-text("${team}")`);
4985
4985
  if (readOnly) await (0, $hOLA6$expect)(tagLocator).toBeVisible();
4986
4986
  else {
4987
- const closeIconLocator = tagLocator.locator('xpath=following-sibling::*[contains(@class, "tag-close")]');
4987
+ const closeIconLocator = tagLocator.locator(".. >> .tag-close");
4988
4988
  await (0, $hOLA6$expect)(closeIconLocator).toBeVisible();
4989
4989
  }
4990
4990
  }
4991
4991
  async expectTeamsNotToExist(teams, readOnly) {
4992
4992
  for (const team of teams){
4993
- //const teamRow = this.page.locator(`table:first-of-type tr:has(td:has-text("${team}"))`);
4994
4993
  const teamRow = this.page.locator(`tr:has-text("${team}")`);
4995
- if (readOnly) // Verify read-only team does NOT have a delete button
4996
- await (0, $hOLA6$expect)(teamRow.locator('.action-label:has-text("Delete")')).toHaveCount(0);
4997
- else // For editable teams, make sure delete button exists
4998
- await (0, $hOLA6$expect)(teamRow.locator('.action-label:has-text("Delete")')).toHaveCount(1);
4994
+ if (readOnly) await (0, $hOLA6$expect)(teamRow.getByTitle("Delete")).toHaveCount(0);
4995
+ else await (0, $hOLA6$expect)(teamRow.getByTitle("Delete")).toHaveCount(1);
4999
4996
  }
5000
4997
  }
5001
4998
  async expectInheritTeamsDisabled() {
@@ -5141,19 +5138,6 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
5141
5138
  await this.util.openSideNavMenu("Teams & permissions");
5142
5139
  await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Teams & permissions")).toBeVisible();
5143
5140
  }
5144
- async clickOnFolderRowAction(folderName, actionLabel) {
5145
- const folderRow = this.page.locator(`.folder-list-row-wrapper:has-text("${folderName}")`);
5146
- await folderRow.hover();
5147
- const optionsWrapper = folderRow.locator(".folder-options-wrapper");
5148
- const actionLink = optionsWrapper.locator(`.flatten-links a:has-text("${actionLabel}")`);
5149
- await actionLink.click();
5150
- }
5151
- async createNewFolderFromRowAction(folderName, subFolderName) {
5152
- await this.clickOnFolderRowAction(folderName, "Add folder");
5153
- const modal = this.page.locator(".xl-react-modal-content");
5154
- await modal.locator("input").fill(subFolderName);
5155
- await modal.locator(".button.primary").click();
5156
- }
5157
5141
  async expectReleaseGroupisDisplayed(title) {
5158
5142
  //await this.page.locator(`.fc-list-item-title-wrapper .fc-list-item-title strong:text-is('${title}`).isVisible()
5159
5143
  await this.page.waitForSelector(`.fc-list-item-title-wrapper .fc-list-item-title strong:text-is('${title}')`);
@@ -9220,9 +9204,7 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
9220
9204
  await folder.click();
9221
9205
  await (0, $hOLA6$expect)(this.page.locator(".MuiBreadcrumbs-li").getByRole("link", {
9222
9206
  name: folderName
9223
- })).toBeVisible({
9224
- timeout: 5000
9225
- });
9207
+ })).toBeVisible();
9226
9208
  return this;
9227
9209
  }
9228
9210
  async openProfilePage() {