@digital-ai/devops-page-object-release 0.0.0-snapshot-20251014104633 → 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/CHANGELOG.md +2 -2
- package/dist/main.js +15 -84
- package/dist/main.js.map +1 -1
- package/dist/module.js +15 -84
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +0 -15
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
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");
|
|
@@ -7362,23 +7301,6 @@ class $527f56b2e41ad18d$var$TemplateVariableModal extends (0, $9626bc9256ce31f7$
|
|
|
7362
7301
|
|
|
7363
7302
|
|
|
7364
7303
|
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
class $d7a13717805f21e8$export$f9d0ad09366026c7 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
7368
|
-
constructor(page){
|
|
7369
|
-
super(page);
|
|
7370
|
-
}
|
|
7371
|
-
async expectInheritMessagePresent(folder) {
|
|
7372
|
-
await (0, $hOLA6$expect)(this.page.locator(".content-under-header p", {
|
|
7373
|
-
hasText: "Permissions and Teams are inherited from the folder"
|
|
7374
|
-
})).toBeVisible();
|
|
7375
|
-
await (0, $hOLA6$expect)(this.page.locator(".content-under-header p span a", {
|
|
7376
|
-
hasText: folder
|
|
7377
|
-
})).toBeVisible();
|
|
7378
|
-
}
|
|
7379
|
-
}
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
7304
|
class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
7383
7305
|
constructor(page){
|
|
7384
7306
|
super(page);
|
|
@@ -7390,7 +7312,6 @@ class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$ex
|
|
|
7390
7312
|
this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
|
|
7391
7313
|
this.variables = new (0, $527f56b2e41ad18d$export$e0f84914460c3382)(page);
|
|
7392
7314
|
this.plannerView = new (0, $a546aadb4e6fa16a$export$5a82be0a2a261cc6)(page);
|
|
7393
|
-
this.teamsPermissions = new (0, $d7a13717805f21e8$export$f9d0ad09366026c7)(page);
|
|
7394
7315
|
}
|
|
7395
7316
|
async openTemplateMenu(menuItem) {
|
|
7396
7317
|
await this.page.locator(`navigation-sidebar ul li`).getByText(menuItem, {
|
|
@@ -7712,12 +7633,22 @@ class $171d52b372748c0b$export$7e1d435fa474ee21 extends (0, $9626bc9256ce31f7$ex
|
|
|
7712
7633
|
})).not.toBeVisible();
|
|
7713
7634
|
}
|
|
7714
7635
|
async clickCreateNewTemplate() {
|
|
7715
|
-
|
|
7636
|
+
const newTemplateFromActionBarLocator = this.page.locator(".action-toolbar-actions").getByRole("button", {
|
|
7716
7637
|
name: "New template"
|
|
7717
|
-
})
|
|
7718
|
-
await
|
|
7719
|
-
|
|
7720
|
-
|
|
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();
|
|
7721
7652
|
}
|
|
7722
7653
|
async openTemplateByName(templateName) {
|
|
7723
7654
|
await this.filterByTitle(templateName);
|