@digital-ai/devops-page-object-release 0.0.0-snapshot-20251209141752 → 0.0.0-snapshot-20251210075018
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 +8 -28
- package/dist/main.js.map +1 -1
- package/dist/module.js +8 -28
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +1 -3
- 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-20251210075018
|
|
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
|
@@ -3873,27 +3873,6 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
|
|
|
3873
3873
|
async expectReleaseTaggedWith(tagName) {
|
|
3874
3874
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#tags")).toContainText(tagName);
|
|
3875
3875
|
}
|
|
3876
|
-
async expectReleaseNotTaggedWith(tagName) {
|
|
3877
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`#tags`, {
|
|
3878
|
-
hasText: tagName
|
|
3879
|
-
})).toHaveCount(0);
|
|
3880
|
-
}
|
|
3881
|
-
async addTag(tagName) {
|
|
3882
|
-
const tagInput = this.page.locator('input[placeholder="Add a tag..."]');
|
|
3883
|
-
await tagInput.fill(tagName);
|
|
3884
|
-
await tagInput.press("Enter");
|
|
3885
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`#tags`, {
|
|
3886
|
-
hasText: tagName
|
|
3887
|
-
})).toBeVisible();
|
|
3888
|
-
}
|
|
3889
|
-
async removeTag(tagName) {
|
|
3890
|
-
const tag = this.page.locator(`#tags`, {
|
|
3891
|
-
hasText: tagName
|
|
3892
|
-
});
|
|
3893
|
-
const removeIcon = tag.locator(".tag-close");
|
|
3894
|
-
await removeIcon.click();
|
|
3895
|
-
await (0, $kKeXs$playwrighttest.expect)(tag).toHaveCount(0);
|
|
3896
|
-
}
|
|
3897
3876
|
async expectTemplateTitleToBe(templateTitle) {
|
|
3898
3877
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('[data-test="created-from-template"]')).toContainText(templateTitle);
|
|
3899
3878
|
}
|
|
@@ -6865,7 +6844,8 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6865
6844
|
}).getByRole("checkbox")).toBeChecked();
|
|
6866
6845
|
}
|
|
6867
6846
|
async deleteUser(username) {
|
|
6868
|
-
await this.page.getByTestId(`
|
|
6847
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
6848
|
+
await this.page.locator(".icon-delete").click();
|
|
6869
6849
|
await this.modal.delete();
|
|
6870
6850
|
}
|
|
6871
6851
|
async openRoles() {
|
|
@@ -6892,6 +6872,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6892
6872
|
}).locator(`td`).filter({
|
|
6893
6873
|
hasText: type
|
|
6894
6874
|
}).count()).toBeGreaterThan(0);
|
|
6875
|
+
if (user.accountLocked) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6876
|
+
hasText: user.name
|
|
6877
|
+
}).locator('[data-testid="user-account-lock"]').isVisible()).toBeTruthy();
|
|
6895
6878
|
if (user.email) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6896
6879
|
hasText: user.name
|
|
6897
6880
|
}).locator(`td`).filter({
|
|
@@ -6907,9 +6890,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6907
6890
|
}).locator(`td`).filter({
|
|
6908
6891
|
hasText: user.externalId
|
|
6909
6892
|
}).count()).toBeGreaterThan(0);
|
|
6910
|
-
(0, $kKeXs$playwrighttest.expect)(await this.page.
|
|
6911
|
-
hasText: user.name
|
|
6912
|
-
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
6893
|
+
(0, $kKeXs$playwrighttest.expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
|
|
6913
6894
|
}
|
|
6914
6895
|
}
|
|
6915
6896
|
async expectNoUser(username) {
|
|
@@ -6918,9 +6899,8 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6918
6899
|
}
|
|
6919
6900
|
async updateUser(username) {
|
|
6920
6901
|
await this.filterUser(username);
|
|
6921
|
-
await this.page.
|
|
6922
|
-
|
|
6923
|
-
}).locator(".icon-edit").click();
|
|
6902
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
6903
|
+
await this.page.locator(".icon-edit").click();
|
|
6924
6904
|
return this.modal;
|
|
6925
6905
|
}
|
|
6926
6906
|
async sortByColumn(columnName, columnIndex) {
|