@digital-ai/devops-page-object-release 0.0.92 → 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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.94
4
+
5
+ ### Patch Changes
6
+
7
+ - 46cad37: S-126454 - added new methods for unlocking users and verifying warning messages
8
+
9
+ ## 0.0.93
10
+
11
+ ### Patch Changes
12
+
13
+ - 8fd6062: Corrected the User Filter placeholder to the new UI label change
14
+
3
15
  ## 0.0.92
4
16
 
5
17
  ### Patch Changes
package/dist/main.js CHANGED
@@ -6796,7 +6796,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6796
6796
  await this.modal.save();
6797
6797
  }
6798
6798
  async filterUser(username) {
6799
- await this.page.getByPlaceholder("Filter...").fill(username);
6799
+ await this.page.getByPlaceholder("Filter by name, username or email ...").fill(username);
6800
6800
  }
6801
6801
  async expectToHaveFilteredUser(username) {
6802
6802
  return await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("row", {
@@ -6899,6 +6899,24 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6899
6899
  })).toHaveCount(0);
6900
6900
  return this;
6901
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).toHaveCount(1);
6913
+ else await (0, $kKeXs$playwrighttest.expect)(locator).toHaveCount(0);
6914
+ }
6915
+ async editUserClickCancelButton() {
6916
+ await this.page.getByRole("button", {
6917
+ name: "Cancel"
6918
+ }).click();
6919
+ }
6902
6920
  }
6903
6921
 
6904
6922