@digital-ai/devops-page-object-release 0.0.27 → 0.0.28
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 +7 -0
- package/dist/main.js +441 -114
- package/dist/main.js.map +1 -1
- package/dist/module.js +441 -114
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +110 -33
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -639,6 +639,123 @@ class $dfc4ce40cbd0eb71$var$DeleteVariableModel extends (0, $9626bc9256ce31f7$ex
|
|
|
639
639
|
|
|
640
640
|
|
|
641
641
|
|
|
642
|
+
class $69e86f559cdf2bd0$export$15d3f9b095bb5188 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
643
|
+
async expectCommentToContain(comment) {
|
|
644
|
+
(0, $hOLA6$expect)(await this.page.locator(".markdown-wrapper").textContent()).toContain(comment);
|
|
645
|
+
}
|
|
646
|
+
async expectTaskIsCommentable(isCommentable) {
|
|
647
|
+
return (0, $hOLA6$expect)(await this.page.locator("#task-comment").count()).toBe(isCommentable ? 1 : 0);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
class $9c357602b6f466e7$export$aa59788fdecae2f2 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
655
|
+
async expectWithAttachment(filename) {
|
|
656
|
+
const test = this.page.locator(".task-attachments-grid .file-item-text");
|
|
657
|
+
await test.isVisible();
|
|
658
|
+
await (0, $hOLA6$expect)(test).toContainText(filename);
|
|
659
|
+
}
|
|
660
|
+
async getAttachmentsListCount() {
|
|
661
|
+
return await this.page.locator(".file-upload-list div").count();
|
|
662
|
+
}
|
|
663
|
+
async uploadFile(filePath) {
|
|
664
|
+
const fileChooserPromise = this.page.waitForEvent("filechooser");
|
|
665
|
+
await this.page.getByRole("button", {
|
|
666
|
+
name: "Select file(s)"
|
|
667
|
+
}).click();
|
|
668
|
+
const fileChooser = await fileChooserPromise;
|
|
669
|
+
await fileChooser.setFiles(filePath);
|
|
670
|
+
}
|
|
671
|
+
async downloadFile(filename) {
|
|
672
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
673
|
+
this.page.on("download", ()=>{});
|
|
674
|
+
const downloadPromise = this.page.waitForEvent("download");
|
|
675
|
+
await this.page.locator("li").filter({
|
|
676
|
+
hasText: "" + filename + ""
|
|
677
|
+
}).click();
|
|
678
|
+
await downloadPromise;
|
|
679
|
+
}
|
|
680
|
+
async deleteAttachment(fileName) {
|
|
681
|
+
await this.page.locator("li").filter({
|
|
682
|
+
hasText: fileName
|
|
683
|
+
}).click();
|
|
684
|
+
await this.page.getByLabel("delete file").click();
|
|
685
|
+
await this.page.getByRole("button", {
|
|
686
|
+
name: "Delete"
|
|
687
|
+
}).waitFor({
|
|
688
|
+
state: "visible"
|
|
689
|
+
});
|
|
690
|
+
await this.page.getByRole("button", {
|
|
691
|
+
name: "Delete"
|
|
692
|
+
}).click();
|
|
693
|
+
}
|
|
694
|
+
async expectWithNoAttachment(tempFile) {
|
|
695
|
+
const test = await this.page.locator(".task-attachments-grid .file-item-text").count();
|
|
696
|
+
if (test > 0) await (0, $hOLA6$expect)(this.page.locator(".task-attachments-grid .file-item-text")).not.toContainText(tempFile);
|
|
697
|
+
else await (0, $hOLA6$expect)(this.page.locator(".task-attachments-grid .file-item-text")).not.toBeVisible();
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
class $115d1e40e2564777$export$a87b4660f21fba58 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
705
|
+
constructor(page){
|
|
706
|
+
super(page);
|
|
707
|
+
}
|
|
708
|
+
async clickAddAttribute() {
|
|
709
|
+
await this.page.getByTestId("add-btn").click();
|
|
710
|
+
}
|
|
711
|
+
async expectAttributeEditable() {
|
|
712
|
+
await (0, $hOLA6$expect)(this.page.locator("#facet-type")).not.toHaveAttribute("readonly", "");
|
|
713
|
+
}
|
|
714
|
+
async addTag(tagName) {
|
|
715
|
+
await this.page.locator("#task-tags").click();
|
|
716
|
+
await this.page.locator("#task-tags").fill(tagName);
|
|
717
|
+
await this.page.locator("#task-tags").press("Enter");
|
|
718
|
+
}
|
|
719
|
+
async expectContainsTag(tagName) {
|
|
720
|
+
if (Array.isArray(tagName)) for (const tag of tagName)await (0, $hOLA6$expect)(this.page.locator(".task-tags-wrapper .dot-chip").filter({
|
|
721
|
+
hasText: tag
|
|
722
|
+
})).toBeVisible();
|
|
723
|
+
else await (0, $hOLA6$expect)(this.page.locator(".task-tags-wrapper .dot-chip").filter({
|
|
724
|
+
hasText: tagName
|
|
725
|
+
})).toBeVisible();
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
class $3fa741329d8067d5$export$d4865631ba74f3e2 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
733
|
+
constructor(page){
|
|
734
|
+
super(page);
|
|
735
|
+
this.railLocator = this.page.locator("task-drawer .dot-drawer .task-conditions");
|
|
736
|
+
this.preconditionToggle = page.getByLabel("Enable precondition");
|
|
737
|
+
this.textEditor = page.getByRole("textbox");
|
|
738
|
+
this.saveButton = page.getByTestId("save-btn");
|
|
739
|
+
}
|
|
740
|
+
async enablePrecondition() {
|
|
741
|
+
(0, $hOLA6$expect)(await this.preconditionToggle.isChecked()).toBe(false);
|
|
742
|
+
await this.preconditionToggle.check();
|
|
743
|
+
}
|
|
744
|
+
async disablePrecondition() {
|
|
745
|
+
(0, $hOLA6$expect)(await this.preconditionToggle.isChecked()).toBe(true);
|
|
746
|
+
await this.preconditionToggle.uncheck();
|
|
747
|
+
}
|
|
748
|
+
async setPrecondition(script) {
|
|
749
|
+
await this.enablePrecondition();
|
|
750
|
+
await this.textEditor.fill(script);
|
|
751
|
+
await this.saveButton.dblclick();
|
|
752
|
+
await this.page.waitForTimeout(1000);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
|
|
642
759
|
class $e44e9af564fb00f7$export$64c93bc7fb9ca44e extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
643
760
|
constructor(page){
|
|
644
761
|
super(page);
|
|
@@ -698,39 +815,12 @@ class $e44e9af564fb00f7$export$64c93bc7fb9ca44e extends (0, $9626bc9256ce31f7$ex
|
|
|
698
815
|
|
|
699
816
|
|
|
700
817
|
|
|
701
|
-
|
|
702
|
-
class $3fa741329d8067d5$export$d4865631ba74f3e2 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
703
|
-
constructor(page){
|
|
704
|
-
super(page);
|
|
705
|
-
this.railLocator = this.page.locator("task-drawer .dot-drawer .task-conditions");
|
|
706
|
-
this.preconditionToggle = page.getByLabel("Enable precondition");
|
|
707
|
-
this.textEditor = page.getByRole("textbox");
|
|
708
|
-
this.saveButton = page.getByTestId("save-btn");
|
|
709
|
-
}
|
|
710
|
-
async enablePrecondition() {
|
|
711
|
-
(0, $hOLA6$expect)(await this.preconditionToggle.isChecked()).toBe(false);
|
|
712
|
-
await this.preconditionToggle.check();
|
|
713
|
-
}
|
|
714
|
-
async disablePrecondition() {
|
|
715
|
-
(0, $hOLA6$expect)(await this.preconditionToggle.isChecked()).toBe(true);
|
|
716
|
-
await this.preconditionToggle.uncheck();
|
|
717
|
-
}
|
|
718
|
-
async setPrecondition(script) {
|
|
719
|
-
await this.enablePrecondition();
|
|
720
|
-
await this.textEditor.fill(script);
|
|
721
|
-
await this.saveButton.dblclick();
|
|
722
|
-
await this.page.waitForTimeout(1000);
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
818
|
class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
730
819
|
constructor(page){
|
|
731
820
|
super(page);
|
|
732
|
-
this.railLocator = this.page.locator("task-drawer .dot-drawer .task-drawer-content");
|
|
733
821
|
this.dependency = new $90bb70a7e909e500$export$fbbf45eff21470e3(page);
|
|
822
|
+
this.railLocator = this.page.locator("task-drawer .dot-drawer .task-drawer-content");
|
|
823
|
+
this.scriptTextArea = this.page.locator(".code-editor textarea.ace_text-input");
|
|
734
824
|
}
|
|
735
825
|
async openInputProperties() {
|
|
736
826
|
await this.railLocator.locator(".task-config-header").getByText("Input properties").click();
|
|
@@ -793,6 +883,11 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
793
883
|
async expectBodyToBe(value) {
|
|
794
884
|
return await (0, $hOLA6$expect)(this.page.locator(".notification-body-field p")).toHaveText(value);
|
|
795
885
|
}
|
|
886
|
+
async setBody(value) {
|
|
887
|
+
await this.page.locator(".notification-body-field p").dblclick();
|
|
888
|
+
await this.page.locator(".notification-body-field #notification-body").fill(value);
|
|
889
|
+
await this.page.getByTestId(`save-button`).click();
|
|
890
|
+
}
|
|
796
891
|
async setValueFromMap(propertyName, key, value) {
|
|
797
892
|
await this.railLocator.locator(`.input-with-map[data-test-id="${propertyName}"] button.add-new-button`).click();
|
|
798
893
|
await this.railLocator.locator(`.input-with-map[data-test-id="${propertyName}"] input[id="new-row-key-input"]`).fill(key);
|
|
@@ -800,29 +895,29 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
800
895
|
await this.railLocator.locator(`.input-with-map[data-test-id="${propertyName}"] button.map-row-save-button`).click();
|
|
801
896
|
}
|
|
802
897
|
async setScript(script) {
|
|
803
|
-
await this.
|
|
804
|
-
await this.
|
|
898
|
+
await this.scriptTextArea.clear();
|
|
899
|
+
await this.scriptTextArea.fill(script);
|
|
805
900
|
await this.page.locator('.code-editor .header button:has-text("Save")').click();
|
|
806
901
|
}
|
|
807
902
|
async expectScriptToContain(script) {
|
|
808
903
|
await (0, $hOLA6$expect)(this.page.locator(".code-editor .ace_content")).toContainText(script);
|
|
809
904
|
}
|
|
810
905
|
async enterScriptForAutoComplete(script) {
|
|
811
|
-
await this.
|
|
812
|
-
await this.
|
|
813
|
-
await this.
|
|
906
|
+
await this.scriptTextArea.clear();
|
|
907
|
+
await this.scriptTextArea.fill(script);
|
|
908
|
+
await this.scriptTextArea.press(".");
|
|
814
909
|
}
|
|
815
910
|
async openScriptEditorInSeparateWindow() {
|
|
816
911
|
await this.page.getByTestId("fullscreen-enter-btn").click();
|
|
817
|
-
(0, $hOLA6$expect)(this.page.locator("#dialogTitle")).toBeVisible();
|
|
912
|
+
await (0, $hOLA6$expect)(this.page.locator("#dialogTitle")).toBeVisible();
|
|
818
913
|
}
|
|
819
914
|
async closeFullscreenScriptWindowWithESC() {
|
|
820
915
|
await this.page.locator("#dialogTitle").press("Escape");
|
|
821
|
-
(0, $hOLA6$expect)(this.page.locator("#dialogTitle")).not.toBeVisible();
|
|
916
|
+
await (0, $hOLA6$expect)(this.page.locator("#dialogTitle")).not.toBeVisible();
|
|
822
917
|
}
|
|
823
918
|
async closeFullscreenScriptWindow() {
|
|
824
919
|
await this.page.getByTestId("fullscreen-exit-btn").click();
|
|
825
|
-
(0, $hOLA6$expect)(this.page.locator("#dialogTitle")).not.toBeVisible();
|
|
920
|
+
await (0, $hOLA6$expect)(this.page.locator("#dialogTitle")).not.toBeVisible();
|
|
826
921
|
}
|
|
827
922
|
async abort(comment) {
|
|
828
923
|
await this.page.getByTestId("single-action-button").click();
|
|
@@ -859,6 +954,10 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
859
954
|
await (0, $hOLA6$expect)(this.railLocator.locator(".add-dependency-btn")).toBeVisible();
|
|
860
955
|
await this.railLocator.locator(".add-dependency-btn").click();
|
|
861
956
|
}
|
|
957
|
+
async addCondition() {
|
|
958
|
+
await (0, $hOLA6$expect)(this.railLocator.getByTestId("add-condition")).toBeVisible();
|
|
959
|
+
await this.railLocator.getByTestId("add-condition").click();
|
|
960
|
+
}
|
|
862
961
|
async expectDependencyText(dependencies) {
|
|
863
962
|
await (0, $hOLA6$expect)(this.railLocator.locator(".gate-task-dependencies")).toBeVisible();
|
|
864
963
|
await (0, $hOLA6$expect)(this.page.locator(`.gate-task-dependencies`).getByLabel(dependencies).first()).toBeVisible();
|
|
@@ -1027,6 +1126,28 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1027
1126
|
hasText: title
|
|
1028
1127
|
})).toBeVisible();
|
|
1029
1128
|
}
|
|
1129
|
+
async expectScriptEditable() {
|
|
1130
|
+
await this.page.locator("div.ace_content").click();
|
|
1131
|
+
await (0, $hOLA6$expect)(this.scriptTextArea).not.toHaveAttribute("disabled", "");
|
|
1132
|
+
await (0, $hOLA6$expect)(this.scriptTextArea).not.toHaveAttribute("readonly", "");
|
|
1133
|
+
}
|
|
1134
|
+
async expectInputPropertiesEditable(propertyName) {
|
|
1135
|
+
if (typeof propertyName !== "string") for (const pName of propertyName){
|
|
1136
|
+
await (0, $hOLA6$expect)(this.railLocator.locator(`input[id="${pName}"]`)).not.toHaveAttribute("disabled", "");
|
|
1137
|
+
await (0, $hOLA6$expect)(this.railLocator.locator(`input[id="${pName}"]`)).not.toHaveAttribute("readonly", "");
|
|
1138
|
+
}
|
|
1139
|
+
else {
|
|
1140
|
+
await (0, $hOLA6$expect)(this.railLocator.locator(`input[id="${propertyName}"]`)).not.toHaveAttribute("disabled", "");
|
|
1141
|
+
await (0, $hOLA6$expect)(this.railLocator.locator(`input[id="${propertyName}"]`)).not.toHaveAttribute("readonly", "");
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
async setSelectField(fieldName, fieldValue) {
|
|
1145
|
+
await this.page.getByTestId(`${fieldName}-input`).click();
|
|
1146
|
+
const closeIcon = this.page.getByTestId(`CloseIcon`);
|
|
1147
|
+
if (await closeIcon.isVisible()) await closeIcon.click();
|
|
1148
|
+
await this.page.getByTestId(`${fieldName}-input`).fill(fieldValue);
|
|
1149
|
+
await this.page.getByText(fieldValue).click();
|
|
1150
|
+
}
|
|
1030
1151
|
}
|
|
1031
1152
|
class $90bb70a7e909e500$export$fbbf45eff21470e3 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
1032
1153
|
constructor(page){
|
|
@@ -1121,68 +1242,6 @@ class $90bb70a7e909e500$export$fbbf45eff21470e3 extends (0, $9626bc9256ce31f7$ex
|
|
|
1121
1242
|
|
|
1122
1243
|
|
|
1123
1244
|
|
|
1124
|
-
class $69e86f559cdf2bd0$export$15d3f9b095bb5188 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
1125
|
-
async expectCommentToContain(comment) {
|
|
1126
|
-
(0, $hOLA6$expect)(await this.page.locator(".markdown-wrapper").textContent()).toContain(comment);
|
|
1127
|
-
}
|
|
1128
|
-
async expectTaskIsCommentable(isCommentable) {
|
|
1129
|
-
return (0, $hOLA6$expect)(await this.page.locator("#task-comment").count()).toBe(isCommentable ? 1 : 0);
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
class $9c357602b6f466e7$export$aa59788fdecae2f2 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
1137
|
-
async expectWithAttachment(filename) {
|
|
1138
|
-
const test = this.page.locator(".task-attachments-grid .file-item-text");
|
|
1139
|
-
await test.isVisible();
|
|
1140
|
-
await (0, $hOLA6$expect)(test).toContainText(filename);
|
|
1141
|
-
}
|
|
1142
|
-
async getAttachmentsListCount() {
|
|
1143
|
-
return await this.page.locator(".file-upload-list div").count();
|
|
1144
|
-
}
|
|
1145
|
-
async uploadFile(filePath) {
|
|
1146
|
-
const fileChooserPromise = this.page.waitForEvent("filechooser");
|
|
1147
|
-
await this.page.getByRole("button", {
|
|
1148
|
-
name: "Select file(s)"
|
|
1149
|
-
}).click();
|
|
1150
|
-
const fileChooser = await fileChooserPromise;
|
|
1151
|
-
await fileChooser.setFiles(filePath);
|
|
1152
|
-
}
|
|
1153
|
-
async downloadFile(filename) {
|
|
1154
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1155
|
-
this.page.on("download", ()=>{});
|
|
1156
|
-
const downloadPromise = this.page.waitForEvent("download");
|
|
1157
|
-
await this.page.locator("li").filter({
|
|
1158
|
-
hasText: "" + filename + ""
|
|
1159
|
-
}).click();
|
|
1160
|
-
await downloadPromise;
|
|
1161
|
-
}
|
|
1162
|
-
async deleteAttachment(fileName) {
|
|
1163
|
-
await this.page.locator("li").filter({
|
|
1164
|
-
hasText: fileName
|
|
1165
|
-
}).click();
|
|
1166
|
-
await this.page.getByLabel("delete file").click();
|
|
1167
|
-
await this.page.getByRole("button", {
|
|
1168
|
-
name: "Delete"
|
|
1169
|
-
}).waitFor({
|
|
1170
|
-
state: "visible"
|
|
1171
|
-
});
|
|
1172
|
-
await this.page.getByRole("button", {
|
|
1173
|
-
name: "Delete"
|
|
1174
|
-
}).click();
|
|
1175
|
-
}
|
|
1176
|
-
async expectWithNoAttachment(tempFile) {
|
|
1177
|
-
const test = await this.page.locator(".task-attachments-grid .file-item-text").count();
|
|
1178
|
-
if (test > 0) await (0, $hOLA6$expect)(this.page.locator(".task-attachments-grid .file-item-text")).not.toContainText(tempFile);
|
|
1179
|
-
else await (0, $hOLA6$expect)(this.page.locator(".task-attachments-grid .file-item-text")).not.toBeVisible();
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
1245
|
|
|
1187
1246
|
|
|
1188
1247
|
|
|
@@ -1264,25 +1323,21 @@ class $499d3d8c8706756b$export$e3515314c13bc477 extends (0, $9626bc9256ce31f7$ex
|
|
|
1264
1323
|
}
|
|
1265
1324
|
|
|
1266
1325
|
|
|
1326
|
+
|
|
1267
1327
|
class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
1268
1328
|
constructor(page){
|
|
1269
1329
|
super(page);
|
|
1270
|
-
this.
|
|
1271
|
-
this.
|
|
1272
|
-
|
|
1273
|
-
});
|
|
1330
|
+
this.activity = new (0, $69e86f559cdf2bd0$export$15d3f9b095bb5188)(page);
|
|
1331
|
+
this.attachment = new (0, $9c357602b6f466e7$export$aa59788fdecae2f2)(page);
|
|
1332
|
+
this.attribute = new (0, $115d1e40e2564777$export$a87b4660f21fba58)(page);
|
|
1274
1333
|
this.cancelButton = this.page.getByTestId("task-action-cancel");
|
|
1275
1334
|
this.commentBox = this.page.getByTestId("task-action-comment");
|
|
1276
1335
|
this.confirm = this.page.locator(".popper-action-buttons").getByTestId("dot-button");
|
|
1277
|
-
this.activity = new (0, $69e86f559cdf2bd0$export$15d3f9b095bb5188)(page);
|
|
1278
|
-
this.attachment = new (0, $9c357602b6f466e7$export$aa59788fdecae2f2)(page);
|
|
1279
1336
|
this.config = new (0, $e44e9af564fb00f7$export$64c93bc7fb9ca44e)(page);
|
|
1280
1337
|
this.condition = new (0, $3fa741329d8067d5$export$d4865631ba74f3e2)(page);
|
|
1281
|
-
this.
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
this.skipMenu = this.page.getByRole("menuitem", {
|
|
1285
|
-
name: "Skip"
|
|
1338
|
+
this.completeButton = this.page.getByRole("button", {
|
|
1339
|
+
name: "Complete",
|
|
1340
|
+
exact: true
|
|
1286
1341
|
});
|
|
1287
1342
|
this.failMenu = this.page.getByRole("menuitem", {
|
|
1288
1343
|
name: "Fail"
|
|
@@ -1291,10 +1346,16 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
|
|
|
1291
1346
|
name: "arrow-down icon",
|
|
1292
1347
|
exact: true
|
|
1293
1348
|
});
|
|
1294
|
-
this.
|
|
1295
|
-
|
|
1296
|
-
|
|
1349
|
+
this.overview = new (0, $90bb70a7e909e500$export$519356f6c50361f7)(page);
|
|
1350
|
+
this.retryButton = this.page.getByRole("button", {
|
|
1351
|
+
name: "Retry"
|
|
1297
1352
|
});
|
|
1353
|
+
this.scheduling = new (0, $499d3d8c8706756b$export$e3515314c13bc477)(page);
|
|
1354
|
+
this.startButton = this.page.getByTestId("single-action-button");
|
|
1355
|
+
this.skipMenu = this.page.getByRole("menuitem", {
|
|
1356
|
+
name: "Skip"
|
|
1357
|
+
});
|
|
1358
|
+
this.taskDrawerLocator = this.page.locator("task-drawer .dot-drawer");
|
|
1298
1359
|
}
|
|
1299
1360
|
async openOverviewRail() {
|
|
1300
1361
|
await this.openRail("Overview");
|
|
@@ -1347,6 +1408,12 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
|
|
|
1347
1408
|
await this.commentBox.fill(comment);
|
|
1348
1409
|
await this.confirm.click();
|
|
1349
1410
|
}
|
|
1411
|
+
async startNow(comment) {
|
|
1412
|
+
await this.startButton.click();
|
|
1413
|
+
await this.commentBox.fill(comment);
|
|
1414
|
+
await this.page.getByTestId("dot-button").click();
|
|
1415
|
+
await (0, $hOLA6$expect)(this.startButton).not.toBeVisible();
|
|
1416
|
+
}
|
|
1350
1417
|
async expectTaskTitle(taskTitle) {
|
|
1351
1418
|
await (0, $hOLA6$expect)(this.page.locator(".task-drawer .task-title-input .dot-view-mode-typography")).toContainText(taskTitle);
|
|
1352
1419
|
}
|
|
@@ -2168,6 +2235,15 @@ class $87bbb6d35ad31a00$export$f8f26dd395d7e1bd extends (0, $9626bc9256ce31f7$ex
|
|
|
2168
2235
|
async clearSearchFilter() {
|
|
2169
2236
|
await this.page.locator(".searchFilter").clear();
|
|
2170
2237
|
}
|
|
2238
|
+
async leaveWithoutSaving() {
|
|
2239
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2240
|
+
name: "Confirm leave"
|
|
2241
|
+
})).toBeVisible();
|
|
2242
|
+
await (0, $hOLA6$expect)(this.page.getByRole("paragraph")).toContainText("You have unsaved changes that will be lost.");
|
|
2243
|
+
await this.page.getByRole("button", {
|
|
2244
|
+
name: "Leave without saving"
|
|
2245
|
+
}).click();
|
|
2246
|
+
}
|
|
2171
2247
|
}
|
|
2172
2248
|
|
|
2173
2249
|
|
|
@@ -2608,7 +2684,10 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
2608
2684
|
await this.page.locator(".icon-close").click();
|
|
2609
2685
|
await this.page.locator("#task-title").fill(taskTitle);
|
|
2610
2686
|
await this.page.getByTestId("save-select-task-btn").click();
|
|
2611
|
-
await
|
|
2687
|
+
await this.page.locator("#release-header").click();
|
|
2688
|
+
await (0, $hOLA6$expect)(this.phaseLocator.locator(".task-title").filter({
|
|
2689
|
+
hasText: taskTitle
|
|
2690
|
+
})).toBeVisible();
|
|
2612
2691
|
}
|
|
2613
2692
|
async getNumberOfTasks() {
|
|
2614
2693
|
return await this.phaseLocator.locator(".task").count();
|
|
@@ -6019,9 +6098,233 @@ class $2cbb78eec86d0a9f$export$2edf430132ca35d0 extends (0, $9626bc9256ce31f7$ex
|
|
|
6019
6098
|
|
|
6020
6099
|
|
|
6021
6100
|
|
|
6101
|
+
|
|
6102
|
+
|
|
6103
|
+
class $6c0f5b52769b32c3$export$9823ddf5e80770e7 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
6104
|
+
constructor(page){
|
|
6105
|
+
super(page);
|
|
6106
|
+
}
|
|
6107
|
+
async addNewInstance(typeName) {
|
|
6108
|
+
await this.page.locator(`.configuration-type`).filter({
|
|
6109
|
+
hasText: typeName
|
|
6110
|
+
}).locator(`.new-instance .button`).click({
|
|
6111
|
+
force: true
|
|
6112
|
+
});
|
|
6113
|
+
return new $6c0f5b52769b32c3$var$ConfigurationInstancePage(this.page);
|
|
6114
|
+
}
|
|
6115
|
+
async expectInstanceDisplayed(instanceName) {
|
|
6116
|
+
await this.page.locator("#configuration").waitFor({
|
|
6117
|
+
state: "visible",
|
|
6118
|
+
timeout: 200000
|
|
6119
|
+
});
|
|
6120
|
+
(0, $hOLA6$expect)(await this.page.locator(`.configuration-instance`).filter({
|
|
6121
|
+
hasText: instanceName
|
|
6122
|
+
}).isVisible()).toBe(true);
|
|
6123
|
+
return this;
|
|
6124
|
+
}
|
|
6125
|
+
async expectInstanceNotDisplayed(instanceName) {
|
|
6126
|
+
await this.page.locator("#configuration").waitFor({
|
|
6127
|
+
state: "visible"
|
|
6128
|
+
});
|
|
6129
|
+
(0, $hOLA6$expect)(await this.page.locator(`.configuration-instance`).filter({
|
|
6130
|
+
hasText: instanceName
|
|
6131
|
+
}).isVisible()).toBe(false);
|
|
6132
|
+
return this;
|
|
6133
|
+
}
|
|
6134
|
+
async openInstance(instanceName) {
|
|
6135
|
+
await this.page.locator(`.configuration-instance`).filter({
|
|
6136
|
+
hasText: instanceName
|
|
6137
|
+
}).locator(`.edit-instance`).click({
|
|
6138
|
+
force: true
|
|
6139
|
+
});
|
|
6140
|
+
return new $6c0f5b52769b32c3$var$ConfigurationInstancePage(this.page);
|
|
6141
|
+
}
|
|
6142
|
+
async deleteInstance(instanceName) {
|
|
6143
|
+
await this.page.locator(`.configuration-instance`).filter({
|
|
6144
|
+
hasText: instanceName
|
|
6145
|
+
}).locator(`.delete-instance`).click({
|
|
6146
|
+
force: true
|
|
6147
|
+
});
|
|
6148
|
+
return this;
|
|
6149
|
+
}
|
|
6150
|
+
async expectSuccessMsgToBeDisplayed(text) {
|
|
6151
|
+
await (0, $hOLA6$expect)(this.page.locator(".success")).toBeVisible();
|
|
6152
|
+
(0, $hOLA6$expect)(await this.page.locator(".success").textContent()).toContain(text);
|
|
6153
|
+
return this;
|
|
6154
|
+
}
|
|
6155
|
+
async clearFilter() {
|
|
6156
|
+
await this.page.locator(".search-input-filter input").clear({
|
|
6157
|
+
force: true
|
|
6158
|
+
});
|
|
6159
|
+
return this;
|
|
6160
|
+
}
|
|
6161
|
+
async searchInstances(instanceName) {
|
|
6162
|
+
await this.page.getByPlaceholder("Search...").click();
|
|
6163
|
+
await this.page.getByPlaceholder("Search...").fill(instanceName);
|
|
6164
|
+
return this;
|
|
6165
|
+
}
|
|
6166
|
+
async expectErrorDisplayed() {
|
|
6167
|
+
await (0, $hOLA6$expect)(this.page.locator(".modal-header h4")).toContainText("Error");
|
|
6168
|
+
await this.page.locator(".modal-header .xl-icon.close-icon").click();
|
|
6169
|
+
}
|
|
6170
|
+
}
|
|
6171
|
+
class $6c0f5b52769b32c3$var$ConfigurationInstancePage extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
6172
|
+
constructor(page){
|
|
6173
|
+
super(page);
|
|
6174
|
+
}
|
|
6175
|
+
async setTextField(fieldName, fieldValue) {
|
|
6176
|
+
await this.page.locator(`input[name=${fieldName}]`).clear({
|
|
6177
|
+
force: true
|
|
6178
|
+
});
|
|
6179
|
+
await this.page.locator(`input[name=${fieldName}]`).fill(fieldValue, {
|
|
6180
|
+
force: true
|
|
6181
|
+
});
|
|
6182
|
+
return this;
|
|
6183
|
+
}
|
|
6184
|
+
async setNumberField(fieldName, fieldValue) {
|
|
6185
|
+
await this.page.locator(`#${fieldName}`).clear({
|
|
6186
|
+
force: true
|
|
6187
|
+
});
|
|
6188
|
+
await this.page.locator(`#${fieldName}`).fill(fieldValue.toString(), {
|
|
6189
|
+
force: true
|
|
6190
|
+
});
|
|
6191
|
+
return this;
|
|
6192
|
+
}
|
|
6193
|
+
async selectFromDropdown(fieldName, element) {
|
|
6194
|
+
await this.page.getByLabel(fieldName).click();
|
|
6195
|
+
await this.page.getByRole("option", {
|
|
6196
|
+
name: element
|
|
6197
|
+
}).click();
|
|
6198
|
+
return this;
|
|
6199
|
+
}
|
|
6200
|
+
async save() {
|
|
6201
|
+
await this.page.getByRole("button", {
|
|
6202
|
+
name: "Save"
|
|
6203
|
+
}).click();
|
|
6204
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("success")).toBeVisible();
|
|
6205
|
+
return this;
|
|
6206
|
+
}
|
|
6207
|
+
async test() {
|
|
6208
|
+
await this.page.getByRole("button", {
|
|
6209
|
+
name: "Test"
|
|
6210
|
+
}).click();
|
|
6211
|
+
return this;
|
|
6212
|
+
}
|
|
6213
|
+
async cancel() {
|
|
6214
|
+
await this.page.getByRole("button", {
|
|
6215
|
+
name: "Cancel"
|
|
6216
|
+
}).click();
|
|
6217
|
+
return this;
|
|
6218
|
+
}
|
|
6219
|
+
async expectResultBanner(message) {
|
|
6220
|
+
await (0, $hOLA6$expect)(this.page.locator(".configuration-result-banner")).toBeVisible();
|
|
6221
|
+
await (0, $hOLA6$expect)(this.page.locator(".configuration-result-banner")).toContainText(message);
|
|
6222
|
+
return this;
|
|
6223
|
+
}
|
|
6224
|
+
async expectDropdownToBe(fieldName, fieldValue) {
|
|
6225
|
+
const value = await this.page.locator(`#${fieldName}`).getAttribute("value");
|
|
6226
|
+
(0, $hOLA6$expect)(value).toBe(fieldValue);
|
|
6227
|
+
return this;
|
|
6228
|
+
}
|
|
6229
|
+
async clearDropdown(fieldName) {
|
|
6230
|
+
await this.page.locator(`input[id=${fieldName}]`).click({
|
|
6231
|
+
force: true
|
|
6232
|
+
});
|
|
6233
|
+
await this.page.getByRole(`button`, {
|
|
6234
|
+
name: "Clear"
|
|
6235
|
+
}).click();
|
|
6236
|
+
return this;
|
|
6237
|
+
}
|
|
6238
|
+
async clickField(fieldName) {
|
|
6239
|
+
await this.page.getByLabel(fieldName).click();
|
|
6240
|
+
return this;
|
|
6241
|
+
}
|
|
6242
|
+
async expectTextFieldToBe(fieldName, fieldValue) {
|
|
6243
|
+
(0, $hOLA6$expect)(await this.page.locator(`input[name=${fieldName}]`).getAttribute("value")).toContain(fieldValue);
|
|
6244
|
+
return this;
|
|
6245
|
+
}
|
|
6246
|
+
async setStringList(value) {
|
|
6247
|
+
await this.page.locator(".input-list input#stringList").click();
|
|
6248
|
+
if (value instanceof Array) for (const val of value){
|
|
6249
|
+
await this.page.locator(".input-list input#stringList").fill(val);
|
|
6250
|
+
await this.page.locator('[data-test-id="stringList"]').getByLabel("add icon button").click();
|
|
6251
|
+
}
|
|
6252
|
+
else await this.page.locator(".input-list input#stringList").fill(value);
|
|
6253
|
+
return this;
|
|
6254
|
+
}
|
|
6255
|
+
async expectStringListCountToBe(count) {
|
|
6256
|
+
(0, $hOLA6$expect)(await this.page.locator(`[data-test-id="stringList"] .list`).count()).toBe(count);
|
|
6257
|
+
return this;
|
|
6258
|
+
}
|
|
6259
|
+
async removeString(value) {
|
|
6260
|
+
await this.page.locator("li").filter({
|
|
6261
|
+
hasText: value
|
|
6262
|
+
}).getByLabel("close icon button").click();
|
|
6263
|
+
return this;
|
|
6264
|
+
}
|
|
6265
|
+
async setStringSet(value) {
|
|
6266
|
+
await this.page.locator(".input-list input#stringSet").click();
|
|
6267
|
+
if (value instanceof Array) for (const val of value){
|
|
6268
|
+
await this.page.locator(".input-list input#stringSet").fill(val);
|
|
6269
|
+
await this.page.locator('[data-test-id="stringSet"]').getByLabel("add icon button").click();
|
|
6270
|
+
}
|
|
6271
|
+
else await this.page.locator(".input-list input#stringSet").fill(value);
|
|
6272
|
+
return this;
|
|
6273
|
+
}
|
|
6274
|
+
async expectStringSetCountToBe(count) {
|
|
6275
|
+
(0, $hOLA6$expect)(await this.page.locator(`[data-test-id="stringSet"] .list`).count()).toBe(count);
|
|
6276
|
+
return this;
|
|
6277
|
+
}
|
|
6278
|
+
async setStringMap(pairs) {
|
|
6279
|
+
await this.page.locator('[data-test-id="stringMap"]').getByTestId("icon-button-tooltip").getByLabel("Add key-value pair").click();
|
|
6280
|
+
await this.page.locator("#new-row-key-input").fill(pairs.key);
|
|
6281
|
+
await this.page.locator("#new-row-value-input").fill(pairs.value);
|
|
6282
|
+
await this.page.getByRole("button", {
|
|
6283
|
+
name: "check-line icon"
|
|
6284
|
+
}).click();
|
|
6285
|
+
}
|
|
6286
|
+
async expectStringMapCountToBe(count) {
|
|
6287
|
+
(0, $hOLA6$expect)(await this.page.locator(`[data-test-id="stringMap"] .map-data-row`).count()).toBe(count);
|
|
6288
|
+
return this;
|
|
6289
|
+
}
|
|
6290
|
+
async expectTestButtonToBeDisabled() {
|
|
6291
|
+
await (0, $hOLA6$expect)(this.page.locator("action-toolbar button").filter({
|
|
6292
|
+
hasText: "Test"
|
|
6293
|
+
})).toBeDisabled();
|
|
6294
|
+
return this;
|
|
6295
|
+
}
|
|
6296
|
+
async togglePasswordFieldVariable(fieldName) {
|
|
6297
|
+
await this.page.locator(`.input-with-variables[data-test-id="${fieldName}"] button`).click({
|
|
6298
|
+
force: true
|
|
6299
|
+
});
|
|
6300
|
+
return this;
|
|
6301
|
+
}
|
|
6302
|
+
async setPasswordFieldVariable(fieldName, fieldValue) {
|
|
6303
|
+
await this.page.locator(`.input-with-variables[data-test-id="${fieldName}"] input`).click({
|
|
6304
|
+
force: true
|
|
6305
|
+
});
|
|
6306
|
+
await this.page.locator(`.input-with-variables[data-test-id="${fieldName}"] li`).filter({
|
|
6307
|
+
hasText: fieldValue
|
|
6308
|
+
}).click();
|
|
6309
|
+
return this;
|
|
6310
|
+
}
|
|
6311
|
+
async expectFieldsToNotBeVisible(fieldNames) {
|
|
6312
|
+
if (typeof fieldNames !== "string") for (const fName of fieldNames)await (0, $hOLA6$expect)(this.page.locator(`#${fName}`)).not.toBeVisible();
|
|
6313
|
+
else await (0, $hOLA6$expect)(this.page.locator(`#${fieldNames}`)).not.toBeVisible();
|
|
6314
|
+
return this;
|
|
6315
|
+
}
|
|
6316
|
+
async expectFieldsToBeVisible(fieldNames) {
|
|
6317
|
+
if (typeof fieldNames !== "string") for (const fName of fieldNames)await (0, $hOLA6$expect)(this.page.locator(`input[name=${fName}]`)).toBeVisible();
|
|
6318
|
+
else await (0, $hOLA6$expect)(this.page.locator(`input[name=${fieldNames}]`)).toBeVisible();
|
|
6319
|
+
return this;
|
|
6320
|
+
}
|
|
6321
|
+
}
|
|
6322
|
+
|
|
6323
|
+
|
|
6022
6324
|
class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
6023
6325
|
constructor(page){
|
|
6024
6326
|
this.page = page;
|
|
6327
|
+
this.connections = new (0, $6c0f5b52769b32c3$export$9823ddf5e80770e7)(page);
|
|
6025
6328
|
this.dataRandomGenerator = new (0, $b14c3492cf934ea2$export$e40b5d3c74b04c89)();
|
|
6026
6329
|
this.dateUtil = new (0, $71075ce65fcede1d$export$9b575f14aa5e09a1)(page);
|
|
6027
6330
|
this.folderPage = new (0, $50c91328c9110668$export$b453f08936c58edb)(page);
|
|
@@ -6158,6 +6461,7 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
|
6158
6461
|
await this.page.locator("ul.side-nav li").getByLabel("Connections", {
|
|
6159
6462
|
exact: true
|
|
6160
6463
|
}).click();
|
|
6464
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Connections")).toBeVisible();
|
|
6161
6465
|
}
|
|
6162
6466
|
async openReleaseOrTemplate(id, release) {
|
|
6163
6467
|
const url = release ? "releases" : "templates";
|
|
@@ -6176,6 +6480,10 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
|
6176
6480
|
async openRisksProfile() {
|
|
6177
6481
|
await this.page.goto("./#/risks");
|
|
6178
6482
|
}
|
|
6483
|
+
async openConnection() {
|
|
6484
|
+
await this.page.goto("./#/configuration");
|
|
6485
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Connections")).toBeVisible();
|
|
6486
|
+
}
|
|
6179
6487
|
}
|
|
6180
6488
|
|
|
6181
6489
|
|
|
@@ -6655,6 +6963,25 @@ class $80c3ae34677b4324$var$Fixtures {
|
|
|
6655
6963
|
this.userProfiles.push(profile.canonicalId);
|
|
6656
6964
|
await this.doPost("fixtures/userProfile", profile);
|
|
6657
6965
|
}
|
|
6966
|
+
async resetUserProfile(username, fullName) {
|
|
6967
|
+
this.usernames.push(username);
|
|
6968
|
+
return this.updateProfile({
|
|
6969
|
+
username: username,
|
|
6970
|
+
external: false,
|
|
6971
|
+
profileId: username,
|
|
6972
|
+
email: "",
|
|
6973
|
+
fullName: fullName ? fullName : username,
|
|
6974
|
+
loginAllowed: true,
|
|
6975
|
+
// dateFormat: "dd/MM/yy",
|
|
6976
|
+
dateFormat: "M/d/yy",
|
|
6977
|
+
// timeFormat: "HH:mm",
|
|
6978
|
+
timeFormat: "h:mm a",
|
|
6979
|
+
firstDayOfWeek: 0
|
|
6980
|
+
});
|
|
6981
|
+
}
|
|
6982
|
+
async updateProfile(profile) {
|
|
6983
|
+
return this.doPut("profile", profile);
|
|
6984
|
+
}
|
|
6658
6985
|
async expectJiraTaskStatus(taskId, expectedStatus) {
|
|
6659
6986
|
const headers = {
|
|
6660
6987
|
Authorization: `Basic ${btoa("xlr-jira-testuser@xebialabs.com:zgsXK6c3oLVkJxrWVJQy9DB7")}`,
|