@digital-ai/devops-page-object-release 0.0.0-snapshot-20251015123128 → 0.0.0-snapshot-20251025024649

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
@@ -2906,6 +2906,21 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
2906
2906
  async expectStartFromReleaseURLToBe(parentReleaseURL) {
2907
2907
  (0, $hOLA6$expect)(await this.page.locator(".started-from-release").getAttribute("href")).toContain(parentReleaseURL);
2908
2908
  }
2909
+ async expectFlaggedWith(flagName, flagComment) {
2910
+ const flagButton = this.page.locator(".flags .dropdown-button");
2911
+ await (0, $hOLA6$expect)(flagButton).toHaveClass(new RegExp(`\\b${flagName}\\b`));
2912
+ const input = this.page.locator(".flags input");
2913
+ if (await input.isVisible()) await (0, $hOLA6$expect)(input).toHaveValue(flagComment);
2914
+ }
2915
+ async flag(flagName, flagComment) {
2916
+ const flagDropdown = this.page.locator("#release-properties .flags .dropdown-button");
2917
+ await flagDropdown.click();
2918
+ const flagPopover = this.page.locator(".flags .flag-picker-popover");
2919
+ const flagOption = flagPopover.locator(`div.${flagName}`);
2920
+ await flagOption.click();
2921
+ await this.page.getByPlaceholder("Set status text...").click();
2922
+ await this.page.getByPlaceholder("Set status text...").fill(flagComment);
2923
+ }
2909
2924
  }
2910
2925
 
2911
2926
 
@@ -3398,6 +3413,10 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
3398
3413
  await this.openSubPage("Triggers");
3399
3414
  return new (0, $862f65268e488e83$export$fb932093f944abe4)(this.page);
3400
3415
  }
