From 9be2d763c57a9ba0fbd41e854e5fa2d2edf7463d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cain=C3=A3=20Milech?= Date: Mon, 6 Feb 2023 16:04:31 -0300 Subject: [PATCH] feat(pdp): Adiciona test ids faltantes --- store/blocks/pdp/product-tablayout.jsonc | 2 +- store/blocks/pdp/product.jsonc | 30 +++++++++++++++++++++--- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/store/blocks/pdp/product-tablayout.jsonc b/store/blocks/pdp/product-tablayout.jsonc index bf5b66c..f88e8d1 100644 --- a/store/blocks/pdp/product-tablayout.jsonc +++ b/store/blocks/pdp/product-tablayout.jsonc @@ -1,6 +1,6 @@ { "html#tab-layout": { - "props": { "testId": "tab-layout" }, + "props": { "testId": "product-description" }, "children": ["tab-layout#details"] }, diff --git a/store/blocks/pdp/product.jsonc b/store/blocks/pdp/product.jsonc index 3c3089e..76044a2 100644 --- a/store/blocks/pdp/product.jsonc +++ b/store/blocks/pdp/product.jsonc @@ -60,6 +60,7 @@ }, "children": ["breadcrumb#pdp"] }, + "flex-layout.row#specifications-title": { "children": ["rich-text#specifications"] }, @@ -68,6 +69,7 @@ "text": "##### Product Specifications" } }, + "product-description": { "props": { "marginBottom": 7, @@ -151,11 +153,11 @@ "rowGap": 0 }, "children": [ - "flex-layout.row#product-name", + "html#product-name", "html#codigo", "product-rating-summary", - "flex-layout.row#selling-price", - "product-installments", + "html#selling-price", + "html#installments", "html#pix", "html#skus", "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": { "props": { "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": { "props": { "marginBottom": 3, @@ -182,6 +205,7 @@ "html#codigo": { "props": { + "testId": "product-code", "blockClass": "codigo" }, "children": ["product-identifier.product"]