@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/dist/module.js CHANGED
@@ -5563,12 +5563,6 @@ class $aa1ba8c8de3c0679$export$2fb4351c41ce6e7a extends (0, $9626bc9256ce31f7$ex
5563
5563
  name: "Personal settings for admin"
5564
5564
  })).toBeVisible();
5565
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
- }
5572
5566
  async clickAccessTokens() {
5573
5567
  await this.page.getByText("Access tokens").click();
5574
5568
  await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Access tokens")).toBeVisible();
@@ -5722,12 +5716,6 @@ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$ex
5722
5716
  await this.page.getByText("Save").click();
5723
5717
  (0, $hOLA6$expect)(await this.page.locator(".saved-text").textContent()).toContain("Last saved on ");
5724
5718
  }
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
- }
5731
5719
  async generateNewAccessToken(tokenName, expiryOptions) {
5732
5720
  await this.page.getByRole("button", {
5733
5721
  name: "Generate token"
@@ -5975,6 +5963,25 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5975
5963
  })).toHaveCount(0);
5976
5964
  return this;
5977
5965
  }
5966
+ async expectUserUnlockedToaster(user) {
5967
+ await (0, $hOLA6$expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
5968
+ timeout: 10000
5969
+ });
5970
+ }
5971
+ async unlockUser(user) {
5972
+ await this.page.getByTestId(`unlock-btn-${user}`).click();
5973
+ }
5974
+ async expectWarningVisibility(warningRegex, shouldBeVisible) {
5975
+ const locator = this.page.getByText(warningRegex);
5976
+ if (shouldBeVisible) await (0, $hOLA6$expect)(locator).toBeVisible();
5977
+ else await (0, $hOLA6$expect)(locator).toHaveCount(0);
5978
+ return this;
5979
+ }
5980
+ async editUserClickCancelButton() {
5981
+ await this.page.getByRole("button", {
5982
+ name: "Cancel"
5983
+ }).click();
5984
+ }
5978
5985
  }
5979
5986
 
5980
5987