test(catalog): update availability contract fixtures
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user