@digital-ai/devops-page-object-release 0.0.0-snapshot-20251205091732 → 0.0.0-snapshot-20251205190028
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 +8 -2
- package/dist/main.js +22 -6
- package/dist/main.js.map +1 -1
- package/dist/module.js +22 -6
- 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/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
-
## 0.0.0-snapshot-
|
|
3
|
+
## 0.0.0-snapshot-20251205190028
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- ec1a601: S-126029: Added new column details for testing account lock
|
|
8
|
+
|
|
9
|
+
## 0.0.94
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 46cad37: S-126454 - added new methods for unlocking users and verifying warning messages
|
|
8
14
|
|
|
9
15
|
## 0.0.93
|
|
10
16
|
|
package/dist/main.js
CHANGED
|
@@ -6809,6 +6809,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6809
6809
|
}).getByRole("checkbox")).toBeChecked();
|
|
6810
6810
|
}
|
|
6811
6811
|
async deleteUser(username) {
|
|
6812
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
6812
6813
|
await this.page.getByTestId(`delete-btn-${username}`).click();
|
|
6813
6814
|
await this.modal.delete();
|
|
6814
6815
|
}
|
|
@@ -6854,9 +6855,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6854
6855
|
}).locator(`td`).filter({
|
|
6855
6856
|
hasText: user.externalId
|
|
6856
6857
|
}).count()).toBeGreaterThan(0);
|
|
6857
|
-
(0, $kKeXs$playwrighttest.expect)(await this.page.
|
|
6858
|
-
hasText: user.name
|
|
6859
|
-
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
6858
|
+
(0, $kKeXs$playwrighttest.expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
|
|
6860
6859
|
}
|
|
6861
6860
|
}
|
|
6862
6861
|
async expectNoUser(username) {
|
|
@@ -6865,9 +6864,8 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6865
6864
|
}
|
|
6866
6865
|
async updateUser(username) {
|
|
6867
6866
|
await this.filterUser(username);
|
|
6868
|
-
await this.page.
|
|
6869
|
-
|
|
6870
|
-
}).locator(".icon-edit").click();
|
|
6867
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
6868
|
+
await this.page.locator(".icon-edit").click();
|
|
6871
6869
|
return this.modal;
|
|
6872
6870
|
}
|
|
6873
6871
|
async sortByColumn(columnName, columnIndex) {
|
|
@@ -6902,6 +6900,24 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6902
6900
|
})).toHaveCount(0);
|
|
6903
6901
|
return this;
|
|
6904
6902
|
}
|
|
6903
|
+
async expectUserUnlockedToaster(user) {
|
|
6904
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
|
|
6905
|
+
timeout: 10000
|
|
6906
|
+
});
|
|
6907
|
+
}
|
|
6908
|
+
async unlockUser(user) {
|
|
6909
|
+
await this.page.getByTestId(`unlock-btn-${user}`).click();
|
|
6910
|
+
}
|
|
6911
|
+
async expectWarningVisibility(warningRegex, shouldBeVisible) {
|
|
6912
|
+
const locator = this.page.getByText(warningRegex);
|
|
6913
|
+
if (shouldBeVisible) await (0, $kKeXs$playwrighttest.expect)(locator).toHaveCount(1);
|
|
6914
|
+
else await (0, $kKeXs$playwrighttest.expect)(locator).toHaveCount(0);
|
|
6915
|
+
}
|
|
6916
|
+
async editUserClickCancelButton() {
|
|
6917
|
+
await this.page.getByRole("button", {
|
|
6918
|
+
name: "Cancel"
|
|
6919
|
+
}).click();
|
|
6920
|
+
}
|
|
6905
6921
|
}
|
|
6906
6922
|
|
|
6907
6923
|
|