From 3ec469a539d8db3d80d8d1bb2b0922fcf4e414c9 Mon Sep 17 00:00:00 2001 From: ncoronel Date: Mon, 24 Aug 2026 15:16:13 -0300 Subject: [PATCH] test(catalog): update availability contract fixtures --- .../product-vertical-with-cart-card.component.spec.ts | 3 ++- .../variant-selector/variant-selector.component.spec.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/shared/components/product-vertical-with-cart-card/product-vertical-with-cart-card.component.spec.ts b/src/app/shared/components/product-vertical-with-cart-card/product-vertical-with-cart-card.component.spec.ts index 204db94..e23f0db 100644 --- a/src/app/shared/components/product-vertical-with-cart-card/product-vertical-with-cart-card.component.spec.ts +++ b/src/app/shared/components/product-vertical-with-cart-card/product-vertical-with-cart-card.component.spec.ts @@ -59,15 +59,16 @@ describe('ProductVerticalWithCartCardComponent', () => { it('shows the backend availability message with the reusable tooltip', async () => { const fixture = await createComponent(); fixture.componentRef.setInput('availability', { + subject: 'product', maximum_quantity: 0, restrictions: [ { code: 'user_quota_reached', message: 'Alcanzaste el cupo máximo permitido para este producto.', - scope: 'product', }, ], capabilities: { + display: true, select_variant: false, change_quantity: false, add_to_cart: false, diff --git a/src/app/shared/components/variant-selector/variant-selector.component.spec.ts b/src/app/shared/components/variant-selector/variant-selector.component.spec.ts index c72276d..4fecc0c 100644 --- a/src/app/shared/components/variant-selector/variant-selector.component.spec.ts +++ b/src/app/shared/components/variant-selector/variant-selector.component.spec.ts @@ -92,7 +92,7 @@ describe('VariantSelectorComponent', () => { { id: 2, values: { talle: 'M' }, - availability: { capabilities: { select_variant: false } }, + availability: { capabilities: { display: true, select_variant: false } }, }, ]); fixture.detectChanges();