feat(pdp): Adiciona test ids faltantes

This commit is contained in:
Cainã Milech 2023-02-06 16:04:31 -03:00
parent 94aa3c4768
commit 9be2d763c5
2 changed files with 28 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"html#tab-layout": { "html#tab-layout": {
"props": { "testId": "tab-layout" }, "props": { "testId": "product-description" },
"children": ["tab-layout#details"] "children": ["tab-layout#details"]
}, },

View File

@ -60,6 +60,7 @@
}, },
"children": ["breadcrumb#pdp"] "children": ["breadcrumb#pdp"]
}, },
"flex-layout.row#specifications-title": { "flex-layout.row#specifications-title": {
"children": ["rich-text#specifications"] "children": ["rich-text#specifications"]
}, },
@ -68,6 +69,7 @@
"text": "##### Product Specifications" "text": "##### Product Specifications"
} }
}, },
"product-description": { "product-description": {
"props": { "props": {
"marginBottom": 7, "marginBottom": 7,
@ -151,11 +153,11 @@
"rowGap": 0 "rowGap": 0
}, },
"children": [ "children": [
"flex-layout.row#product-name", "html#product-name",
"html#codigo", "html#codigo",
"product-rating-summary", "product-rating-summary",
"flex-layout.row#selling-price", "html#selling-price",
"product-installments", "html#installments",
"html#pix", "html#pix",
"html#skus", "html#skus",
"html#qtd-btn", "html#qtd-btn",
@ -164,6 +166,20 @@
] ]
}, },
"html#installments": {
"props": {
"testId": "product-installments"
},
"children": ["product-installments"]
},
"html#selling-price": {
"props": {
"testId": "product-price"
},
"children": ["flex-layout.row#selling-price"]
},
"product-installments": { "product-installments": {
"props": { "props": {
"installmentsCriteria": "max-quantity-without-interest", "installmentsCriteria": "max-quantity-without-interest",
@ -172,6 +188,13 @@
} }
}, },
"html#product-name": {
"props": {
"testId": "product-name"
},
"children": ["flex-layout.row#product-name"]
},
"flex-layout.row#product-name": { "flex-layout.row#product-name": {
"props": { "props": {
"marginBottom": 3, "marginBottom": 3,
@ -182,6 +205,7 @@
"html#codigo": { "html#codigo": {
"props": { "props": {
"testId": "product-code",
"blockClass": "codigo" "blockClass": "codigo"
}, },
"children": ["product-identifier.product"] "children": ["product-identifier.product"]