@gravitee/ui-policy-studio-angular 7.26.0 → 7.28.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.
- package/esm2020/lib/components/flow-details/gio-ps-flow-details.component.mjs +5 -3
- package/esm2020/lib/components/flow-details-phase/gio-ps-flow-details-phase.component.mjs +5 -2
- package/esm2020/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.component.mjs +1 -1
- package/esm2020/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.mjs +9 -3
- package/esm2020/lib/gio-policy-studio.component.mjs +5 -3
- package/esm2020/lib/models/flow/Step.mjs +1 -1
- package/esm2020/lib/models/policy/Policy.mjs +1 -1
- package/esm2020/testing/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.harness.mjs +13 -6
- package/esm2020/testing/lib/models/flow/Step.mjs +1 -1
- package/esm2020/testing/lib/models/policy/Policy.fixture.mjs +6 -1
- package/esm2020/testing/lib/models/policy/Policy.mjs +1 -1
- package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs +19 -5
- package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2015/gravitee-ui-policy-studio-angular.mjs +28 -16
- package/fesm2015/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-policy-studio-angular-testing.mjs +17 -5
- package/fesm2020/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2020/gravitee-ui-policy-studio-angular.mjs +28 -16
- package/fesm2020/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/lib/components/flow-details/gio-ps-flow-details.component.d.ts +2 -1
- package/lib/components/flow-details-phase/gio-ps-flow-details-phase.component.d.ts +2 -1
- package/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.d.ts +3 -0
- package/lib/gio-policy-studio.component.d.ts +6 -1
- package/lib/models/flow/Step.d.ts +4 -0
- package/lib/models/policy/Policy.d.ts +1 -0
- package/package.json +1 -1
- package/testing/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.harness.d.ts +1 -0
- package/testing/lib/models/flow/Step.d.ts +4 -0
- package/testing/lib/models/policy/Policy.d.ts +1 -0
|
@@ -283,6 +283,11 @@ function fakeAllPolicies() {
|
|
|
283
283
|
name: 'Test policy - With very long name to test overflow. Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
|
|
284
284
|
description: 'Test policy description - With very long name to test overflow. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla quis sem at nibh elementum imperdiet.',
|
|
285
285
|
}),
|
|
286
|
+
fakeTestPolicy({
|
|
287
|
+
name: 'No license policy',
|
|
288
|
+
deployed: false,
|
|
289
|
+
description: 'No license policy should display a lock icon and a clear CTA.',
|
|
290
|
+
}),
|
|
286
291
|
...POLICIES_V4_UNREGISTERED_ICON.map(policy => ({
|
|
287
292
|
...policy,
|
|
288
293
|
// Replace all icons with the policy id. Icons are registred in the IconRegistry before.
|
|
@@ -1170,17 +1175,24 @@ class GioPolicyStudioPoliciesCatalogDialogHarness extends ComponentHarness {
|
|
|
1170
1175
|
}
|
|
1171
1176
|
async selectPolicy(policyName) {
|
|
1172
1177
|
const policies = await this.policiesLocator();
|
|
1173
|
-
const policy
|
|
1174
|
-
|
|
1175
|
-
|
|
1178
|
+
for (const policy of policies) {
|
|
1179
|
+
const name = await policy.getText({ childSelector: '.policiesCatalog__list__policy__head__name' });
|
|
1180
|
+
if (name === policyName) {
|
|
1181
|
+
const selectBtn = await policy.childLocatorFor(MatButtonHarness.with({ selector: '.policiesCatalog__list__policy__selectBtn' }))();
|
|
1182
|
+
await selectBtn.click();
|
|
1183
|
+
return;
|
|
1184
|
+
}
|
|
1176
1185
|
}
|
|
1177
|
-
|
|
1178
|
-
await selectBtn.click();
|
|
1186
|
+
throw new Error(`Policy ${policyName} not found`);
|
|
1179
1187
|
}
|
|
1180
1188
|
async getSelectedPolicyName() {
|
|
1181
1189
|
const policy = await this.locatorFor('.policyForm__info__head__name')();
|
|
1182
1190
|
return policy.text();
|
|
1183
1191
|
}
|
|
1192
|
+
async hasRequestUpgradeButton() {
|
|
1193
|
+
const requestUpgradeButton = await this.locatorForOptional(MatButtonHarness.with({ text: 'Request upgrade' }))();
|
|
1194
|
+
return !!requestUpgradeButton;
|
|
1195
|
+
}
|
|
1184
1196
|
async clickAddPolicyButton() {
|
|
1185
1197
|
const addBtn = await this.locatorFor(MatButtonHarness.with({ selector: '.actions__addBtn' }))();
|
|
1186
1198
|
await addBtn.click();
|