@digital-ai/devops-page-object-release 0.0.95 → 0.0.97
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 +13 -0
- package/dist/main.js +56 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +56 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
+
## 0.0.97
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d9df9fb: S-126029: Added new column details for testing account lock
|
|
8
|
+
- 686fc2e: S-126903: Migrated release-tags-scenario to playwright
|
|
9
|
+
|
|
10
|
+
## 0.0.96
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 192cd69: S-126989: Migrated to release-download-ics-scenario to playwright
|
|
15
|
+
|
|
3
16
|
## 0.0.95
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -3695,6 +3695,24 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
|
|
|
3695
3695
|
hasText: filename
|
|
3696
3696
|
})).not.toBeVisible();
|
|
3697
3697
|
}
|
|
3698
|
+
async expectSubscribeLinkIsPublic() {
|
|
3699
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("checkbox", {
|
|
3700
|
+
name: "Publish Link"
|
|
3701
|
+
})).toBeChecked();
|
|
3702
|
+
}
|
|
3703
|
+
async expectSubscribeLinkIsPrivate() {
|
|
3704
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("checkbox", {
|
|
3705
|
+
name: "Publish Link"
|
|
3706
|
+
})).not.toBeChecked();
|
|
3707
|
+
}
|
|
3708
|
+
async setSubscribeLink(isPublic) {
|
|
3709
|
+
const isChecked = await this.page.getByRole("checkbox", {
|
|
3710
|
+
name: "Publish Link"
|
|
3711
|
+
}).isChecked();
|
|
3712
|
+
if (isChecked !== isPublic) await this.page.getByRole("checkbox", {
|
|
3713
|
+
name: "Publish Link"
|
|
3714
|
+
}).click();
|
|
3715
|
+
}
|
|
3698
3716
|
async downloadFile(filename) {
|
|
3699
3717
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
3700
3718
|
const downloadPromise1 = this.page.waitForEvent("download");
|
|
@@ -3704,6 +3722,19 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
|
|
|
3704
3722
|
await download.saveAs("./core/xlr-ui/build/playwright/" + download.suggestedFilename());
|
|
3705
3723
|
(0, $kKeXs$playwrighttest.expect)(download.suggestedFilename()).toBe(filename);
|
|
3706
3724
|
}
|
|
3725
|
+
async verifyCalendarEventDownload(releaseName) {
|
|
3726
|
+
// Start listening for download event
|
|
3727
|
+
const downloadPromise1 = this.page.waitForEvent("download");
|
|
3728
|
+
const expectedFilename = `${releaseName}.ics`;
|
|
3729
|
+
// Trigger the download
|
|
3730
|
+
await this.page.getByRole("button", {
|
|
3731
|
+
name: "Download calendar event"
|
|
3732
|
+
}).click();
|
|
3733
|
+
// Wait for the download to complete
|
|
3734
|
+
const download = await downloadPromise1;
|
|
3735
|
+
// Validate the file name
|
|
3736
|
+
(0, $kKeXs$playwrighttest.expect)(download.suggestedFilename()).toBe(expectedFilename);
|
|
3737
|
+
}
|
|
3707
3738
|
async deleteAttachment(fileName) {
|
|
3708
3739
|
await this.page.getByRole("row", {
|
|
3709
3740
|
name: fileName
|
|
@@ -3842,6 +3873,27 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
|
|
|
3842
3873
|
async expectReleaseTaggedWith(tagName) {
|
|
3843
3874
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#tags")).toContainText(tagName);
|
|
3844
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
|
+
}
|
|
3845
3897
|
async expectTemplateTitleToBe(templateTitle) {
|
|
3846
3898
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('[data-test="created-from-template"]')).toContainText(templateTitle);
|
|
3847
3899
|
}
|
|
@@ -6840,6 +6892,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6840
6892
|
}).locator(`td`).filter({
|
|
6841
6893
|
hasText: type
|
|
6842
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();
|
|
6843
6898
|
if (user.email) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
|
|
6844
6899
|
hasText: user.name
|
|
6845
6900
|
}).locator(`td`).filter({
|
|
@@ -6904,7 +6959,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6904
6959
|
return this;
|
|
6905
6960
|
}
|
|
6906
6961
|
async expectUserUnlockedToaster(user) {
|
|
6907
|
-
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({
|
|
6908
6963
|
timeout: 10000
|
|
6909
6964
|
});
|
|
6910
6965
|
}
|