feat: todos os testes ids adicionados

This commit is contained in:
Ramon Dias Ferreira 2023-02-10 15:07:00 -03:00
parent 63ed097282
commit ca07cdb06c
2 changed files with 86 additions and 15 deletions

View File

@ -3,7 +3,7 @@
"props": { "props": {
"position": "bottom" "position": "bottom"
}, },
"children": ["html#add-to-cart-button"] "children": ["html#add-to-cart-container"]
}, },
"product-assembly-options": { "product-assembly-options": {
"children": [ "children": [

View File

@ -6,7 +6,7 @@
// "flex-layout.row#description", // "flex-layout.row#description",
// "flex-layout.row#specifications-title", // "flex-layout.row#specifications-title",
// "product-specification-group#table", // "product-specification-group#table",
"tab-layout#product", "html#product-description",
"rich-text#carrossel-message", "rich-text#carrossel-message",
"list-context.product-list#carousel-list", "list-context.product-list#carousel-list",
// "product-summary.shelf", // "product-summary.shelf",
@ -57,7 +57,8 @@
"marginTop": 4, "marginTop": 4,
"marginBottom": 7, "marginBottom": 7,
"paddingTop": 7, "paddingTop": 7,
"paddingBottom": 7 "paddingBottom": 7,
"blockClass": "product-main"
}, },
"children": ["flex-layout.col#stack", "flex-layout.col#right-col"] "children": ["flex-layout.col#stack", "flex-layout.col#right-col"]
}, },
@ -90,8 +91,16 @@
} }
}, },
"flex-layout.row#product-image": { "flex-layout.row#product-image": {
"children": ["html#product-image"]
},
"html#product-image": {
"props": {
"testId": "product-images"
},
"children": ["product-images"] "children": ["product-images"]
}, },
"product-images": { "product-images": {
"props": { "props": {
"aspectRatio": { "aspectRatio": {
@ -113,7 +122,7 @@
"rowGap": 0 "rowGap": 0
}, },
"children": [ "children": [
"flex-layout.row#product-name", "html#product-name",
// "product-rating-summary", // "product-rating-summary",
// "flex-layout.row#list-price-savings", // "flex-layout.row#list-price-savings",
@ -121,16 +130,23 @@
"html#installments", "html#installments",
"html#pix", "html#pix",
// "product-separator", // "product-separator",
"sku-selector", "html#sku-selector",
"product-assembly-options", "product-assembly-options",
"product-gifts", "product-gifts",
"html#add-to-cart-button", "html#add-to-cart-container",
"availability-subscriber", "availability-subscriber",
"shipping-simulator", "html#shipping-simulator",
"share#default" "share#default"
] ]
}, },
"html#shipping-simulator": {
"props": {
"testId": "shipping-simulator"
},
"children": ["shipping-simulator"]
},
"html#installments": { "html#installments": {
"props": { "props": {
"testId": "product-installments" "testId": "product-installments"
@ -152,12 +168,28 @@
"children": ["flex-layout.row#selling-price"] "children": ["flex-layout.row#selling-price"]
}, },
"html#add-to-cart-button": { "html#add-to-cart-container": {
"props": { "props": {
"testId": "add-to-cart-button", "testId": "add-to-cart-button",
"blockClass": "cart-button" "blockClass": "cart-button"
}, },
"children": ["product-quantity", "add-to-cart-button"] "children": ["html#product-quantity", "add-to-cart-button"]
},
"html#product-quantity": {
"props": {
"testId": "product-quantity",
"blockClass": "cart-button"
},
"children": ["product-quantity"]
},
"html#product-name": {
"props": {
"testId": "product-name"
},
"children": ["flex-layout.row#product-name"]
}, },
"flex-layout.row#product-name": { "flex-layout.row#product-name": {
@ -165,7 +197,21 @@
"marginBottom": 3, "marginBottom": 3,
"blockClass": "identifier" "blockClass": "identifier"
}, },
"children": ["vtex.store-components:product-name", "product-identifier.product"] "children": ["vtex.store-components:product-name", "html#codigo"]
},
"html#codigo": {
"props": {
"testId": "product-code"
},
"children": ["product-identifier.product"]
},
"html#sku-selector": {
"props": {
"testId": "sku-selector"
},
"children": ["sku-selector"]
}, },
"sku-selector": { "sku-selector": {
@ -226,6 +272,13 @@
} }
}, },
"html#product-description": {
"props": {
"testId": "product-description"
},
"children": ["tab-layout#product"]
},
"tab-layout#product":{ "tab-layout#product":{
"children": [ "children": [
"tab-list#product", "tab-list#product",
@ -357,18 +410,36 @@
"list-context.product-list#carousel-list": { "list-context.product-list#carousel-list": {
"blocks": ["product-summary.shelf#carousel-shelf"], "blocks": ["product-summary.shelf#carousel-shelf"],
"children": ["slider-layout#carousel"] "children": ["html#product-summary-list"]
}, },
"product-summary.shelf#carousel-shelf": { "product-summary.shelf#carousel-shelf": {
"children": [ "children": [
"product-summary-image", "html#vtex-product-summary"
"product-summary-name",
"product-summary-space",
"product-summary-price"
] ]
}, },
"html#vtex-product-summary": {
"props": {
"testId": "vtex-product-summary"
},
"children": ["product-summary-image",
"product-summary-name",
"product-summary-space",
"product-list-price",
"product-selling-price"]
},
"html#product-summary-list": {
"props": {
"testId": "product-summary-list"
},
"children": ["slider-layout#carousel"]
},
"slider-layout#carousel": { "slider-layout#carousel": {
"props": { "props": {
"itemsPerPage": { "itemsPerPage": {