@digital-ai/devops-page-object-release 0.0.0-snapshot-20250929164543 → 0.0.0-snapshot-20251014102416
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 +14 -2
- package/dist/main.js +170 -86
- package/dist/main.js.map +1 -1
- package/dist/module.js +170 -86
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +24 -9
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -2932,6 +2932,97 @@ class $96c6280ff1c47b81$export$3bc3e140e0dcb075 extends (0, $9626bc9256ce31f7$ex
|
|
|
2932
2932
|
hasText: userName
|
|
2933
2933
|
})).toBeVisible();
|
|
2934
2934
|
}
|
|
2935
|
+
async openSubPage(subpage) {
|
|
2936
|
+
await this.page.locator("ul.side-nav li", {
|
|
2937
|
+
hasText: subpage
|
|
2938
|
+
}).click();
|
|
2939
|
+
}
|
|
2940
|
+
async expectMembersToHavePermission(permission, ...roles) {
|
|
2941
|
+
const row = this.page.locator("tr", {
|
|
2942
|
+
has: this.page.locator("td", {
|
|
2943
|
+
hasText: permission
|
|
2944
|
+
})
|
|
2945
|
+
});
|
|
2946
|
+
for (const roleName of roles){
|
|
2947
|
+
const roleLocator = row.locator("li.tag", {
|
|
2948
|
+
hasText: roleName
|
|
2949
|
+
});
|
|
2950
|
+
await (0, $hOLA6$expect)(roleLocator.first(), `Expected role "${roleName}" for permission "${permission}"`).toBeVisible();
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
async expectMembersNotToHavePermission(permission, ...roles) {
|
|
2954
|
+
const row = this.page.locator("tr", {
|
|
2955
|
+
has: this.page.locator("td", {
|
|
2956
|
+
hasText: permission
|
|
2957
|
+
})
|
|
2958
|
+
});
|
|
2959
|
+
for (const roleName of roles){
|
|
2960
|
+
const roleLocator = row.locator("li.tag", {
|
|
2961
|
+
hasText: roleName
|
|
2962
|
+
});
|
|
2963
|
+
await (0, $hOLA6$expect)(roleLocator.first(), `Expected role "${roleName}" for permission "${permission}"`).not.toBeVisible();
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
async save() {
|
|
2967
|
+
const saveButton = this.page.getByRole("button", {
|
|
2968
|
+
name: "Save",
|
|
2969
|
+
exact: true
|
|
2970
|
+
});
|
|
2971
|
+
await saveButton.click();
|
|
2972
|
+
}
|
|
2973
|
+
async grantPermissionToRoles(permission, ...roles) {
|
|
2974
|
+
const row = this.page.locator("tr", {
|
|
2975
|
+
has: this.page.locator("td", {
|
|
2976
|
+
hasText: permission
|
|
2977
|
+
})
|
|
2978
|
+
});
|
|
2979
|
+
for (const roleName of roles){
|
|
2980
|
+
const roleLocator = row.locator('input[placeholder="Add..."]');
|
|
2981
|
+
await roleLocator.first().click();
|
|
2982
|
+
await roleLocator.fill(roleName);
|
|
2983
|
+
await roleLocator.press("Enter");
|
|
2984
|
+
await (0, $hOLA6$expect)(roleLocator.first(), `Expected role "${roleName}" for permission "${permission}"`).toBeVisible();
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
async revokeMembersPermission(permission, ...roles) {
|
|
2988
|
+
const row = this.page.locator("tr", {
|
|
2989
|
+
has: this.page.locator("td", {
|
|
2990
|
+
hasText: permission
|
|
2991
|
+
})
|
|
2992
|
+
});
|
|
2993
|
+
for (const roleName of roles){
|
|
2994
|
+
const roleLocator = row.locator("li.tag", {
|
|
2995
|
+
hasText: roleName
|
|
2996
|
+
});
|
|
2997
|
+
const closeBtn = roleLocator.locator("a.tag-close, .tag-close, a > .xl-icon.close-icon, i.xl-icon.close-icon").first();
|
|
2998
|
+
await (0, $hOLA6$expect)(closeBtn, `Expected close button for role "${roleName}" to be visible`).toBeVisible();
|
|
2999
|
+
await closeBtn.click();
|
|
3000
|
+
await (0, $hOLA6$expect)(roleLocator.first(), `Expected role "${roleName}" for permission "${permission}"`).not.toBeVisible();
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
3003
|
+
async expectResetIsEnabled(expected) {
|
|
3004
|
+
const resetButton = this.page.getByRole("button", {
|
|
3005
|
+
name: "Reset"
|
|
3006
|
+
});
|
|
3007
|
+
if (expected) await (0, $hOLA6$expect)(resetButton).toBeEnabled();
|
|
3008
|
+
else await (0, $hOLA6$expect)(resetButton).toBeDisabled();
|
|
3009
|
+
}
|
|
3010
|
+
async expectPermissionsTableCount(locatorName) {
|
|
3011
|
+
const table = this.page.locator(locatorName);
|
|
3012
|
+
await (0, $hOLA6$expect)(table).toHaveCount(1);
|
|
3013
|
+
}
|
|
3014
|
+
async openEditor() {
|
|
3015
|
+
await this.openSubPage("Flow");
|
|
3016
|
+
return this;
|
|
3017
|
+
}
|
|
3018
|
+
async reset() {
|
|
3019
|
+
const resetButton = this.page.getByRole("button", {
|
|
3020
|
+
name: "Reset",
|
|
3021
|
+
exact: true
|
|
3022
|
+
});
|
|
3023
|
+
await resetButton.click();
|
|
3024
|
+
return this;
|
|
3025
|
+
}
|
|
2935
3026
|
}
|
|
2936
3027
|
|
|
2937
3028
|
|
|
@@ -3533,92 +3624,6 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
|
|
|
3533
3624
|
await this.util.openSideNavMenu("Teams & Permissions");
|
|
3534
3625
|
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Teams & Permissions")).toBeVisible();
|
|
3535
3626
|
}
|
|
3536
|
-
async expectMembersToHavePermission(permission, ...roles) {
|
|
3537
|
-
const row = this.page.locator("tr", {
|
|
3538
|
-
has: this.page.locator("td", {
|
|
3539
|
-
hasText: permission
|
|
3540
|
-
})
|
|
3541
|
-
});
|
|
3542
|
-
for (const roleName of roles){
|
|
3543
|
-
const roleLocator = row.locator("li.tag", {
|
|
3544
|
-
hasText: roleName
|
|
3545
|
-
});
|
|
3546
|
-
await (0, $hOLA6$expect)(roleLocator.first(), `Expected role "${roleName}" for permission "${permission}"`).toBeVisible();
|
|
3547
|
-
}
|
|
3548
|
-
}
|
|
3549
|
-
async expectMembersNotToHavePermission(permission, ...roles) {
|
|
3550
|
-
const row = this.page.locator("tr", {
|
|
3551
|
-
has: this.page.locator("td", {
|
|
3552
|
-
hasText: permission
|
|
3553
|
-
})
|
|
3554
|
-
});
|
|
3555
|
-
for (const roleName of roles){
|
|
3556
|
-
const roleLocator = row.locator("li.tag", {
|
|
3557
|
-
hasText: roleName
|
|
3558
|
-
});
|
|
3559
|
-
await (0, $hOLA6$expect)(roleLocator.first(), `Expected role "${roleName}" for permission "${permission}"`).not.toBeVisible();
|
|
3560
|
-
}
|
|
3561
|
-
}
|
|
3562
|
-
async save() {
|
|
3563
|
-
const saveButton = this.page.getByRole("button", {
|
|
3564
|
-
name: "Save",
|
|
3565
|
-
exact: true
|
|
3566
|
-
});
|
|
3567
|
-
await saveButton.click();
|
|
3568
|
-
}
|
|
3569
|
-
async grantPermissionToRoles(permission, ...roles) {
|
|
3570
|
-
const row = this.page.locator("tr", {
|
|
3571
|
-
has: this.page.locator("td", {
|
|
3572
|
-
hasText: permission
|
|
3573
|
-
})
|
|
3574
|
-
});
|
|
3575
|
-
for (const roleName of roles){
|
|
3576
|
-
const roleLocator = row.locator('input[placeholder="Add..."]');
|
|
3577
|
-
await roleLocator.first().click();
|
|
3578
|
-
await roleLocator.fill(roleName);
|
|
3579
|
-
await roleLocator.press("Enter");
|
|
3580
|
-
await (0, $hOLA6$expect)(roleLocator.first(), `Expected role "${roleName}" for permission "${permission}"`).toBeVisible();
|
|
3581
|
-
}
|
|
3582
|
-
}
|
|
3583
|
-
async revokeMembersPermission(permission, ...roles) {
|
|
3584
|
-
const row = this.page.locator("tr", {
|
|
3585
|
-
has: this.page.locator("td", {
|
|
3586
|
-
hasText: permission
|
|
3587
|
-
})
|
|
3588
|
-
});
|
|
3589
|
-
for (const roleName of roles){
|
|
3590
|
-
const roleLocator = row.locator("li.tag", {
|
|
3591
|
-
hasText: roleName
|
|
3592
|
-
});
|
|
3593
|
-
const closeBtn = roleLocator.locator("a.tag-close, .tag-close, a > .xl-icon.close-icon, i.xl-icon.close-icon").first();
|
|
3594
|
-
await (0, $hOLA6$expect)(closeBtn, `Expected close button for role "${roleName}" to be visible`).toBeVisible();
|
|
3595
|
-
await closeBtn.click();
|
|
3596
|
-
await (0, $hOLA6$expect)(roleLocator.first(), `Expected role "${roleName}" for permission "${permission}"`).not.toBeVisible();
|
|
3597
|
-
}
|
|
3598
|
-
}
|
|
3599
|
-
async expectResetIsEnabled(expected) {
|
|
3600
|
-
const resetButton = this.page.getByRole("button", {
|
|
3601
|
-
name: "Reset"
|
|
3602
|
-
});
|
|
3603
|
-
if (expected) await (0, $hOLA6$expect)(resetButton).toBeEnabled();
|
|
3604
|
-
else await (0, $hOLA6$expect)(resetButton).toBeDisabled();
|
|
3605
|
-
}
|
|
3606
|
-
async expectPermissionsTableCount(locatorName) {
|
|
3607
|
-
const table = this.page.locator(locatorName);
|
|
3608
|
-
await (0, $hOLA6$expect)(table).toHaveCount(1);
|
|
3609
|
-
}
|
|
3610
|
-
async openEditor() {
|
|
3611
|
-
await this.openSubPage("Flow");
|
|
3612
|
-
return this;
|
|
3613
|
-
}
|
|
3614
|
-
async reset() {
|
|
3615
|
-
const resetButton = this.page.getByRole("button", {
|
|
3616
|
-
name: "Reset",
|
|
3617
|
-
exact: true
|
|
3618
|
-
});
|
|
3619
|
-
await resetButton.click();
|
|
3620
|
-
return this;
|
|
3621
|
-
}
|
|
3622
3627
|
async openDashboard() {
|
|
3623
3628
|
await this.util.openSideNavMenu("Dashboard");
|
|
3624
3629
|
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Dashboard")).toBeVisible();
|
|
@@ -4907,6 +4912,66 @@ class $7e73332bf754777c$export$32284f8bcf0bc407 extends (0, $9626bc9256ce31f7$ex
|
|
|
4907
4912
|
|
|
4908
4913
|
|
|
4909
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
|
+
|
|
4910
4975
|
|
|
4911
4976
|
class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
4912
4977
|
constructor(page){
|
|
@@ -4920,6 +4985,7 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
|
|
|
4920
4985
|
this.patternPage = new (0, $d13e78163af94d50$export$9b9454a7f137e99b)(page);
|
|
4921
4986
|
this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
|
|
4922
4987
|
this.variables = new (0, $dfc4ce40cbd0eb71$export$f8e64fcf447db2bf)(page);
|
|
4988
|
+
this.teamsPermissions = new (0, $112122b844be02a3$export$e2613a7eee3a1b1b)(page);
|
|
4923
4989
|
}
|
|
4924
4990
|
getFolderSearchInputLocator() {
|
|
4925
4991
|
return this.page.locator(".folder-list .folder-list-search input");
|
|
@@ -7296,6 +7362,23 @@ class $527f56b2e41ad18d$var$TemplateVariableModal extends (0, $9626bc9256ce31f7$
|
|
|
7296
7362
|
|
|
7297
7363
|
|
|
7298
7364
|
|
|
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
|
+
|
|
7299
7382
|
class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
7300
7383
|
constructor(page){
|
|
7301
7384
|
super(page);
|
|
@@ -7307,6 +7390,7 @@ class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$ex
|
|
|
7307
7390
|
this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
|
|
7308
7391
|
this.variables = new (0, $527f56b2e41ad18d$export$e0f84914460c3382)(page);
|
|
7309
7392
|
this.plannerView = new (0, $a546aadb4e6fa16a$export$5a82be0a2a261cc6)(page);
|
|
7393
|
+
this.teamsPermissions = new (0, $d7a13717805f21e8$export$f9d0ad09366026c7)(page);
|
|
7310
7394
|
}
|
|
7311
7395
|
async openTemplateMenu(menuItem) {
|
|
7312
7396
|
await this.page.locator(`navigation-sidebar ul li`).getByText(menuItem, {
|