@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 +12 -0
- package/dist/main.js +19 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +19 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -5860,7 +5860,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5860
5860
|
await this.modal.save();
|
|
5861
5861
|
}
|
|
5862
5862
|
async filterUser(username) {
|
|
5863
|
-
await this.page.getByPlaceholder("Filter...").fill(username);
|
|
5863
|
+
await this.page.getByPlaceholder("Filter by name, username or email ...").fill(username);
|
|
5864
5864
|
}
|
|
5865
5865
|
async expectToHaveFilteredUser(username) {
|
|
5866
5866
|
return await (0, $hOLA6$expect)(this.page.getByRole("row", {
|
|
@@ -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
|
|