@digital-ai/devops-page-object-release 0.0.0-snapshot-20251205190028 → 0.0.0-snapshot-20251208152659
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 -8
- package/dist/main.js +24 -25
- package/dist/main.js.map +1 -1
- package/dist/module.js +24 -25
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
-
## 0.0.0-snapshot-
|
|
3
|
+
## 0.0.0-snapshot-20251208152659
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
## 0.0.94
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- 46cad37: S-126454 - added new methods for unlocking users and verifying warning messages
|
|
7
|
+
- 8aa7e82: S-126989: Migrated to release-download-ics-scenario to playwright
|
|
14
8
|
|
|
15
9
|
## 0.0.93
|
|
16
10
|
|
package/dist/main.js
CHANGED
|
@@ -3691,6 +3691,24 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
|
|
|
3691
3691
|
hasText: filename
|
|
3692
3692
|
})).not.toBeVisible();
|
|
3693
3693
|
}
|
|
3694
|
+
async expectSubscribeLinkIsPublic() {
|
|
3695
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("checkbox", {
|
|
3696
|
+
name: "Publish Link"
|
|
3697
|
+
})).toBeChecked();
|
|
3698
|
+
}
|
|
3699
|
+
async expectSubscribeLinkIsPrivate() {
|
|
3700
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("checkbox", {
|
|
3701
|
+
name: "Publish Link"
|
|
3702
|
+
})).not.toBeChecked();
|
|
3703
|
+
}
|
|
3704
|
+
async setSubscribeLink(isPublic) {
|
|
3705
|
+
const isChecked = await this.page.getByRole("checkbox", {
|
|
3706
|
+
name: "Publish Link"
|
|
3707
|
+
}).isChecked();
|
|
3708
|
+
if (isChecked !== isPublic) await this.page.getByRole("checkbox", {
|
|
3709
|
+
name: "Publish Link"
|
|
3710
|
+
}).click();
|
|
3711
|
+
}
|
|
3694
3712
|
async downloadFile(filename) {
|
|
3695
3713
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
3696
3714
|
const downloadPromise1 = this.page.waitForEvent("download");
|
|
@@ -6809,7 +6827,6 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6809
6827
|
}).getByRole("checkbox")).toBeChecked();
|
|
6810
6828
|
}
|
|
6811
6829
|
async deleteUser(username) {
|
|
6812
|
-
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
6813
6830
|
await this.page.getByTestId(`delete-btn-${username}`).click();
|
|
6814
6831
|
await this.modal.delete();
|
|
6815
6832
|
}
|
|
@@ -6837,9 +6854,6 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6837
6854
|
}).locator(`td`).filter({
|
|
6838
6855
|
hasText: type
|
|
6839
6856
|
}).count()).toBeGreaterThan(0);
|
|
6840
|
-
if (user.accountLocked) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6841
|
-
hasText: user.name
|
|
6842
|
-
}).locator('[data-testid="user-account-lock"]').isVisible()).toBeTruthy();
|
|
6843
6857
|
if (user.email) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6844
6858
|
hasText: user.name
|
|
6845
6859
|
}).locator(`td`).filter({
|
|
@@ -6855,7 +6869,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6855
6869
|
}).locator(`td`).filter({
|
|
6856
6870
|
hasText: user.externalId
|
|
6857
6871
|
}).count()).toBeGreaterThan(0);
|
|
6858
|
-
(0, $kKeXs$playwrighttest.expect)(await this.page.
|
|
6872
|
+
(0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6873
|
+
hasText: user.name
|
|
6874
|
+
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
6859
6875
|
}
|
|
6860
6876
|
}
|
|
6861
6877
|
async expectNoUser(username) {
|
|
@@ -6864,8 +6880,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6864
6880
|
}
|
|
6865
6881
|
async updateUser(username) {
|
|
6866
6882
|
await this.filterUser(username);
|
|
6867
|
-
await this.page.
|
|
6868
|
-
|
|
6883
|
+
await this.page.getByRole("row", {
|
|
6884
|
+
name: "" + username + ""
|
|
6885
|
+
}).locator(".icon-edit").click();
|
|
6869
6886
|
return this.modal;
|
|
6870
6887
|
}
|
|
6871
6888
|
async sortByColumn(columnName, columnIndex) {
|
|
@@ -6900,24 +6917,6 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6900
6917
|
})).toHaveCount(0);
|
|
6901
6918
|
return this;
|
|
6902
6919
|
}
|
|
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
|
-
}
|
|
6921
6920
|
}
|
|
6922
6921
|
|
|
6923
6922
|
|