@digital-ai/devops-page-object-release 0.0.0-snapshot-20251201073056 → 0.0.0-snapshot-20251204060936
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 +19 -12
- package/dist/main.js.map +1 -1
- package/dist/module.js +19 -12
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +4 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
-
## 0.0.0-snapshot-
|
|
3
|
+
## 0.0.0-snapshot-20251204060936
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- 94dc456: S-126454 - added new methods for
|
|
7
|
+
- 94dc456: S-126454 - added new methods for unlocking users and verifying warning messages
|
|
8
8
|
|
|
9
9
|
## 0.0.93
|
|
10
10
|
|
package/dist/main.js
CHANGED
|
@@ -6499,12 +6499,6 @@ class $00fc48341ebf7de4$export$2fb4351c41ce6e7a extends (0, $f8721861c660dd88$ex
|
|
|
6499
6499
|
name: "Personal settings for admin"
|
|
6500
6500
|
})).toBeVisible();
|
|
6501
6501
|
}
|
|
6502
|
-
async verifyUserReginalSettings(userFullName) {
|
|
6503
|
-
await this.page.locator("li").getByLabel(userFullName).click();
|
|
6504
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("heading", {
|
|
6505
|
-
name: "Personal regional settings"
|
|
6506
|
-
})).toBeVisible();
|
|
6507
|
-
}
|
|
6508
6502
|
async clickAccessTokens() {
|
|
6509
6503
|
await this.page.getByText("Access tokens").click();
|
|
6510
6504
|
await (0, $kKeXs$playwrighttest.expect)(this.page.getByLabel("breadcrumb").getByText("Access tokens")).toBeVisible();
|
|
@@ -6658,12 +6652,6 @@ class $010122e1d9b28b80$export$3cf9c90f870f31bd extends (0, $f8721861c660dd88$ex
|
|
|
6658
6652
|
await this.page.getByText("Save").click();
|
|
6659
6653
|
(0, $kKeXs$playwrighttest.expect)(await this.page.locator(".saved-text").textContent()).toContain("Last saved on ");
|
|
6660
6654
|
}
|
|
6661
|
-
async editUserProfileDateAndTimeFormat(dateFormat, timeFormat) {
|
|
6662
|
-
await this.page.locator('select[ng-model="$ctrl.profile.dateFormat"]').selectOption(dateFormat);
|
|
6663
|
-
await this.page.locator('select[ng-model="$ctrl.profile.timeFormat"]').selectOption(timeFormat);
|
|
6664
|
-
await this.page.getByText("Save").click();
|
|
6665
|
-
(0, $kKeXs$playwrighttest.expect)(await this.page.locator(".saved-text").textContent()).toContain("Last saved on ");
|
|
6666
|
-
}
|
|
6667
6655
|
async generateNewAccessToken(tokenName, expiryOptions) {
|
|
6668
6656
|
await this.page.getByRole("button", {
|
|
6669
6657
|
name: "Generate token"
|
|
@@ -6911,6 +6899,25 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6911
6899
|
})).toHaveCount(0);
|
|
6912
6900
|
return this;
|
|
6913
6901
|
}
|
|
6902
|
+
async expectUserUnlockedToaster(user) {
|
|
6903
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
|
|
6904
|
+
timeout: 10000
|
|
6905
|
+
});
|
|
6906
|
+
}
|
|
6907
|
+
async unlockUser(user) {
|
|
6908
|
+
await this.page.getByTestId(`unlock-btn-${user}`).click();
|
|
6909
|
+
}
|
|
6910
|
+
async expectWarningVisibility(warningRegex, shouldBeVisible) {
|
|
6911
|
+
const locator = this.page.getByText(warningRegex);
|
|
6912
|
+
if (shouldBeVisible) await (0, $kKeXs$playwrighttest.expect)(locator).toBeVisible();
|
|
6913
|
+
else await (0, $kKeXs$playwrighttest.expect)(locator).toHaveCount(0);
|
|
6914
|
+
return this;
|
|
6915
|
+
}
|
|
6916
|
+
async editUserClickCancelButton() {
|
|
6917
|
+
await this.page.getByRole("button", {
|
|
6918
|
+
name: "Cancel"
|
|
6919
|
+
}).click();
|
|
6920
|
+
}
|
|
6914
6921
|
}
|
|
6915
6922
|
|
|
6916
6923
|
|