@digital-ai/devops-page-object-release 0.0.52 → 0.0.54
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 +29 -5
- package/dist/main.js.map +1 -1
- package/dist/module.js +29 -5
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -873,7 +873,15 @@ class $115d1e40e2564777$export$a87b4660f21fba58 extends (0, $9626bc9256ce31f7$ex
|
|
|
873
873
|
})).toBeVisible();
|
|
874
874
|
}
|
|
875
875
|
async selectAttributeType(type) {
|
|
876
|
-
await this.page.
|
|
876
|
+
await this.page.getByRole("combobox", {
|
|
877
|
+
name: "Type of attribute"
|
|
878
|
+
}).click();
|
|
879
|
+
await this.page.getByRole("combobox", {
|
|
880
|
+
name: "Type of attribute"
|
|
881
|
+
}).fill(type);
|
|
882
|
+
await this.page.getByRole("option", {
|
|
883
|
+
name: type
|
|
884
|
+
}).click();
|
|
877
885
|
}
|
|
878
886
|
async fillInputValue(labelName, value) {
|
|
879
887
|
await this.page.getByRole("combobox", {
|
|
@@ -2032,6 +2040,15 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
|
|
|
2032
2040
|
}).click();
|
|
2033
2041
|
await (0, $hOLA6$expect)(this.startButton).not.toBeVisible();
|
|
2034
2042
|
}
|
|
2043
|
+
async startNowWithBlackout(comment) {
|
|
2044
|
+
await this.startButton.click();
|
|
2045
|
+
await this.commentBox.fill(comment);
|
|
2046
|
+
await (0, $hOLA6$expect)(this.page.getByText("Are you sure you want to run this task during the blackout period?")).toBeVisible();
|
|
2047
|
+
await this.page.locator("button", {
|
|
2048
|
+
hasText: "Start now"
|
|
2049
|
+
}).click();
|
|
2050
|
+
await (0, $hOLA6$expect)(this.startButton).not.toBeVisible();
|
|
2051
|
+
}
|
|
2035
2052
|
async expectTaskTitle(taskTitle) {
|
|
2036
2053
|
await (0, $hOLA6$expect)(this.page.locator(".task-drawer .task-title-input .dot-view-mode-typography")).toContainText(taskTitle);
|
|
2037
2054
|
}
|
|
@@ -8003,6 +8020,7 @@ class $80c3ae34677b4324$var$Fixtures {
|
|
|
8003
8020
|
applicationIds = [];
|
|
8004
8021
|
archivedReleaseIds = [];
|
|
8005
8022
|
environmentIds = [];
|
|
8023
|
+
environmentStageIds = [];
|
|
8006
8024
|
releaseIds = [];
|
|
8007
8025
|
riskProfiles = [];
|
|
8008
8026
|
reservationIds = [];
|
|
@@ -8234,23 +8252,27 @@ class $80c3ae34677b4324$var$Fixtures {
|
|
|
8234
8252
|
const response = await this.doPost("fixtures/environment", environment);
|
|
8235
8253
|
const json = await response.json();
|
|
8236
8254
|
this.environmentIds.push(json.id);
|
|
8255
|
+
this.environmentStageIds.push(json.stage);
|
|
8237
8256
|
return json;
|
|
8238
8257
|
}
|
|
8239
8258
|
async reservation(reservation) {
|
|
8240
8259
|
const response = await this.doPost("fixtures/reservation", reservation);
|
|
8241
8260
|
const json = await response.json();
|
|
8242
8261
|
this.reservationIds.push(json.id);
|
|
8243
|
-
return json
|
|
8262
|
+
return json;
|
|
8244
8263
|
}
|
|
8245
8264
|
deleteDelivery(delivery) {
|
|
8246
8265
|
return this.doDelete(`fixtures/deliveries/${delivery}`);
|
|
8247
8266
|
}
|
|
8248
8267
|
async deleteApplication(applicationId) {
|
|
8249
|
-
return this.doDelete(`
|
|
8268
|
+
return this.doDelete(`fixtures/application/${applicationId}`);
|
|
8250
8269
|
}
|
|
8251
8270
|
async deleteEnvironment(environmentId) {
|
|
8252
8271
|
return this.doDelete(`fixtures/environment/${environmentId}`);
|
|
8253
8272
|
}
|
|
8273
|
+
async deleteEnvironmentStage(environmentStageId) {
|
|
8274
|
+
return this.doDelete(`fixtures/environment/${environmentStageId}`);
|
|
8275
|
+
}
|
|
8254
8276
|
async clearCalendar() {
|
|
8255
8277
|
return this.doDelete("fixtures/calendar");
|
|
8256
8278
|
}
|
|
@@ -8268,12 +8290,14 @@ class $80c3ae34677b4324$var$Fixtures {
|
|
|
8268
8290
|
for (const confId of this.configurationIds)await this.deleteConfiguration(confId);
|
|
8269
8291
|
for (const folderId of this.folderIds.reverse())await this.deleteFolder(folderId);
|
|
8270
8292
|
for (const globalVariableId of this.globalVariableIds)await this.deleteGlobalVariable(globalVariableId);
|
|
8271
|
-
for (const environmentId of this.environmentIds)await this.deleteEnvironment(environmentId);
|
|
8272
|
-
for (const applicationId of this.applicationIds)await this.deleteApplication(applicationId);
|
|
8273
8293
|
for (const reservationId of this.reservationIds)await this.deleteReservation(reservationId);
|
|
8294
|
+
for (const applicationId of this.applicationIds)await this.deleteApplication(applicationId);
|
|
8295
|
+
for (const environmentId of this.environmentIds)await this.deleteEnvironment(environmentId);
|
|
8296
|
+
for (const environmentStageId of this.environmentStageIds)await this.deleteEnvironmentStage(environmentStageId);
|
|
8274
8297
|
this.applicationIds = [];
|
|
8275
8298
|
this.configurationIds = [];
|
|
8276
8299
|
this.environmentIds = [];
|
|
8300
|
+
this.environmentStageIds = [];
|
|
8277
8301
|
this.globalVariableIds = [];
|
|
8278
8302
|
this.folderIds = [];
|
|
8279
8303
|
this.releaseIds = [];
|