feat(data-tests): Adiciona os data-tests restantes
This commit is contained in:
parent
cfe26eea9f
commit
7c0742f12b
@ -7,6 +7,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"html#add-to-cart-button": {
|
||||||
|
"props": {
|
||||||
|
"testId": "add-to-cart-button"
|
||||||
|
},
|
||||||
|
"children": ["add-to-cart-button"]
|
||||||
|
},
|
||||||
|
|
||||||
"minicart.v2": {
|
"minicart.v2": {
|
||||||
"props": {
|
"props": {
|
||||||
"customPixelEventId": "add-to-cart-button"
|
"customPixelEventId": "add-to-cart-button"
|
||||||
|
@ -33,10 +33,17 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"list-context.product-list": {
|
"list-context.product-list": {
|
||||||
"children": ["slider-layout#shelf-prod"],
|
"children": ["html#slider"],
|
||||||
"blocks": ["product-summary.shelf"]
|
"blocks": ["product-summary.shelf"]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"html#slider": {
|
||||||
|
"props": {
|
||||||
|
"testId": "product-summary-list"
|
||||||
|
},
|
||||||
|
"children": ["slider-layout#shelf-prod"]
|
||||||
|
},
|
||||||
|
|
||||||
"slider-layout#shelf-prod": {
|
"slider-layout#shelf-prod": {
|
||||||
"props": {
|
"props": {
|
||||||
"itemsPerPage": {
|
"itemsPerPage": {
|
||||||
@ -277,11 +284,11 @@
|
|||||||
"product-rating-summary",
|
"product-rating-summary",
|
||||||
"flex-layout.row#list-price-savings",
|
"flex-layout.row#list-price-savings",
|
||||||
"flex-layout.row#selling-price",
|
"flex-layout.row#selling-price",
|
||||||
"product-installments",
|
"html#product-installments",
|
||||||
"Pix-component",
|
"html#pix",
|
||||||
// "product-separator",
|
// "product-separator",
|
||||||
"product-identifier.product",
|
"html#codigo",
|
||||||
"sku-selector",
|
"html#sku-selector",
|
||||||
"html#quantity-wrapper",
|
"html#quantity-wrapper",
|
||||||
// "product-quantity",
|
// "product-quantity",
|
||||||
// "product-assembly-options",
|
// "product-assembly-options",
|
||||||
@ -294,6 +301,34 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"html#sku-selector": {
|
||||||
|
"props": {
|
||||||
|
"testId": "sku-selector"
|
||||||
|
},
|
||||||
|
"children": ["sku-selector"]
|
||||||
|
},
|
||||||
|
|
||||||
|
"html#pix": {
|
||||||
|
"props": {
|
||||||
|
"testId": "pix-price"
|
||||||
|
},
|
||||||
|
"children": ["Pix-component"]
|
||||||
|
},
|
||||||
|
|
||||||
|
"html#product-installments": {
|
||||||
|
"props": {
|
||||||
|
"testId": "product-installments"
|
||||||
|
},
|
||||||
|
"children": ["product-installments"]
|
||||||
|
},
|
||||||
|
|
||||||
|
"html#codigo": {
|
||||||
|
"props": {
|
||||||
|
"testId": "product-code"
|
||||||
|
},
|
||||||
|
"children": ["product-identifier.product"]
|
||||||
|
},
|
||||||
|
|
||||||
"html#shipping-simulator": {
|
"html#shipping-simulator": {
|
||||||
"props": {
|
"props": {
|
||||||
"testId": "shipping-simulator",
|
"testId": "shipping-simulator",
|
||||||
@ -304,7 +339,6 @@
|
|||||||
"html#quantity-wrapper": {
|
"html#quantity-wrapper": {
|
||||||
"props": {
|
"props": {
|
||||||
"tag": "section",
|
"tag": "section",
|
||||||
"testId": "quantity",
|
|
||||||
"blockClass": "quantity-wrapper"
|
"blockClass": "quantity-wrapper"
|
||||||
},
|
},
|
||||||
"children": ["html#product-quantity", "html#buy-button"]
|
"children": ["html#product-quantity", "html#buy-button"]
|
||||||
@ -321,7 +355,6 @@
|
|||||||
"html#buy-button": {
|
"html#buy-button": {
|
||||||
"props": {
|
"props": {
|
||||||
"tag": "div",
|
"tag": "div",
|
||||||
"testId": "buy-button",
|
|
||||||
"blockClass": "buy-button"
|
"blockClass": "buy-button"
|
||||||
},
|
},
|
||||||
"children": ["flex-layout.row#buy-button"]
|
"children": ["flex-layout.row#buy-button"]
|
||||||
@ -331,6 +364,13 @@
|
|||||||
"props": {
|
"props": {
|
||||||
"marginBottom": 3
|
"marginBottom": 3
|
||||||
},
|
},
|
||||||
|
"children": ["html#product-name"]
|
||||||
|
},
|
||||||
|
|
||||||
|
"html#product-name": {
|
||||||
|
"props": {
|
||||||
|
"testId": "product-name"
|
||||||
|
},
|
||||||
"children": ["vtex.store-components:product-name"]
|
"children": ["vtex.store-components:product-name"]
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -347,7 +387,7 @@
|
|||||||
"marginBottom": 7,
|
"marginBottom": 7,
|
||||||
"blockClass": "container-compra"
|
"blockClass": "container-compra"
|
||||||
},
|
},
|
||||||
"children": ["add-to-cart-button"]
|
"children": ["html#add-to-cart-button"]
|
||||||
},
|
},
|
||||||
|
|
||||||
"flex-layout.row#product-availability": {
|
"flex-layout.row#product-availability": {
|
||||||
@ -370,7 +410,7 @@
|
|||||||
},
|
},
|
||||||
"children": [
|
"children": [
|
||||||
"flex-layout.row#product-name",
|
"flex-layout.row#product-name",
|
||||||
"product-identifier.product",
|
"html#codigo",
|
||||||
"flex-layout.row#availability",
|
"flex-layout.row#availability",
|
||||||
"sku-selector"
|
"sku-selector"
|
||||||
]
|
]
|
||||||
|
@ -7,6 +7,13 @@
|
|||||||
"marginBottom": 4,
|
"marginBottom": 4,
|
||||||
"blockClass": "preco"
|
"blockClass": "preco"
|
||||||
},
|
},
|
||||||
|
"children": ["html#selling-price"]
|
||||||
|
},
|
||||||
|
|
||||||
|
"html#selling-price": {
|
||||||
|
"props": {
|
||||||
|
"testId": "product-price"
|
||||||
|
},
|
||||||
"children": ["product-selling-price"]
|
"children": ["product-selling-price"]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1,16 +1,31 @@
|
|||||||
{
|
{
|
||||||
"product-summary.shelf": {
|
"product-summary.shelf": {
|
||||||
"children": [
|
"children": [
|
||||||
"stack-layout#prodsum",
|
"html#prateleira"
|
||||||
"product-summary-name",
|
// "stack-layout#prodsum",
|
||||||
|
// "product-summary-name",
|
||||||
// "flex-layout.col#productRating",
|
// "flex-layout.col#productRating",
|
||||||
// "product-summary-space",
|
// "product-summary-space",
|
||||||
"product-list-price#summary",
|
// "product-list-price#summary",
|
||||||
"product-selling-price#summary"
|
// "product-selling-price#summary"
|
||||||
// "product-installments#summary"
|
// "product-installments#summary"
|
||||||
// "add-to-cart-button"
|
// "add-to-cart-button"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"html#prateleira": {
|
||||||
|
"props": {
|
||||||
|
"testId": "vtex-product-summary"
|
||||||
|
},
|
||||||
|
"children": [
|
||||||
|
"stack-layout#prodsum",
|
||||||
|
"product-summary-name",
|
||||||
|
|
||||||
|
"product-list-price#summary",
|
||||||
|
"product-selling-price#summary"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
"flex-layout.col#productRating": {
|
"flex-layout.col#productRating": {
|
||||||
"props": {
|
"props": {
|
||||||
"blockClass": "productRating"
|
"blockClass": "productRating"
|
||||||
|
Loading…
Reference in New Issue
Block a user