From 98f4b2320a5069bd5aa279809ee586504764cde1 Mon Sep 17 00:00:00 2001 From: Bernardo Waldhelm Date: Wed, 8 Feb 2023 14:44:54 -0300 Subject: [PATCH] feat(product): adicionando testId codigo product --- store/blocks/pdp/product.jsonc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/store/blocks/pdp/product.jsonc b/store/blocks/pdp/product.jsonc index 2bf21e7..82499fd 100644 --- a/store/blocks/pdp/product.jsonc +++ b/store/blocks/pdp/product.jsonc @@ -87,8 +87,8 @@ "blockClass": "product-skus" }, "children": [ - "flex-layout.row#product-name", - "product-identifier.product", + "html#flex-layout.row#product-name", + "html#codigo", // "product-rating-summary", // avaliações // "flex-layout.row#list-price-savings", preço com promoção vindo vtex "flex-layout.row#selling-price", @@ -106,7 +106,7 @@ ] }, - "flex-layout.row#product-name": { + "html#flex-layout.row#product-name": { "props": { "blockClass": "product__name", "testId": "product-name" @@ -114,6 +114,13 @@ "children": ["vtex.store-components:product-name"] }, + "html#codigo": { + "props": { + "testId": "product-code" + }, + "children": ["product-identifier.product"] + }, + // "html#flex-layout.row#selling-price": { // "props": { // "testId": "product-price", @@ -222,7 +229,7 @@ }, "children": [ "flex-layout.row#product-name", - "product-identifier.product", + "html#codigo", "flex-layout.row#availability", "sku-selector" ]