feat: adiciona testId

This commit is contained in:
Sabrina Miranda 2023-02-07 16:39:38 -03:00
parent f535767a22
commit 9949801df3
2 changed files with 27 additions and 4 deletions

View File

@ -138,6 +138,14 @@
"children": ["pix-component"] "children": ["pix-component"]
}, },
"html#codigo": {
"props": {
"blockClass": "codigo",
"testId": "product-code"
},
"children": ["product-identifier.product"]
},
"html#right-col": { "html#right-col": {
"props": { "props": {
"tag": "section", "tag": "section",
@ -145,10 +153,10 @@
}, },
"children": [ "children": [
"html#product-name", "html#product-name",
"product-identifier.product", "html#codigo",
"product-rating-summary", "product-rating-summary",
"flex-layout.row#selling-price", "flex-layout.row#selling-price",
"product-installments#m3", "html#product-installments",
"html#pix-price", "html#pix-price",
"html#sku-selector-m3", "html#sku-selector-m3",
"html#product-quantity-cart-button", "html#product-quantity-cart-button",
@ -178,9 +186,17 @@
} }
}, },
"html#product-installments": {
"props": {
"testId": "product-installments"
},
"children": ["product-installments#m3"]
},
"html#product-name": { "html#product-name": {
"props": { "props": {
"tag": "div", "tag": "div",
"testId": "product-name",
"blockClass": "product-name" "blockClass": "product-name"
}, },
"children": ["vtex.store-components:product-name"] "children": ["vtex.store-components:product-name"]
@ -230,7 +246,7 @@
}, },
"children": [ "children": [
"html#product-name", "html#product-name",
"product-identifier.product", "html#codigo",
"html#availability", "html#availability",
"html#sku-selector-m3" "html#sku-selector-m3"
] ]

View File

@ -1,4 +1,11 @@
{ {
"html#selling-price": {
"props": {
"testId": "product-price"
},
"children": ["product-selling-price"]
},
"flex-layout.row#selling-price": { "flex-layout.row#selling-price": {
"props": { "props": {
"colGap": 2, "colGap": 2,
@ -7,7 +14,7 @@
"marginBottom": 4 "marginBottom": 4
}, },
"children": [ "children": [
"product-selling-price" "html#selling-price"
] ]
}, },