@digital-ai/devops-page-object-release 0.0.0-snapshot-20251210102728 → 0.0.0-snapshot-20251212071754
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 +3 -2
- package/dist/main.js +32 -6
- package/dist/main.js.map +1 -1
- package/dist/module.js +32 -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,11 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
-
## 0.0.0-snapshot-
|
|
3
|
+
## 0.0.0-snapshot-20251212071754
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 294fb2f: S-126029: Added new column details for testing account lock
|
|
8
|
+
- 686fc2e: S-126903: Migrated release-tags-scenario to playwright
|
|
8
9
|
|
|
9
10
|
## 0.0.96
|
|
10
11
|
|
package/dist/main.js
CHANGED
|
@@ -3873,6 +3873,27 @@ 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
|
+
}
|
|
3876
3897
|
async expectTemplateTitleToBe(templateTitle) {
|
|
3877
3898
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('[data-test="created-from-template"]')).toContainText(templateTitle);
|
|
3878
3899
|
}
|
|
@@ -6844,8 +6865,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6844
6865
|
}).getByRole("checkbox")).toBeChecked();
|
|
6845
6866
|
}
|
|
6846
6867
|
async deleteUser(username) {
|
|
6847
|
-
await this.page.getByTestId(`
|
|
6848
|
-
await this.page.locator(".icon-delete").click();
|
|
6868
|
+
await this.page.getByTestId(`delete-btn-${username}`).click();
|
|
6849
6869
|
await this.modal.delete();
|
|
6850
6870
|
}
|
|
6851
6871
|
async openRoles() {
|
|
@@ -6872,6 +6892,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6872
6892
|
}).locator(`td`).filter({
|
|
6873
6893
|
hasText: type
|
|
6874
6894
|
}).count()).toBeGreaterThan(0);
|
|
6895
|
+
if (user.accountLocked) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6896
|
+
hasText: user.name
|
|
6897
|
+
}).locator('[data-testid="user-account-lock"]')).toBeVisible();
|
|
6875
6898
|
if (user.email) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6876
6899
|
hasText: user.name
|
|
6877
6900
|
}).locator(`td`).filter({
|
|
@@ -6887,7 +6910,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6887
6910
|
}).locator(`td`).filter({
|
|
6888
6911
|
hasText: user.externalId
|
|
6889
6912
|
}).count()).toBeGreaterThan(0);
|
|
6890
|
-
(0, $kKeXs$playwrighttest.expect)(await this.page.
|
|
6913
|
+
(0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6914
|
+
hasText: user.name
|
|
6915
|
+
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
6891
6916
|
}
|
|
6892
6917
|
}
|
|
6893
6918
|
async expectNoUser(username) {
|
|
@@ -6896,8 +6921,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6896
6921
|
}
|
|
6897
6922
|
async updateUser(username) {
|
|
6898
6923
|
await this.filterUser(username);
|
|
6899
|
-
await this.page.
|
|
6900
|
-
|
|
6924
|
+
await this.page.getByRole("row", {
|
|
6925
|
+
name: "" + username + ""
|
|
6926
|
+
}).locator(".icon-edit").click();
|
|
6901
6927
|
return this.modal;
|
|
6902
6928
|
}
|
|
6903
6929
|
async sortByColumn(columnName, columnIndex) {
|
|
@@ -6933,7 +6959,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6933
6959
|
return this;
|
|
6934
6960
|
}
|
|
6935
6961
|
async expectUserUnlockedToaster(user) {
|
|
6936
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(`User ${user} unlocked
|
|
6962
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(`User ${user} was unlocked and can now login in again`)).toBeVisible({
|
|
6937
6963
|
timeout: 10000
|
|
6938
6964
|
});
|
|
6939
6965
|
}
|