@digital-ai/devops-page-object-release 0.0.0-snapshot-20251201054550 → 0.0.0-snapshot-20251201073056
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 +12 -57
- package/dist/main.js.map +1 -1
- package/dist/module.js +12 -57
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +2 -8
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -4979,52 +4979,6 @@ class $112122b844be02a3$export$e2613a7eee3a1b1b extends (0, $9626bc9256ce31f7$ex
|
|
|
4979
4979
|
});
|
|
4980
4980
|
await tag.locator(".close-icon").click();
|
|
4981
4981
|
}
|
|
4982
|
-
async expectPermissionReadOnly(permission, team, readOnly) {
|
|
4983
|
-
const rowLocator = this.page.locator(`table tr:has-text("${permission}")`);
|
|
4984
|
-
const tagLocator = rowLocator.locator(`.tag-label:has-text("${team}")`);
|
|
4985
|
-
if (readOnly) await (0, $hOLA6$expect)(tagLocator).toBeVisible();
|
|
4986
|
-
else {
|
|
4987
|
-
const closeIconLocator = tagLocator.locator(".. >> .tag-close");
|
|
4988
|
-
await (0, $hOLA6$expect)(closeIconLocator).toBeVisible();
|
|
4989
|
-
}
|
|
4990
|
-
}
|
|
4991
|
-
async expectTeamsNotToExist(teams, readOnly) {
|
|
4992
|
-
for (const team of teams){
|
|
4993
|
-
const teamRow = this.page.locator(`tr:has-text("${team}")`);
|
|
4994
|
-
if (readOnly) await (0, $hOLA6$expect)(teamRow.getByTitle("Delete")).toHaveCount(0);
|
|
4995
|
-
else await (0, $hOLA6$expect)(teamRow.getByTitle("Delete")).toHaveCount(1);
|
|
4996
|
-
}
|
|
4997
|
-
}
|
|
4998
|
-
async expectInheritTeamsDisabled() {
|
|
4999
|
-
const inheritCheckbox = this.page.locator(".inherit-checkbox input");
|
|
5000
|
-
await (0, $hOLA6$expect)(inheritCheckbox).toBeVisible();
|
|
5001
|
-
await (0, $hOLA6$expect)(inheritCheckbox).toBeDisabled();
|
|
5002
|
-
}
|
|
5003
|
-
async expectNewTeamButtonDisabled() {
|
|
5004
|
-
const addTeamButton = this.page.locator(".button-add-team");
|
|
5005
|
-
await (0, $hOLA6$expect)(addTeamButton).toBeDisabled();
|
|
5006
|
-
}
|
|
5007
|
-
async expectRemoveTeamButtonNotToExist() {
|
|
5008
|
-
await (0, $hOLA6$expect)(this.page.locator("#teams-permissions-table table tr .action-label")).toHaveCount(0);
|
|
5009
|
-
return this;
|
|
5010
|
-
}
|
|
5011
|
-
async expectSaveButtonDisabled() {
|
|
5012
|
-
const saveButton = this.page.getByRole("button", {
|
|
5013
|
-
name: "Save"
|
|
5014
|
-
});
|
|
5015
|
-
await (0, $hOLA6$expect)(saveButton).toBeVisible();
|
|
5016
|
-
await (0, $hOLA6$expect)(saveButton).toBeDisabled();
|
|
5017
|
-
return this;
|
|
5018
|
-
}
|
|
5019
|
-
async expectTeamsReadOnly(teams, readOnly) {
|
|
5020
|
-
for (const team of teams){
|
|
5021
|
-
const teamRow = this.page.locator("table").first().locator("tr", {
|
|
5022
|
-
hasText: team
|
|
5023
|
-
});
|
|
5024
|
-
await (0, $hOLA6$expect)(teamRow.locator(".tag-label + .tag-close")).toHaveCount(readOnly ? 0 : 1);
|
|
5025
|
-
}
|
|
5026
|
-
return this;
|
|
5027
|
-
}
|
|
5028
4982
|
async expectPermissionNotToExist(permission, team) {
|
|
5029
4983
|
const row = this.page.locator("table tr", {
|
|
5030
4984
|
hasText: permission
|
|
@@ -5609,6 +5563,12 @@ class $aa1ba8c8de3c0679$export$2fb4351c41ce6e7a extends (0, $9626bc9256ce31f7$ex
|
|
|
5609
5563
|
name: "Personal settings for admin"
|
|
5610
5564
|
})).toBeVisible();
|
|
5611
5565
|
}
|
|
5566
|
+
async verifyUserReginalSettings(userFullName) {
|
|
5567
|
+
await this.page.locator("li").getByLabel(userFullName).click();
|
|
5568
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
5569
|
+
name: "Personal regional settings"
|
|
5570
|
+
})).toBeVisible();
|
|
5571
|
+
}
|
|
5612
5572
|
async clickAccessTokens() {
|
|
5613
5573
|
await this.page.getByText("Access tokens").click();
|
|
5614
5574
|
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Access tokens")).toBeVisible();
|
|
@@ -5762,6 +5722,12 @@ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$ex
|
|
|
5762
5722
|
await this.page.getByText("Save").click();
|
|
5763
5723
|
(0, $hOLA6$expect)(await this.page.locator(".saved-text").textContent()).toContain("Last saved on ");
|
|
5764
5724
|
}
|
|
5725
|
+
async editUserProfileDateAndTimeFormat(dateFormat, timeFormat) {
|
|
5726
|
+
await this.page.locator('select[ng-model="$ctrl.profile.dateFormat"]').selectOption(dateFormat);
|
|
5727
|
+
await this.page.locator('select[ng-model="$ctrl.profile.timeFormat"]').selectOption(timeFormat);
|
|
5728
|
+
await this.page.getByText("Save").click();
|
|
5729
|
+
(0, $hOLA6$expect)(await this.page.locator(".saved-text").textContent()).toContain("Last saved on ");
|
|
5730
|
+
}
|
|
5765
5731
|
async generateNewAccessToken(tokenName, expiryOptions) {
|
|
5766
5732
|
await this.page.getByRole("button", {
|
|
5767
5733
|
name: "Generate token"
|
|
@@ -9196,17 +9162,6 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
|
9196
9162
|
await this.page.waitForSelector("#releases-content");
|
|
9197
9163
|
return new (0, $50c91328c9110668$export$b453f08936c58edb)(this.page);
|
|
9198
9164
|
}
|
|
9199
|
-
async openFolderByName(folderName) {
|
|
9200
|
-
const folder = this.page.getByTitle(folderName);
|
|
9201
|
-
await (0, $hOLA6$expect)(folder).toBeVisible({
|
|
9202
|
-
timeout: 5000
|
|
9203
|
-
});
|
|
9204
|
-
await folder.click();
|
|
9205
|
-
await (0, $hOLA6$expect)(this.page.locator(".MuiBreadcrumbs-li").getByRole("link", {
|
|
9206
|
-
name: folderName
|
|
9207
|
-
})).toBeVisible();
|
|
9208
|
-
return this;
|
|
9209
|
-
}
|
|
9210
9165
|
async openProfilePage() {
|
|
9211
9166
|
await this.page.goto(`./#/profile`);
|
|
9212
9167
|
return new (0, $a5932af323ac015a$export$3cf9c90f870f31bd)(this.page);
|