3416
+ async openEditor() {
3417
+ await this.openSubPage("Flow");
3418
+ return new $43cbcdfccb6c2a76$export$f43492e8ac3c566(this.page);
3419
+ }
3401
3420
  async abort(comment = "Abort for testing") {
3402
3421
  await this.page.getByTestId("abort-btn").waitFor();
3403
3422
  await this.page.getByTestId("abort-btn").click();
@@ -4912,6 +4931,66 @@ class $7e73332bf754777c$export$32284f8bcf0bc407 extends (0, $9626bc9256ce31f7$ex
4912
4931
 
4913
4932
 
4914
4933
 
4934
+ class $112122b844be02a3$export$e2613a7eee3a1b1b extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
4935
+ constructor(page){
4936
+ super(page);
4937
+ }
4938
+ async expectPermissionToExist(permission, team) {
4939
+ const row = this.page.locator("table tr", {
4940
+ hasText: permission
4941
+ });
4942
+ const tag = row.locator(".tag", {
4943
+ hasText: team
4944
+ });
4945
+ await (0, $hOLA6$expect)(tag).toBeVisible();
4946
+ }
4947
+ async removePermission(permission, team) {
4948
+ const row = this.page.locator("table tr", {
4949
+ hasText: permission
4950
+ });
4951
+ const tag = row.locator(".tag", {
4952
+ hasText: team
4953
+ });
4954
+ await tag.locator(".close-icon").click();
4955
+ }
4956
+ async expectPermissionNotToExist(permission, team) {
4957
+ const row = this.page.locator("table tr", {
4958
+ hasText: permission
4959
+ });
4960
+ const tag = row.locator(".tag", {
4961
+ hasText: team
4962
+ });
4963
+ await (0, $hOLA6$expect)(tag).toHaveCount(0);
4964
+ }
4965
+ async removeTeam(teamName) {
4966
+ const row = this.page.locator("#teams-permissions-table table tr", {
4967
+ hasText: teamName
4968
+ });
4969
+ await row.locator(".action-label").click();
4970
+ await this.page.getByRole("button", {
4971
+ name: "Delete"
4972
+ }).click();
4973
+ }
4974
+ async expectInheritMessagePresent(folder) {
4975
+ await (0, $hOLA6$expect)(this.page.locator("p.inherit-checkbox", {
4976
+ hasText: "Inherit teams and permissions from parent folder"
4977
+ })).toBeVisible();
4978
+ await (0, $hOLA6$expect)(this.page.locator("p.inherit-checkbox a", {
4979
+ hasText: folder
4980
+ })).toBeVisible();
4981
+ return this;
4982
+ }
4983
+ async reset() {
4984
+ await this.page.getByRole("button", {
4985
+ name: "Reset"
4986
+ }).click();
4987
+ return this;
4988
+ }
4989
+ }
4990
+
4991
+
4992
+
4993
+
4915
4994
 
4916
4995
  class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
4917
4996
  constructor(page){
@@ -4925,6 +5004,7 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
4925
5004
  this.patternPage = new (0, $d13e78163af94d50$export$9b9454a7f137e99b)(page);
4926
5005
  this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
4927
5006
  this.variables = new (0, $dfc4ce40cbd0eb71$export$f8e64fcf447db2bf)(page);
5007
+ this.teamsPermissions = new (0, $112122b844be02a3$export$e2613a7eee3a1b1b)(page);
4928
5008
  }
4929
5009
  getFolderSearchInputLocator() {
4930
5010
  return this.page.locator(".folder-list .folder-list-search input");
@@ -4982,6 +5062,10 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
4982
5062
  await this.page.locator("//span[normalize-space()='Status']").click();
4983
5063
  return this;
4984
5064
  }
5065
+ async openTeamsPermissions() {
5066
+ await this.util.openSideNavMenu("Teams & permissions");
5067
+ await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Teams & permissions")).toBeVisible();
5068
+ }
4985
5069
  async expectReleaseGroupisDisplayed(title) {
4986
5070
  //await this.page.locator(`.fc-list-item-title-wrapper .fc-list-item-title strong:text-is('${title}`).isVisible()
4987
5071
  await this.page.waitForSelector(`.fc-list-item-title-wrapper .fc-list-item-title strong:text-is('${title}')`);
@@ -7301,6 +7385,23 @@ class $527f56b2e41ad18d$var$TemplateVariableModal extends (0, $9626bc9256ce31f7$
7301
7385
 
7302
7386
 
7303
7387
 
7388
+
7389
+
7390
+ class $d7a13717805f21e8$export$f9d0ad09366026c7 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
7391
+ constructor(page){
7392
+ super(page);
7393
+ }
7394
+ async expectInheritMessagePresent(folder) {
7395
+ await (0, $hOLA6$expect)(this.page.locator(".content-under-header p", {
7396
+ hasText: "Permissions and Teams are inherited from the folder"
7397
+ })).toBeVisible();
7398
+ await (0, $hOLA6$expect)(this.page.locator(".content-under-header p span a", {
7399
+ hasText: folder
7400
+ })).toBeVisible();
7401
+ }
7402
+ }
7403
+
7404
+
7304
7405
  class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
7305
7406
  constructor(page){
7306
7407
  super(page);
@@ -7312,6 +7413,7 @@ class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$ex
7312
7413
  this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
7313
7414
  this.variables = new (0, $527f56b2e41ad18d$export$e0f84914460c3382)(page);
7314
7415
  this.plannerView = new (0, $a546aadb4e6fa16a$export$5a82be0a2a261cc6)(page);
7416
+ this.teamsPermissions = new (0, $d7a13717805f21e8$export$f9d0ad09366026c7)(page);
7315
7417
  }
7316
7418
  async openTemplateMenu(menuItem) {
7317
7419
  await this.page.locator(`navigation-sidebar ul li`).getByText(menuItem, {
@@ -9509,11 +9611,11 @@ class $80c3ae34677b4324$var$Fixtures {
9509
9611
  // If teams are provided, send a request to add teams to the folder
9510
9612
  if (teams) {
9511
9613
  teams = this.addSystemTeams(teams);
9512
- return await this.doPost(`api/v1/folders/${folder.id}/teams`, teams);
9614
+ await this.doPost(`api/v1/folders/${folder.id}/teams`, teams);
9513
9615
  }
9514
9616
  if (children && children.length > 0) {
9515
9617
  await this.folderVariable(folderVariables);
9516
- return await this.folder(children[0]);
9618
+ for (const childFolder of children)await this.folder(childFolder);
9517
9619
  }
9518
9620
  if (folderVariables && folderVariables.length > 0) return await this.folderVariable(folderVariables);
9519
9621
  return response;