test(catalog): update availability contract fixtures

This commit is contained in:
2026-08-24 15:16:13 -03:00
parent f02f4456b7
commit 3ec469a539
2 changed files with 3 additions and 2 deletions

View File

@@ -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,

View File

@@ -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();