feat(product): adicionando testId codigo product

This commit is contained in:
Bernardo Cunha Ernani Waldhelm 2023-02-08 14:44:54 -03:00
parent b5945b81e3
commit 98f4b2320a

View File

@ -87,8 +87,8 @@
"blockClass": "product-skus" "blockClass": "product-skus"
}, },
"children": [ "children": [
"flex-layout.row#product-name", "html#flex-layout.row#product-name",
"product-identifier.product", "html#codigo",
// "product-rating-summary", // avaliações // "product-rating-summary", // avaliações
// "flex-layout.row#list-price-savings", preço com promoção vindo vtex // "flex-layout.row#list-price-savings", preço com promoção vindo vtex
"flex-layout.row#selling-price", "flex-layout.row#selling-price",
@ -106,7 +106,7 @@
] ]
}, },
"flex-layout.row#product-name": { "html#flex-layout.row#product-name": {
"props": { "props": {
"blockClass": "product__name", "blockClass": "product__name",
"testId": "product-name" "testId": "product-name"
@ -114,6 +114,13 @@
"children": ["vtex.store-components:product-name"] "children": ["vtex.store-components:product-name"]
}, },
"html#codigo": {
"props": {
"testId": "product-code"
},
"children": ["product-identifier.product"]
},
// "html#flex-layout.row#selling-price": { // "html#flex-layout.row#selling-price": {
// "props": { // "props": {
// "testId": "product-price", // "testId": "product-price",
@ -222,7 +229,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"
] ]