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 () => {
|
it('shows the backend availability message with the reusable tooltip', async () => {
|
||||||
const fixture = await createComponent();
|
const fixture = await createComponent();
|
||||||
fixture.componentRef.setInput('availability', {
|
fixture.componentRef.setInput('availability', {
|
||||||
|
subject: 'product',
|
||||||
maximum_quantity: 0,
|
maximum_quantity: 0,
|
||||||
restrictions: [
|
restrictions: [
|
||||||
{
|
{
|
||||||
code: 'user_quota_reached',
|
code: 'user_quota_reached',
|
||||||
message: 'Alcanzaste el cupo máximo permitido para este producto.',
|
message: 'Alcanzaste el cupo máximo permitido para este producto.',
|
||||||
scope: 'product',
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
capabilities: {
|
capabilities: {
|
||||||
|
display: true,
|
||||||
select_variant: false,
|
select_variant: false,
|
||||||
change_quantity: false,
|
change_quantity: false,
|
||||||
add_to_cart: false,
|
add_to_cart: false,
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ describe('VariantSelectorComponent', () => {
|
|||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
values: { talle: 'M' },
|
values: { talle: 'M' },
|
||||||
availability: { capabilities: { select_variant: false } },
|
availability: { capabilities: { display: true, select_variant: false } },
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
|
|||||||
Reference in New Issue
Block a user