@gravitee/ui-policy-studio-angular 7.25.0 → 7.26.0

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.
@@ -982,6 +982,12 @@ class GioPolicyStudioDetailsPhaseStepHarness extends ComponentHarness {
982
982
  yield matMenu.clickItem({ text: 'Delete' });
983
983
  });
984
984
  }
985
+ clickOnDisableEnable() {
986
+ return __awaiter(this, void 0, void 0, function* () {
987
+ const matMenu = yield this.locatorFor(MatMenuHarness)();
988
+ yield matMenu.clickItem({ text: /Disable|Enable/ });
989
+ });
990
+ }
985
991
  }
986
992
  GioPolicyStudioDetailsPhaseStepHarness.hostSelector = 'gio-ps-flow-details-phase-step';
987
993
 
@@ -1205,6 +1211,16 @@ class GioPolicyStudioDetailsPhaseHarness extends ComponentHarness {
1205
1211
  yield step.clickOnDelete();
1206
1212
  });
1207
1213
  }
1214
+ /**
1215
+ * Disable a step
1216
+ * @param index Index of the policy step to disable
1217
+ */
1218
+ disableEnableStep(index) {
1219
+ return __awaiter(this, void 0, void 0, function* () {
1220
+ const step = yield this.getStep(index);
1221
+ yield step.clickOnDisableEnable();
1222
+ });
1223
+ }
1208
1224
  }
1209
1225
  GioPolicyStudioDetailsPhaseHarness.hostSelector = 'gio-ps-flow-details-phase';
1210
1226