diff --git a/app/code/Magento/Catalog/Pricing/Render/ConfiguredPriceBox.php b/app/code/Magento/Catalog/Pricing/Render/ConfiguredPriceBox.php index 91b2b6d2a0d7f..e3629c7b220ab 100644 --- a/app/code/Magento/Catalog/Pricing/Render/ConfiguredPriceBox.php +++ b/app/code/Magento/Catalog/Pricing/Render/ConfiguredPriceBox.php @@ -86,22 +86,8 @@ protected function _prepareLayout() } /** - * {@inheritdoc} - */ - public function getPriceType($priceCode) - { - $price = $this->saleableItem->getPriceInfo()->getPrice($priceCode); - $item = $this->getData('item'); - if ($price instanceof ConfiguredPriceInterface - && $item instanceof ItemInterface - ) { - $price->setItem($item); - } - - return $price; - } - - /** + * Returns configured price + * * @return PriceInterface */ public function getConfiguredPrice(): PriceInterface @@ -117,6 +103,8 @@ public function getConfiguredPrice(): PriceInterface } /** + * Returns configured regular price + * * @return PriceInterface */ public function getConfiguredRegularPrice(): PriceInterface diff --git a/app/code/Magento/Wishlist/Test/Mftf/Test/StorefrontAddProductsWithCustomOptionToWishlistTest.xml b/app/code/Magento/Wishlist/Test/Mftf/Test/StorefrontAddProductsWithCustomOptionToWishlistTest.xml new file mode 100644 index 0000000000000..a77c991d580cd --- /dev/null +++ b/app/code/Magento/Wishlist/Test/Mftf/Test/StorefrontAddProductsWithCustomOptionToWishlistTest.xml @@ -0,0 +1,52 @@ + + + + + + + + + + <description value="Add product with custom radio button option to wishlist."/> + <group value="wishlist"/> + <severity value="MAJOR"/> + <testCaseId value="MC-34245"/> + </annotations> + <before> + <createData entity="SimpleProduct2" stepKey="simpleProduct"/> + <updateData entity="productWithOptionRadiobutton" createDataKey="simpleProduct" stepKey="updateProductWithOptions"> + <requiredEntity createDataKey="simpleProduct"/> + </updateData> + + <createData entity="Simple_US_Customer" stepKey="customer"/> + </before> + <after> + <deleteData createDataKey="simpleProduct" stepKey="deleteSimpleProduct"/> + <deleteData createDataKey="customer" stepKey="deleteCustomer"/> + </after> + + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount"> + <argument name="Customer" value="$$customer$$"/> + </actionGroup> + + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openStorefrontProductPage"> + <argument name="productUrl" value="$$simpleProduct.custom_attributes[url_key]$$"/> + </actionGroup> + + <actionGroup ref="StorefrontProductPageSelectRadioButtonOptionValueActionGroup" stepKey="selectRadioButtonOption"> + <argument name="attributeLabel" value="{{ProductOptionRadiobuttonWithTwoFixedOptions.title}}"/> + <argument name="optionLabel" value="{{ProductOptionValueRadioButtons1.title}}"/> + </actionGroup> + + <click selector="{{StorefrontProductPageSection.addToWishlist}}" stepKey="addProductToWishlist"/> + <actionGroup ref="AssertProductIsPresentInWishListActionGroup" stepKey="assertProductPresent"> + <argument name="productName" value="$$simpleProduct.name$$"/> + <argument name="productPrice" value="$222.99"/> + </actionGroup> + </test> +</tests>