Skip to content

Commit

Permalink
DEV test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Aug 6, 2024
1 parent 9652899 commit 0fc61b3
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 83 deletions.
144 changes: 92 additions & 52 deletions src/config/__tests__/__snapshots__/product.config.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5466,7 +5466,7 @@ exports[`Product specific configurations should apply variations in inventory fi
"info": undefined,
"isWrap": true,
"label": [Function],
"metric": "total_capacity",
"metric": "Cores",
"modifier": "wrap",
"width": 10,
},
Expand All @@ -5476,7 +5476,7 @@ exports[`Product specific configurations should apply variations in inventory fi
"info": undefined,
"isWrap": true,
"label": [Function],
"metric": "total_capacity",
"metric": "Sockets",
"modifier": "wrap",
"width": 10,
},
Expand Down Expand Up @@ -5543,15 +5543,31 @@ exports[`Product specific configurations should apply variations in inventory fi
"dataLabel": "t(curiosity-inventory.header_subscriptions, {"context":"Cores"})",
"header": [Function],
"isWrap": true,
"metric": "total_capacity",
"metric": "Cores",
"width": 10,
},
{
"content": "t(curiosity-inventory.measurement, {"testId":{"type":"span","key":null,"ref":null,"props":{"data-test":"subscriptions-cell-total_capacity-Sockets","data-value":"undefined"},"_owner":null,"_store":{}}})",
"content": <Tooltip
content="t(curiosity-inventory.label_has_infinite_quantity, {"context":"Sockets"})"
distance={15}
enableFlip={false}
entryDelay={100}
exitDelay={0}
isNoWrap={false}
position="top"
>
<ChartIcon
aria-label="t(curiosity-inventory.label_has_infinite_quantity, {"context":"Sockets"})"
fill={null}
size="md"
symbol="infinity"
title={null}
/>
</Tooltip>,
"dataLabel": "t(curiosity-inventory.header_subscriptions, {"context":"Sockets"})",
"header": [Function],
"isWrap": true,
"metric": "total_capacity",
"metric": "Sockets",
"width": 10,
},
{
Expand All @@ -5568,14 +5584,12 @@ exports[`Product specific configurations should apply variations in inventory fi
"row": {
"Cores": 2000,
"billing_provider": "dolor sit",
"hasInfiniteCores": true,
"has_infinite_quantity": true,
"loremIpsum": "hello world",
"metric_id": "Cores",
"next_event_date": "2022-01-01T00:00:00.000Z",
"product_name": "lorem",
"quantity": 1,
"service_level": "hello world",
"total_capacity": 2000,
},
},
],
Expand Down Expand Up @@ -5715,14 +5729,12 @@ exports[`Product specific configurations should apply variations in inventory fi
"row": {
"Cores": 2000,
"billing_provider": "dolor sit",
"hasInfiniteCores": true,
"has_infinite_quantity": true,
"loremIpsum": "hello world",
"metric_id": "Cores",
"next_event_date": "2022-01-01T00:00:00.000Z",
"product_name": "lorem",
"quantity": 1,
"service_level": "hello world",
"total_capacity": 2000,
},
},
],
Expand Down Expand Up @@ -5774,7 +5786,7 @@ exports[`Product specific configurations should apply variations in inventory fi
"isSort": true,
"isWrap": true,
"label": [Function],
"metric": "total_capacity",
"metric": "Sockets",
"modifier": "wrap",
"width": undefined,
},
Expand Down Expand Up @@ -5821,12 +5833,28 @@ exports[`Product specific configurations should apply variations in inventory fi
"width": 10,
},
{
"content": "t(curiosity-inventory.measurement, {"testId":{"type":"span","key":null,"ref":null,"props":{"data-test":"subscriptions-cell-total_capacity-Sockets","data-value":"undefined"},"_owner":null,"_store":{}}})",
"content": <Tooltip
content="t(curiosity-inventory.label_has_infinite_quantity, {"context":"Sockets"})"
distance={15}
enableFlip={false}
entryDelay={100}
exitDelay={0}
isNoWrap={false}
position="top"
>
<ChartIcon
aria-label="t(curiosity-inventory.label_has_infinite_quantity, {"context":"Sockets"})"
fill={null}
size="md"
symbol="infinity"
title={null}
/>
</Tooltip>,
"dataLabel": "t(curiosity-inventory.header_subscriptions, {"context":"Sockets"})",
"header": [Function],
"isSort": true,
"isWrap": true,
"metric": "total_capacity",
"metric": "Sockets",
"width": undefined,
},
{
Expand All @@ -5843,14 +5871,12 @@ exports[`Product specific configurations should apply variations in inventory fi
"row": {
"Cores": 2000,
"billing_provider": "dolor sit",
"hasInfiniteCores": true,
"has_infinite_quantity": true,
"loremIpsum": "hello world",
"metric_id": "Cores",
"next_event_date": "2022-01-01T00:00:00.000Z",
"product_name": "lorem",
"quantity": 1,
"service_level": "hello world",
"total_capacity": 2000,
},
},
],
Expand Down Expand Up @@ -5990,14 +6016,12 @@ exports[`Product specific configurations should apply variations in inventory fi
"row": {
"Cores": 2000,
"billing_provider": "dolor sit",
"hasInfiniteCores": true,
"has_infinite_quantity": true,
"loremIpsum": "hello world",
"metric_id": "Cores",
"next_event_date": "2022-01-01T00:00:00.000Z",
"product_name": "lorem",
"quantity": 1,
"service_level": "hello world",
"total_capacity": 2000,
},
},
],
Expand Down Expand Up @@ -6137,14 +6161,12 @@ exports[`Product specific configurations should apply variations in inventory fi
"row": {
"Cores": 2000,
"billing_provider": "dolor sit",
"hasInfiniteCores": true,
"has_infinite_quantity": true,
"loremIpsum": "hello world",
"metric_id": "Cores",
"next_event_date": "2022-01-01T00:00:00.000Z",
"product_name": "lorem",
"quantity": 1,
"service_level": "hello world",
"total_capacity": 2000,
},
},
],
Expand Down Expand Up @@ -6225,14 +6247,12 @@ exports[`Product specific configurations should apply variations in inventory fi
"row": {
"Cores": 2000,
"billing_provider": "dolor sit",
"hasInfiniteCores": true,
"has_infinite_quantity": true,
"loremIpsum": "hello world",
"metric_id": "Cores",
"next_event_date": "2022-01-01T00:00:00.000Z",
"product_name": "lorem",
"quantity": 1,
"service_level": "hello world",
"total_capacity": 2000,
},
},
],
Expand Down Expand Up @@ -6299,7 +6319,7 @@ exports[`Product specific configurations should apply variations in inventory fi
"info": undefined,
"isWrap": true,
"label": [Function],
"metric": "total_capacity",
"metric": "Cores",
"modifier": "wrap",
"width": 10,
},
Expand All @@ -6309,7 +6329,7 @@ exports[`Product specific configurations should apply variations in inventory fi
"info": undefined,
"isWrap": true,
"label": [Function],
"metric": "total_capacity",
"metric": "Sockets",
"modifier": "wrap",
"width": 10,
},
Expand Down Expand Up @@ -6376,15 +6396,31 @@ exports[`Product specific configurations should apply variations in inventory fi
"dataLabel": "t(curiosity-inventory.header_subscriptions, {"context":"Cores"})",
"header": [Function],
"isWrap": true,
"metric": "total_capacity",
"metric": "Cores",
"width": 10,
},
{
"content": "t(curiosity-inventory.measurement, {"testId":{"type":"span","key":null,"ref":null,"props":{"data-test":"subscriptions-cell-total_capacity-Sockets","data-value":"undefined"},"_owner":null,"_store":{}}})",
"content": <Tooltip
content="t(curiosity-inventory.label_has_infinite_quantity, {"context":"Sockets"})"
distance={15}
enableFlip={false}
entryDelay={100}
exitDelay={0}
isNoWrap={false}
position="top"
>
<ChartIcon
aria-label="t(curiosity-inventory.label_has_infinite_quantity, {"context":"Sockets"})"
fill={null}
size="md"
symbol="infinity"
title={null}
/>
</Tooltip>,
"dataLabel": "t(curiosity-inventory.header_subscriptions, {"context":"Sockets"})",
"header": [Function],
"isWrap": true,
"metric": "total_capacity",
"metric": "Sockets",
"width": 10,
},
{
Expand All @@ -6401,14 +6437,12 @@ exports[`Product specific configurations should apply variations in inventory fi
"row": {
"Cores": 2000,
"billing_provider": "dolor sit",
"hasInfiniteCores": true,
"has_infinite_quantity": true,
"loremIpsum": "hello world",
"metric_id": "Cores",
"next_event_date": "2022-01-01T00:00:00.000Z",
"product_name": "lorem",
"quantity": 1,
"service_level": "hello world",
"total_capacity": 2000,
},
},
],
Expand Down Expand Up @@ -6548,14 +6582,12 @@ exports[`Product specific configurations should apply variations in inventory fi
"row": {
"Cores": 2000,
"billing_provider": "dolor sit",
"hasInfiniteCores": true,
"has_infinite_quantity": true,
"loremIpsum": "hello world",
"metric_id": "Cores",
"next_event_date": "2022-01-01T00:00:00.000Z",
"product_name": "lorem",
"quantity": 1,
"service_level": "hello world",
"total_capacity": 2000,
},
},
],
Expand Down Expand Up @@ -6607,7 +6639,7 @@ exports[`Product specific configurations should apply variations in inventory fi
"isSort": true,
"isWrap": true,
"label": [Function],
"metric": "total_capacity",
"metric": "Sockets",
"modifier": "wrap",
"width": undefined,
},
Expand Down Expand Up @@ -6654,12 +6686,28 @@ exports[`Product specific configurations should apply variations in inventory fi
"width": 10,
},
{
"content": "t(curiosity-inventory.measurement, {"testId":{"type":"span","key":null,"ref":null,"props":{"data-test":"subscriptions-cell-total_capacity-Sockets","data-value":"undefined"},"_owner":null,"_store":{}}})",
"content": <Tooltip
content="t(curiosity-inventory.label_has_infinite_quantity, {"context":"Sockets"})"
distance={15}
enableFlip={false}
entryDelay={100}
exitDelay={0}
isNoWrap={false}
position="top"
>
<ChartIcon
aria-label="t(curiosity-inventory.label_has_infinite_quantity, {"context":"Sockets"})"
fill={null}
size="md"
symbol="infinity"
title={null}
/>
</Tooltip>,
"dataLabel": "t(curiosity-inventory.header_subscriptions, {"context":"Sockets"})",
"header": [Function],
"isSort": true,
"isWrap": true,
"metric": "total_capacity",
"metric": "Sockets",
"width": undefined,
},
{
Expand All @@ -6676,14 +6724,12 @@ exports[`Product specific configurations should apply variations in inventory fi
"row": {
"Cores": 2000,
"billing_provider": "dolor sit",
"hasInfiniteCores": true,
"has_infinite_quantity": true,
"loremIpsum": "hello world",
"metric_id": "Cores",
"next_event_date": "2022-01-01T00:00:00.000Z",
"product_name": "lorem",
"quantity": 1,
"service_level": "hello world",
"total_capacity": 2000,
},
},
],
Expand Down Expand Up @@ -6823,14 +6869,12 @@ exports[`Product specific configurations should apply variations in inventory fi
"row": {
"Cores": 2000,
"billing_provider": "dolor sit",
"hasInfiniteCores": true,
"has_infinite_quantity": true,
"loremIpsum": "hello world",
"metric_id": "Cores",
"next_event_date": "2022-01-01T00:00:00.000Z",
"product_name": "lorem",
"quantity": 1,
"service_level": "hello world",
"total_capacity": 2000,
},
},
],
Expand Down Expand Up @@ -6970,14 +7014,12 @@ exports[`Product specific configurations should apply variations in inventory fi
"row": {
"Cores": 2000,
"billing_provider": "dolor sit",
"hasInfiniteCores": true,
"has_infinite_quantity": true,
"loremIpsum": "hello world",
"metric_id": "Cores",
"next_event_date": "2022-01-01T00:00:00.000Z",
"product_name": "lorem",
"quantity": 1,
"service_level": "hello world",
"total_capacity": 2000,
},
},
],
Expand Down Expand Up @@ -7058,14 +7100,12 @@ exports[`Product specific configurations should apply variations in inventory fi
"row": {
"Cores": 2000,
"billing_provider": "dolor sit",
"hasInfiniteCores": true,
"has_infinite_quantity": true,
"loremIpsum": "hello world",
"metric_id": "Cores",
"next_event_date": "2022-01-01T00:00:00.000Z",
"product_name": "lorem",
"quantity": 1,
"service_level": "hello world",
"total_capacity": 2000,
},
},
],
Expand Down
4 changes: 1 addition & 3 deletions src/config/__tests__/product.config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,8 @@ describe('Product specific configurations', () => {
[SUBSCRIPTIONS_INVENTORY_TYPES.NEXT_EVENT_DATE]: '2022-01-01T00:00:00.000Z',
[SUBSCRIPTIONS_INVENTORY_TYPES.QUANTITY]: 1,
[SUBSCRIPTIONS_INVENTORY_TYPES.SERVICE_LEVEL]: 'hello world',
[SUBSCRIPTIONS_INVENTORY_TYPES.TOTAL_CAPACITY]: 2000,
[SUBSCRIPTIONS_INVENTORY_TYPES.METRIC_ID]: 'Cores',
[RHSM_API_PATH_METRIC_TYPES.CORES]: 2000,
[`hasInfinite${RHSM_API_PATH_METRIC_TYPES.CORES}`]: true,
[SUBSCRIPTIONS_INVENTORY_TYPES.HAS_INFINITE_QUANTITY]: true,
loremIpsum: 'hello world'
}
]
Expand Down
Loading

0 comments on commit 0fc61b3

Please sign in to comment.