@digital-ai/devops-page-object-release 0.0.0-snapshot-20251210041025 → 0.0.0-snapshot-20251210102728
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 +2 -2
- package/dist/main.js +6 -11
- package/dist/main.js.map +1 -1
- package/dist/module.js +6 -11
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
-
## 0.0.0-snapshot-
|
|
3
|
+
## 0.0.0-snapshot-20251210102728
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- ec1a601: S-126029: Added new column details for testing account lock
|
|
8
8
|
|
|
9
9
|
## 0.0.96
|
|
10
10
|
|
package/dist/main.js
CHANGED
|
@@ -6844,7 +6844,8 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6844
6844
|
}).getByRole("checkbox")).toBeChecked();
|
|
6845
6845
|
}
|
|
6846
6846
|
async deleteUser(username) {
|
|
6847
|
-
await this.page.getByTestId(`
|
|
6847
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
6848
|
+
await this.page.locator(".icon-delete").click();
|
|
6848
6849
|
await this.modal.delete();
|
|
6849
6850
|
}
|
|
6850
6851
|
async openRoles() {
|
|
@@ -6871,9 +6872,6 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6871
6872
|
}).locator(`td`).filter({
|
|
6872
6873
|
hasText: type
|
|
6873
6874
|
}).count()).toBeGreaterThan(0);
|
|
6874
|
-
if (user.accountLocked) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6875
|
-
hasText: user.name
|
|
6876
|
-
}).locator('[data-testid="user-account-lock"]').isVisible()).toBeTruthy();
|
|
6877
6875
|
if (user.email) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6878
6876
|
hasText: user.name
|
|
6879
6877
|
}).locator(`td`).filter({
|
|
@@ -6889,9 +6887,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6889
6887
|
}).locator(`td`).filter({
|
|
6890
6888
|
hasText: user.externalId
|
|
6891
6889
|
}).count()).toBeGreaterThan(0);
|
|
6892
|
-
(0, $kKeXs$playwrighttest.expect)(await this.page.
|
|
6893
|
-
hasText: user.name
|
|
6894
|
-
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
6890
|
+
(0, $kKeXs$playwrighttest.expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
|
|
6895
6891
|
}
|
|
6896
6892
|
}
|
|
6897
6893
|
async expectNoUser(username) {
|
|
@@ -6900,9 +6896,8 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6900
6896
|
}
|
|
6901
6897
|
async updateUser(username) {
|
|
6902
6898
|
await this.filterUser(username);
|
|
6903
|
-
await this.page.
|
|
6904
|
-
|
|
6905
|
-
}).locator(".icon-edit").click();
|
|
6899
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
6900
|
+
await this.page.locator(".icon-edit").click();
|
|
6906
6901
|
return this.modal;
|
|
6907
6902
|
}
|
|
6908
6903
|
async sortByColumn(columnName, columnIndex) {
|
|
@@ -6938,7 +6933,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6938
6933
|
return this;
|
|
6939
6934
|
}
|
|
6940
6935
|
async expectUserUnlockedToaster(user) {
|
|
6941
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(`User ${user}
|
|
6936
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
|
|
6942
6937
|
timeout: 10000
|
|
6943
6938
|
});
|
|
6944
6939
|
}
|