From 63ed0972825806adb31a34c50beecb6efeafe2d0 Mon Sep 17 00:00:00 2001 From: Ramon Dias Ferreira Date: Fri, 10 Feb 2023 11:22:03 -0300 Subject: [PATCH] feat: testId add-to-cart-button adicionado --- store/blocks/pdp/product-assembly.jsonc | 2 +- store/blocks/pdp/product.jsonc | 24 ++++++++++++++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/store/blocks/pdp/product-assembly.jsonc b/store/blocks/pdp/product-assembly.jsonc index 43ad04e..726e24a 100644 --- a/store/blocks/pdp/product-assembly.jsonc +++ b/store/blocks/pdp/product-assembly.jsonc @@ -3,7 +3,7 @@ "props": { "position": "bottom" }, - "children": ["flex-layout.row#buy-button"] + "children": ["html#add-to-cart-button"] }, "product-assembly-options": { "children": [ diff --git a/store/blocks/pdp/product.jsonc b/store/blocks/pdp/product.jsonc index 252cd98..c924844 100644 --- a/store/blocks/pdp/product.jsonc +++ b/store/blocks/pdp/product.jsonc @@ -124,7 +124,7 @@ "sku-selector", "product-assembly-options", "product-gifts", - "flex-layout.row#buy-button", + "html#add-to-cart-button", "availability-subscriber", "shipping-simulator", "share#default" @@ -152,6 +152,14 @@ "children": ["flex-layout.row#selling-price"] }, + "html#add-to-cart-button": { + "props": { + "testId": "add-to-cart-button", + "blockClass": "cart-button" + }, + "children": ["product-quantity", "add-to-cart-button"] + }, + "flex-layout.row#product-name": { "props": { "marginBottom": 3, @@ -167,13 +175,13 @@ } }, - "flex-layout.row#buy-button": { - "props": { - "marginTop": 4, - "marginBottom": 7 - }, - "children": ["product-quantity", "add-to-cart-button"] - }, + // "flex-layout.row#buy-button": { + // "props": { + // "marginTop": 4, + // "marginBottom": 7 + // }, + // "children": ["product-quantity", "add-to-cart-button"] + // }, "flex-layout.row#product-availability": { "props": {