@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/dist/module.js
CHANGED
|
@@ -2755,6 +2755,24 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
|
|
|
2755
2755
|
hasText: filename
|
|
2756
2756
|
})).not.toBeVisible();
|
|
2757
2757
|
}
|
|
2758
|
+
async expectSubscribeLinkIsPublic() {
|
|
2759
|
+
await (0, $hOLA6$expect)(this.page.getByRole("checkbox", {
|
|
2760
|
+
name: "Publish Link"
|
|
2761
|
+
})).toBeChecked();
|
|
2762
|
+
}
|
|
2763
|
+
async expectSubscribeLinkIsPrivate() {
|
|
2764
|
+
await (0, $hOLA6$expect)(this.page.getByRole("checkbox", {
|
|
2765
|
+
name: "Publish Link"
|
|
2766
|
+
})).not.toBeChecked();
|
|
2767
|
+
}
|
|
2768
|
+
async setSubscribeLink(isPublic) {
|
|
2769
|
+
const isChecked = await this.page.getByRole("checkbox", {
|
|
2770
|
+
name: "Publish Link"
|
|
2771
|
+
}).isChecked();
|
|
2772
|
+
if (isChecked !== isPublic) await this.page.getByRole("checkbox", {
|
|
2773
|
+
name: "Publish Link"
|
|
2774
|
+
}).click();
|
|
2775
|
+
}
|
|
2758
2776
|
async downloadFile(filename) {
|
|
2759
2777
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2760
2778
|
const downloadPromise1 = this.page.waitForEvent("download");
|
|
@@ -5873,7 +5891,6 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5873
5891
|
}).getByRole("checkbox")).toBeChecked();
|
|
5874
5892
|
}
|
|
5875
5893
|
async deleteUser(username) {
|
|
5876
|
-
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
5877
5894
|
await this.page.getByTestId(`delete-btn-${username}`).click();
|
|
5878
5895
|
await this.modal.delete();
|
|
5879
5896
|
}
|
|
@@ -5901,9 +5918,6 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5901
5918
|
}).locator(`td`).filter({
|
|
5902
5919
|
hasText: type
|
|
5903
5920
|
}).count()).toBeGreaterThan(0);
|
|
5904
|
-
if (user.accountLocked) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
|
|
5905
|
-
hasText: user.name
|
|
5906
|
-
}).locator('[data-testid="user-account-lock"]').isVisible()).toBeTruthy();
|
|
5907
5921
|
if (user.email) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
|
|
5908
5922
|
hasText: user.name
|
|
5909
5923
|
}).locator(`td`).filter({
|
|
@@ -5919,7 +5933,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5919
5933
|
}).locator(`td`).filter({
|
|
5920
5934
|
hasText: user.externalId
|
|
5921
5935
|
}).count()).toBeGreaterThan(0);
|
|
5922
|
-
(0, $hOLA6$expect)(await this.page.
|
|
5936
|
+
(0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
|
|
5937
|
+
hasText: user.name
|
|
5938
|
+
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
5923
5939
|
}
|
|
5924
5940
|
}
|
|
5925
5941
|
async expectNoUser(username) {
|
|
@@ -5928,8 +5944,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5928
5944
|
}
|
|
5929
5945
|
async updateUser(username) {
|
|
5930
5946
|
await this.filterUser(username);
|
|
5931
|
-
await this.page.
|
|
5932
|
-
|
|
5947
|
+
await this.page.getByRole("row", {
|
|
5948
|
+
name: "" + username + ""
|
|
5949
|
+
}).locator(".icon-edit").click();
|
|
5933
5950
|
return this.modal;
|
|
5934
5951
|
}
|
|
5935
5952
|
async sortByColumn(columnName, columnIndex) {
|
|
@@ -5964,24 +5981,6 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5964
5981
|
})).toHaveCount(0);
|
|
5965
5982
|
return this;
|
|
5966
5983
|
}
|
|
5967
|
-
async expectUserUnlockedToaster(user) {
|
|
5968
|
-
await (0, $hOLA6$expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
|
|
5969
|
-
timeout: 10000
|
|
5970
|
-
});
|
|
5971
|
-
}
|
|
5972
|
-
async unlockUser(user) {
|
|
5973
|
-
await this.page.getByTestId(`unlock-btn-${user}`).click();
|
|
5974
|
-
}
|
|
5975
|
-
async expectWarningVisibility(warningRegex, shouldBeVisible) {
|
|
5976
|
-
const locator = this.page.getByText(warningRegex);
|
|
5977
|
-
if (shouldBeVisible) await (0, $hOLA6$expect)(locator).toHaveCount(1);
|
|
5978
|
-
else await (0, $hOLA6$expect)(locator).toHaveCount(0);
|
|
5979
|
-
}
|
|
5980
|
-
async editUserClickCancelButton() {
|
|
5981
|
-
await this.page.getByRole("button", {
|
|
5982
|
-
name: "Cancel"
|
|
5983
|
-
}).click();
|
|
5984
|
-
}
|
|
5985
5984
|
}
|
|
5986
5985
|
|
|
5987
5986
|
|