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

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
@@ -4912,66 +4912,6 @@ class $7e73332bf754777c$export$32284f8bcf0bc407 extends (0, $9626bc9256ce31f7$ex
4912
4912
 
4913
4913
 
4914
4914
 
4915
- class $112122b844be02a3$export$e2613a7eee3a1b1b extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
4916
- constructor(page){
4917
- super(page);
4918
- }
4919
- async expectPermissionToExist(permission, team) {
4920
- const row = this.page.locator("table tr", {
4921
- hasText: permission
4922
- });
4923
- const tag = row.locator(".tag", {
4924
- hasText: team
4925
- });
4926
- await (0, $hOLA6$expect)(tag).toBeVisible();
4927
- }
4928
- async removePermission(permission, team) {
4929
- const row = this.page.locator("table tr", {
4930
- hasText: permission
4931
- });
4932
- const tag = row.locator(".tag", {
4933
- hasText: team
4934
- });
4935
- await tag.locator(".close-icon").click();
4936
- }
4937
- async expectPermissionNotToExist(permission, team) {
4938
- const row = this.page.locator("table tr", {
4939
- hasText: permission
4940
- });
4941
- const tag = row.locator(".tag", {
4942
- hasText: team
4943
- });
4944
- await (0, $hOLA6$expect)(tag).toHaveCount(0);
4945
- }
4946
- async removeTeam(teamName) {
4947
- const row = this.page.locator("#teams-permissions-table table tr", {
4948
- hasText: teamName
4949
- });
4950
- await row.locator(".action-label").click();
4951
- await this.page.getByRole("button", {
4952
- name: "Delete"
4953
- }).click();
4954
- }
4955
- async expectInheritMessagePresent(folder) {
4956
- await (0, $hOLA6$expect)(this.page.locator("p.inherit-checkbox", {
4957
- hasText: "Inherit teams and permissions from parent folder"
4958
- })).toBeVisible();
4959
- await (0, $hOLA6$expect)(this.page.locator("p.inherit-checkbox a", {
4960
- hasText: folder
4961
- })).toBeVisible();
4962
- return this;
4963
- }
4964
- async reset() {
4965
- await this.page.getByRole("button", {
4966
- name: "Reset"
4967
- }).click();
4968
- return this;
4969
- }
4970
- }
4971
-
4972
-
4973
-
4974
-
4975
4915
 
4976
4916
  class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
4977
4917
  constructor(page){
@@ -4985,7 +4925,6 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
4985
4925
  this.patternPage = new (0, $d13e78163af94d50$export$9b9454a7f137e99b)(page);
4986
4926
  this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
4987
4927
  this.variables = new (0, $dfc4ce40cbd0eb71$export$f8e64fcf447db2bf)(page);
4988
- this.teamsPermissions = new (0, $112122b844be02a3$export$e2613a7eee3a1b1b)(page);
4989
4928
  }
4990
4929
  getFolderSearchInputLocator() {
4991
4930
  return this.page.locator(".folder-list .folder-list-search input");
@@ -5043,10 +4982,6 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
5043
4982
  await this.page.locator("//span[normalize-space()='Status']").click();
5044
4983
  return this;
5045
4984
  }
5046
- async openTeamsPermissions() {
5047
- await this.util.openSideNavMenu("Teams & permissions");
5048
- await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Teams & permissions")).toBeVisible();
5049
- }
5050
4985
  async expectReleaseGroupisDisplayed(title) {
5051
4986
  //await this.page.locator(`.fc-list-item-title-wrapper .fc-list-item-title strong:text-is('${title}`).isVisible()
5052
4987
  await this.page.waitForSelector(`.fc-list-item-title-wrapper .fc-list-item-title strong:text-is('${title}')`);
@@ -7366,23 +7301,6 @@ class $527f56b2e41ad18d$var$TemplateVariableModal extends (0, $9626bc9256ce31f7$
7366
7301
 
7367
7302
 
7368
7303
 
7369
-
7370
-
7371
- class $d7a13717805f21e8$export$f9d0ad09366026c7 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
7372
- constructor(page){
7373
- super(page);
7374
- }
7375
- async expectInheritMessagePresent(folder) {
7376
- await (0, $hOLA6$expect)(this.page.locator(".content-under-header p", {
7377
- hasText: "Permissions and Teams are inherited from the folder"
7378
- })).toBeVisible();
7379
- await (0, $hOLA6$expect)(this.page.locator(".content-under-header p span a", {
7380
- hasText: folder
7381
- })).toBeVisible();
7382
- }
7383
- }
7384
-
7385
-
7386
7304
  class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
7387
7305
  constructor(page){
7388
7306
  super(page);
@@ -7394,7 +7312,6 @@ class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$ex
7394
7312
  this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
7395
7313
  this.variables = new (0, $527f56b2e41ad18d$export$e0f84914460c3382)(page);
7396
7314
  this.plannerView = new (0, $a546aadb4e6fa16a$export$5a82be0a2a261cc6)(page);
7397
- this.teamsPermissions = new (0, $d7a13717805f21e8$export$f9d0ad09366026c7)(page);
7398
7315
  }
7399
7316
  async openTemplateMenu(menuItem) {
7400
7317
  await this.page.locator(`navigation-sidebar ul li`).getByText(menuItem, {
@@ -7716,12 +7633,22 @@ class $171d52b372748c0b$export$7e1d435fa474ee21 extends (0, $9626bc9256ce31f7$ex
7716
7633
  })).not.toBeVisible();
7717
7634
  }
7718
7635
  async clickCreateNewTemplate() {
7719
- await this.page.locator(".action-toolbar-actions").getByRole("button", {
7636
+ const newTemplateFromActionBarLocator = this.page.locator(".action-toolbar-actions").getByRole("button", {
7720
7637
  name: "New template"
7721
- }).click();
7722
- await this.page.locator(".action-toolbar-actions").getByRole("menuitem", {
7723
- name: "Create new template"
7724
- }).click();
7638
+ });
7639
+ await (0, $hOLA6$expect)(async ()=>{
7640
+ if (await newTemplateFromActionBarLocator.isVisible({
7641
+ timeout: 1000
7642
+ })) {
7643
+ await newTemplateFromActionBarLocator.click();
7644
+ await this.page.locator(".action-toolbar-actions").getByRole("menuitem", {
7645
+ name: "Create new template"
7646
+ }).click();
7647
+ } else // click on empty state
7648
+ await this.page.getByRole("button", {
7649
+ name: "New template"
7650
+ }).click();
7651
+ }).toPass();
7725
7652
  }
7726
7653
  async openTemplateByName(templateName) {
7727
7654
  await this.filterByTitle(templateName);