@digital-ai/devops-page-object-release 0.0.0-snapshot-20251205202250 → 0.0.0-snapshot-20251209071345
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 +38 -26
- package/dist/main.js.map +1 -1
- package/dist/module.js +38 -26
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +6 -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-20251209071345
|
|
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");
|
|
@@ -3700,6 +3718,19 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
|
|
|
3700
3718
|
await download.saveAs("./core/xlr-ui/build/playwright/" + download.suggestedFilename());
|
|
3701
3719
|
(0, $kKeXs$playwrighttest.expect)(download.suggestedFilename()).toBe(filename);
|
|
3702
3720
|
}
|
|
3721
|
+
async verifyCalendarEventDownload(releaseName) {
|
|
3722
|
+
// Start listening for download event
|
|
3723
|
+
const downloadPromise1 = this.page.waitForEvent("download");
|
|
3724
|
+
const expectedFilename = `${releaseName}.ics`;
|
|
3725
|
+
// Trigger the download
|
|
3726
|
+
await this.page.getByRole("button", {
|
|
3727
|
+
name: "Download calendar event"
|
|
3728
|
+
}).click();
|
|
3729
|
+
// Wait for the download to complete
|
|
3730
|
+
const download = await downloadPromise1;
|
|
3731
|
+
// Validate the file name
|
|
3732
|
+
(0, $kKeXs$playwrighttest.expect)(download.suggestedFilename()).toBe(expectedFilename);
|
|
3733
|
+
}
|
|
3703
3734
|
async deleteAttachment(fileName) {
|
|
3704
3735
|
await this.page.getByRole("row", {
|
|
3705
3736
|
name: fileName
|
|
@@ -6809,8 +6840,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6809
6840
|
}).getByRole("checkbox")).toBeChecked();
|
|
6810
6841
|
}
|
|
6811
6842
|
async deleteUser(username) {
|
|
6812
|
-
await this.page.getByTestId(`
|
|
6813
|
-
await this.page.locator(".icon-delete").click();
|
|
6843
|
+
await this.page.getByTestId(`delete-btn-${username}`).click();
|
|
6814
6844
|
await this.modal.delete();
|
|
6815
6845
|
}
|
|
6816
6846
|
async openRoles() {
|
|
@@ -6837,9 +6867,6 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6837
6867
|
}).locator(`td`).filter({
|
|
6838
6868
|
hasText: type
|
|
6839
6869
|
}).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
6870
|
if (user.email) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6844
6871
|
hasText: user.name
|
|
6845
6872
|
}).locator(`td`).filter({
|
|
@@ -6855,7 +6882,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6855
6882
|
}).locator(`td`).filter({
|
|
6856
6883
|
hasText: user.externalId
|
|
6857
6884
|
}).count()).toBeGreaterThan(0);
|
|
6858
|
-
(0, $kKeXs$playwrighttest.expect)(await this.page.
|
|
6885
|
+
(0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6886
|
+
hasText: user.name
|
|
6887
|
+
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
6859
6888
|
}
|
|
6860
6889
|
}
|
|
6861
6890
|
async expectNoUser(username) {
|
|
@@ -6864,8 +6893,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6864
6893
|
}
|
|
6865
6894
|
async updateUser(username) {
|
|
6866
6895
|
await this.filterUser(username);
|
|
6867
|
-
await this.page.
|
|
6868
|
-
|
|
6896
|
+
await this.page.getByRole("row", {
|
|
6897
|
+
name: "" + username + ""
|
|
6898
|
+
}).locator(".icon-edit").click();
|
|
6869
6899
|
return this.modal;
|
|
6870
6900
|
}
|
|
6871
6901
|
async sortByColumn(columnName, columnIndex) {
|
|
@@ -6900,24 +6930,6 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6900
6930
|
})).toHaveCount(0);
|
|
6901
6931
|
return this;
|
|
6902
6932
|
}
|
|
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
6933
|
}
|
|
6922
6934
|
|
|
6923
6935
|
|