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