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": {
|
||||
"props": {
|
||||
"customPixelEventId": "add-to-cart-button"
|
||||
|
@ -33,10 +33,17 @@
|
||||
},
|
||||
|
||||
"list-context.product-list": {
|
||||
"children": ["slider-layout#shelf-prod"],
|
||||
"children": ["html#slider"],
|
||||
"blocks": ["product-summary.shelf"]
|
||||
},
|
||||
|
||||
"html#slider": {
|
||||
"props": {
|
||||
"testId": "product-summary-list"
|
||||
},
|
||||
"children": ["slider-layout#shelf-prod"]
|
||||
},
|
||||
|
||||
"slider-layout#shelf-prod": {
|
||||
"props": {
|
||||
"itemsPerPage": {
|
||||
@ -277,11 +284,11 @@
|
||||
"product-rating-summary",
|
||||
"flex-layout.row#list-price-savings",
|
||||
"flex-layout.row#selling-price",
|
||||
"product-installments",
|
||||
"Pix-component",
|
||||
"html#product-installments",
|
||||
"html#pix",
|
||||
// "product-separator",
|
||||
"product-identifier.product",
|
||||
"sku-selector",
|
||||
"html#codigo",
|
||||
"html#sku-selector",
|
||||
"html#quantity-wrapper",
|
||||
// "product-quantity",
|
||||
// "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": {
|
||||
"props": {
|
||||
"testId": "shipping-simulator",
|
||||
@ -304,7 +339,6 @@
|
||||
"html#quantity-wrapper": {
|
||||
"props": {
|
||||
"tag": "section",
|
||||
"testId": "quantity",
|
||||
"blockClass": "quantity-wrapper"
|
||||
},
|
||||
"children": ["html#product-quantity", "html#buy-button"]
|
||||
@ -321,7 +355,6 @@
|
||||
"html#buy-button": {
|
||||
"props": {
|
||||
"tag": "div",
|
||||
"testId": "buy-button",
|
||||
"blockClass": "buy-button"
|
||||
},
|
||||
"children": ["flex-layout.row#buy-button"]
|
||||
@ -331,6 +364,13 @@
|
||||
"props": {
|
||||
"marginBottom": 3
|
||||
},
|
||||
"children": ["html#product-name"]
|
||||
},
|
||||
|
||||
"html#product-name": {
|
||||
"props": {
|
||||
"testId": "product-name"
|
||||
},
|
||||
"children": ["vtex.store-components:product-name"]
|
||||
},
|
||||
|
||||
@ -347,7 +387,7 @@
|
||||
"marginBottom": 7,
|
||||
"blockClass": "container-compra"
|
||||
},
|
||||
"children": ["add-to-cart-button"]
|
||||
"children": ["html#add-to-cart-button"]
|
||||
},
|
||||
|
||||
"flex-layout.row#product-availability": {
|
||||
@ -370,7 +410,7 @@
|
||||
},
|
||||
"children": [
|
||||
"flex-layout.row#product-name",
|
||||
"product-identifier.product",
|
||||
"html#codigo",
|
||||
"flex-layout.row#availability",
|
||||
"sku-selector"
|
||||
]
|
||||
|
@ -7,6 +7,13 @@
|
||||
"marginBottom": 4,
|
||||
"blockClass": "preco"
|
||||
},
|
||||
"children": ["html#selling-price"]
|
||||
},
|
||||
|
||||
"html#selling-price": {
|
||||
"props": {
|
||||
"testId": "product-price"
|
||||
},
|
||||
"children": ["product-selling-price"]
|
||||
},
|
||||
|
||||
|
@ -1,16 +1,31 @@
|
||||
{
|
||||
"product-summary.shelf": {
|
||||
"children": [
|
||||
"stack-layout#prodsum",
|
||||
"product-summary-name",
|
||||
"html#prateleira"
|
||||
// "stack-layout#prodsum",
|
||||
// "product-summary-name",
|
||||
// "flex-layout.col#productRating",
|
||||
// "product-summary-space",
|
||||
"product-list-price#summary",
|
||||
"product-selling-price#summary"
|
||||
// "product-list-price#summary",
|
||||
// "product-selling-price#summary"
|
||||
// "product-installments#summary"
|
||||
// "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": {
|
||||
"props": {
|
||||
"blockClass": "productRating"
|
||||
|
Loading…
Reference in New Issue
Block a user