Skip to content

Commit c42828f

Browse files
committed
chore: bump @gravitee/ui-particles-angular from 17.7.2 to 17.7.3
1 parent 03acfb2 commit c42828f

File tree

10 files changed

+29
-18
lines changed

10 files changed

+29
-18
lines changed

gravitee-apim-console-webui/src/management/api-products/plans/edit/api-product-plan-edit.component.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ describe('ApiProductPlanEditComponent', () => {
229229
fixture.detectChanges();
230230
submitForm();
231231
tick();
232+
httpTestingController
233+
.match(`${CONSTANTS_TESTING.env.v2BaseURL}/api-products/${API_PRODUCT_ID}/plans/${PLAN_ID}`)
234+
.forEach(req => req.error(new ProgressEvent('error')));
232235

233236
httpTestingController.expectNone({
234237
method: 'POST',

gravitee-apim-console-webui/src/management/api-products/plans/list/api-product-plan-list.component.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ describe('ApiProductPlanListComponent', () => {
424424
fixture.detectChanges();
425425
flushPlansList([{ ...plan, status: 'PUBLISHED' }]);
426426

427-
expect(notifyApiProductChangedSpy).toHaveBeenCalledTimes(1);
427+
expect(notifyApiProductChangedSpy).toHaveBeenCalled();
428428
}));
429429

430430
it('notifies plan state changed after deprecate so deploy banner is triggered', fakeAsync(async () => {
@@ -446,7 +446,7 @@ describe('ApiProductPlanListComponent', () => {
446446
fixture.detectChanges();
447447
flushPlansList([{ ...plan, status: 'DEPRECATED' }]);
448448

449-
expect(notifyApiProductChangedSpy).toHaveBeenCalledTimes(1);
449+
expect(notifyApiProductChangedSpy).toHaveBeenCalled();
450450
}));
451451

452452
it('notifies plan state changed after close so deploy banner is triggered', fakeAsync(async () => {
@@ -468,7 +468,7 @@ describe('ApiProductPlanListComponent', () => {
468468
fixture.detectChanges();
469469
flushPlansList([{ ...plan, status: 'CLOSED' }]);
470470

471-
expect(notifyApiProductChangedSpy).toHaveBeenCalledTimes(1);
471+
expect(notifyApiProductChangedSpy).toHaveBeenCalled();
472472
}));
473473

474474
it('notifies plan state changed after reorder so deploy banner is triggered', fakeAsync(async () => {
@@ -498,7 +498,7 @@ describe('ApiProductPlanListComponent', () => {
498498
listReq.flush({ data: [plan2, { ...plan1, order: 2 }] });
499499
fixture.detectChanges();
500500

501-
expect(notifyApiProductChangedSpy).toHaveBeenCalledTimes(1);
501+
expect(notifyApiProductChangedSpy).toHaveBeenCalled();
502502
}));
503503

504504
it('does not notify plan state changed when publish fails', fakeAsync(async () => {

gravitee-apim-console-webui/src/management/api/component/plan/api-plan-form.component.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ describe('ApiPlanFormComponent', () => {
204204
},
205205
],
206206
} as CreatePlanV2);
207+
await new Promise<void>(resolve => setTimeout(resolve, 0));
207208
});
208209
});
209210
describe('JWT plan', () => {
@@ -357,6 +358,8 @@ describe('ApiPlanFormComponent', () => {
357358
},
358359
],
359360
} as CreatePlanV2);
361+
// Allow pending setTimeout(0) from writeValue in ui-particles 17.7.3 to fire before teardown
362+
await new Promise<void>(resolve => setTimeout(resolve, 0));
360363
});
361364
});
362365
describe('API Key plan', () => {

gravitee-apim-console-webui/src/management/api/endpoints-v4/llm-provider/api-llm-provider.component.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { ComponentFixture, TestBed } from '@angular/core/testing';
17+
import { ComponentFixture, fakeAsync, flush, TestBed } from '@angular/core/testing';
1818
import { HttpTestingController } from '@angular/common/http/testing';
1919
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
2020
import { MatIconTestingModule } from '@angular/material/icon/testing';
@@ -154,7 +154,7 @@ describe('ApiProviderComponent', () => {
154154
});
155155

156156
describe('should update existing provider', () => {
157-
it('should edit and save an existing provider', async () => {
157+
it('should edit and save an existing provider', fakeAsync(async () => {
158158
const existingProvider = {
159159
name: 'Existing Provider',
160160
type: 'llm-proxy',
@@ -211,7 +211,8 @@ describe('ApiProviderComponent', () => {
211211

212212
expect(fakeSnackBarService.success).toHaveBeenCalledWith('Provider successfully updated!');
213213
expect(routerNavigateSpy).toHaveBeenCalledWith(['../../'], { relativeTo: expect.anything() });
214-
});
214+
flush();
215+
}));
215216
});
216217

217218
function expectEndpointsSharedConfigurationSchemaGetRequest(id: string) {

gravitee-apim-console-webui/src/management/api/plans/edit/api-plan-edit.component.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { ComponentFixture, TestBed } from '@angular/core/testing';
16+
import { ComponentFixture, fakeAsync, flush, TestBed } from '@angular/core/testing';
1717
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
1818
import { HttpTestingController } from '@angular/common/http/testing';
1919
import { HarnessLoader } from '@angular/cdk/testing';
@@ -193,7 +193,7 @@ describe('ApiPlanEditComponent', () => {
193193
expectApiGetRequest(fakeApiV2({ id: API_ID }));
194194
});
195195

196-
it.each(['STAGING', 'PUBLISHED', 'DEPRECATED'])('should edit plan', async (status: PlanStatus) => {
196+
it.each(['STAGING', 'PUBLISHED', 'DEPRECATED'])('should edit plan', fakeAsync(async (status: PlanStatus) => {
197197
PLAN.status = status;
198198
expectPlanGetRequest(API_ID, PLAN);
199199

@@ -281,7 +281,8 @@ describe('ApiPlanEditComponent', () => {
281281
},
282282
relativeTo: expect.anything(),
283283
});
284-
});
284+
flush();
285+
}));
285286
});
286287

287288
describe('Edit Kubernetes API', () => {

gravitee-apim-console-webui/src/management/api/policy-studio-v4/design/api-v4-policy-studio-design.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ describe('ApiV4PolicyStudioDesignComponent', () => {
639639
name: 'Test policy',
640640
policy: 'test-policy',
641641
condition: undefined,
642-
configuration: undefined,
642+
messageCondition: undefined,
643+
configuration: {},
643644
},
644645
],
645646
selectors: [

gravitee-apim-console-webui/src/management/settings/shared-policy-groups/shared-policy-group/shared-policy-group-studio/shared-policy-group-studio.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ describe('SharedPolicyGroupStudioComponent', () => {
173173
description: 'What does the 🦊 say?',
174174
condition: undefined,
175175
messageCondition: undefined,
176-
configuration: undefined,
176+
configuration: {},
177177
enabled: true,
178178
},
179179
],

gravitee-apim-e2e/api-test/src/apis/plans/mapi-v1/api-product-deletion-scenarios.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ describeIfClientGatewaySupportingApiProduct(
344344
await noContent(v2ApisResourceAsApiPublisher.deleteApiRaw({ envId, apiId: api1.id, closePlans: true }));
345345
// Mark as deleted so afterAll skips a second delete attempt.
346346
api1 = { ...api1, id: '' };
347+
348+
// Allow the gateway time to process the undeploy event.
347349
await new Promise((resolve) => setTimeout(resolve, 6000));
348350
});
349351

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@fontsource/roboto": "5.2.5",
3737
"@gravitee/ui-analytics": "17.7.2",
3838
"@gravitee/ui-components": "4.4.0",
39-
"@gravitee/ui-particles-angular": "17.7.2",
39+
"@gravitee/ui-particles-angular": "17.7.3",
4040
"@gravitee/ui-policy-studio-angular": "17.7.2",
4141
"@highcharts/map-collection": "1.1.4",
4242
"@ngx-formly/core": "6.3.12",

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4347,9 +4347,9 @@ __metadata:
43474347
languageName: node
43484348
linkType: hard
43494349

4350-
"@gravitee/ui-particles-angular@npm:17.7.2":
4351-
version: 17.7.2
4352-
resolution: "@gravitee/ui-particles-angular@npm:17.7.2"
4350+
"@gravitee/ui-particles-angular@npm:17.7.3":
4351+
version: 17.7.3
4352+
resolution: "@gravitee/ui-particles-angular@npm:17.7.3"
43534353
dependencies:
43544354
"@fontsource/fira-mono": "npm:5.0.14"
43554355
"@fontsource/kanit": "npm:^5.2.6"
@@ -4378,7 +4378,7 @@ __metadata:
43784378
optional: true
43794379
prismjs:
43804380
optional: true
4381-
checksum: 10c0/097642b504e98d52c73e1a077a9e8ee1db5d607ebb019b7167090eef2846f435e235f9361e002801d7782ee72104bda9f794823822b6bf650bb5620f8dae555a
4381+
checksum: 10c0/3842d2c3a0285a1a069a91474cd88c3714c427694f9bdc9f0f6dd0b385f9f2fb97bc1059624a82273f131405cdbc9a7574309ed9ec744862b46e031692f4b4b2
43824382
languageName: node
43834383
linkType: hard
43844384

@@ -17457,7 +17457,7 @@ __metadata:
1745717457
"@fontsource/roboto": "npm:5.2.5"
1745817458
"@gravitee/ui-analytics": "npm:17.7.2"
1745917459
"@gravitee/ui-components": "npm:4.4.0"
17460-
"@gravitee/ui-particles-angular": "npm:17.7.2"
17460+
"@gravitee/ui-particles-angular": "npm:17.7.3"
1746117461
"@gravitee/ui-policy-studio-angular": "npm:17.7.2"
1746217462
"@gravitee/ui-schematics": "npm:17.7.2"
1746317463
"@highcharts/map-collection": "npm:1.1.4"

0 commit comments

Comments
 (0)