@digital-ai/devops-page-object-release 0.0.93 → 0.0.94

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
@@ -5963,6 +5963,24 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5963
5963
  })).toHaveCount(0);
5964
5964
  return this;
5965
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).toHaveCount(1);
5977
+ else await (0, $hOLA6$expect)(locator).toHaveCount(0);
5978
+ }
5979
+ async editUserClickCancelButton() {
5980
+ await this.page.getByRole("button", {
5981
+ name: "Cancel"
5982
+ }).click();
5983
+ }
5966
5984
  }
5967
5985
 
5968
5986