@digital-ai/devops-page-object-release 0.0.0-snapshot-20251215064123 → 0.0.0-snapshot-20251215122615

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
@@ -1129,9 +1129,6 @@ class $3fa741329d8067d5$export$d4865631ba74f3e2 extends (0, $9626bc9256ce31f7$ex
1129
1129
  this.preconditionToggle = page.getByLabel("Enable precondition");
1130
1130
  this.textEditor = page.locator("textarea");
1131
1131
  this.saveButton = page.getByTestId("save-btn");
1132
- this.selectEL = page.getByRole("textbox", {
1133
- name: "Precondition type"
1134
- }).getByLabel("Precondition type");
1135
1132
  }
1136
1133
  async enablePrecondition() {
1137
1134
  (0, $hOLA6$expect)(await this.preconditionToggle.isChecked()).toBe(false);
@@ -1147,15 +1144,6 @@ class $3fa741329d8067d5$export$d4865631ba74f3e2 extends (0, $9626bc9256ce31f7$ex
1147
1144
  await this.saveButton.dblclick();
1148
1145
  await this.page.waitForTimeout(1000);
1149
1146
  }
1150
- async setPreconditionToEL(script) {
1151
- await this.enablePrecondition();
1152
- await this.selectEL.click();
1153
- await this.selectEL.selectOption("EL");
1154
- await this.page.locator(".ace_content").click();
1155
- await this.textEditor.fill(script);
1156
- await this.saveButton.dblclick();
1157
- await this.page.waitForTimeout(1000);
1158
- }
1159
1147
  async expectPreconditionEditable(editable) {
1160
1148
  if (editable) await (0, $hOLA6$expect)(this.textEditor).toBeEditable();
1161
1149
  else await (0, $hOLA6$expect)(this.textEditor).not.toBeEditable();
@@ -5047,6 +5035,52 @@ class $112122b844be02a3$export$e2613a7eee3a1b1b extends (0, $9626bc9256ce31f7$ex
5047
5035
  });
5048
5036
  await tag.locator(".close-icon").click();
5049
5037
  }
5038
+ async expectPermissionReadOnly(permission, team, readOnly) {
5039
+ const rowLocator = this.page.locator(`table tr:has-text("${permission}")`);
5040
+ const tagLocator = rowLocator.locator(`.tag-label:has-text("${team}")`);
5041
+ if (readOnly) await (0, $hOLA6$expect)(tagLocator).toBeVisible();
5042
+ else {
5043
+ const closeIconLocator = tagLocator.locator(".. >> .tag-close");
5044
+ await (0, $hOLA6$expect)(closeIconLocator).toBeVisible();
5045
+ }
5046
+ }
5047
+ async expectTeamsNotToExist(teams, readOnly) {
5048
+ for (const team of teams){
5049
+ const teamRow = this.page.locator(`tr:has-text("${team}")`);
5050
+ if (readOnly) await (0, $hOLA6$expect)(teamRow.getByTitle("Delete")).toHaveCount(0);
5051
+ else await (0, $hOLA6$expect)(teamRow.getByTitle("Delete")).toHaveCount(1);
5052
+ }
5053
+ }
5054
+ async expectInheritTeamsDisabled() {
5055
+ const inheritCheckbox = this.page.locator(".inherit-checkbox input");
5056
+ await (0, $hOLA6$expect)(inheritCheckbox).toBeVisible();
5057
+ await (0, $hOLA6$expect)(inheritCheckbox).toBeDisabled();
5058
+ }
5059
+ async expectNewTeamButtonDisabled() {
5060
+ const addTeamButton = this.page.locator(".button-add-team");
5061
+ await (0, $hOLA6$expect)(addTeamButton).toBeDisabled();
5062
+ }
5063
+ async expectRemoveTeamButtonNotToExist() {
5064
+ await (0, $hOLA6$expect)(this.page.locator("#teams-permissions-table table tr .action-label")).toHaveCount(0);
5065
+ return this;
5066
+ }
5067
+ async expectSaveButtonDisabled() {
5068
+ const saveButton = this.page.getByRole("button", {
5069
+ name: "Save"
5070
+ });
5071
+ await (0, $hOLA6$expect)(saveButton).toBeVisible();
5072
+ await (0, $hOLA6$expect)(saveButton).toBeDisabled();
5073
+ return this;
5074
+ }
5075
+ async expectTeamsReadOnly(teams, readOnly) {
5076
+ for (const team of teams){
5077
+ const teamRow = this.page.locator("table").first().locator("tr", {
5078
+ hasText: team
5079
+ });
5080
+ await (0, $hOLA6$expect)(teamRow.locator(".tag-label + .tag-close")).toHaveCount(readOnly ? 0 : 1);
5081
+ }
5082
+ return this;
5083
+ }
5050
5084
  async expectPermissionNotToExist(permission, team) {
5051
5085
  const row = this.page.locator("table tr", {
5052
5086
  hasText: permission
@@ -9239,6 +9273,17 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
9239
9273
  await this.page.waitForSelector("#releases-content");
9240
9274
  return new (0, $50c91328c9110668$export$b453f08936c58edb)(this.page);
9241
9275
  }
9276
+ async openFolderByName(folderName) {
9277
+ const folder = this.page.getByTitle(folderName);
9278
+ await (0, $hOLA6$expect)(folder).toBeVisible({
9279
+ timeout: 5000
9280
+ });
9281
+ await folder.click();
9282
+ await (0, $hOLA6$expect)(this.page.locator(".MuiBreadcrumbs-li").getByRole("link", {
9283
+ name: folderName
9284
+ })).toBeVisible();
9285
+ return this;
9286
+ }
9242
9287
  async openProfilePage() {
9243
9288
  await this.page.goto(`./#/profile`);
9244
9289
  return new (0, $a5932af323ac015a$export$3cf9c90f870f31bd)(this.page);