@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.
@@ -1058,6 +1058,10 @@ class GioPolicyStudioDetailsPhaseStepHarness extends ComponentHarness {
1058
1058
  const matMenu = await this.locatorFor(MatMenuHarness)();
1059
1059
  await matMenu.clickItem({ text: 'Delete' });
1060
1060
  }
1061
+ async clickOnDisableEnable() {
1062
+ const matMenu = await this.locatorFor(MatMenuHarness)();
1063
+ await matMenu.clickItem({ text: /Disable|Enable/ });
1064
+ }
1061
1065
  }
1062
1066
  GioPolicyStudioDetailsPhaseStepHarness.hostSelector = 'gio-ps-flow-details-phase-step';
1063
1067
 
@@ -1307,6 +1311,14 @@ class GioPolicyStudioDetailsPhaseHarness extends ComponentHarness {
1307
1311
  const step = await this.getStep(index);
1308
1312
  await step.clickOnDelete();
1309
1313
  }
1314
+ /**
1315
+ * Disable a step
1316
+ * @param index Index of the policy step to disable
1317
+ */
1318
+ async disableEnableStep(index) {
1319
+ const step = await this.getStep(index);
1320
+ await step.clickOnDisableEnable();
1321
+ }
1310
1322
  }
1311
1323
  GioPolicyStudioDetailsPhaseHarness.hostSelector = 'gio-ps-flow-details-phase';
1312
1324