Skip to content

Commit

Permalink
🔃 [Magento Community Engineering] Community Contributions - 2.4-devel…
Browse files Browse the repository at this point in the history
…op latest changes

Accepted Community Pull Requests:
 - #30340: Allow to cache search results (by @alinalexandru)
 - #29868: Remove wrong tags (by @Usik2203)
 - #28172: Issue #27925, moved the submit button to the inside of the <form> (by @vestman)
 - #28157: Fix #24091 - Selected configurable product attribute options are not displaying in wishlist page. (by @Bartlomiejsz)
 - #28928: [vcl] don't explicitly hash the host header (by @gquintard)
 - #27672: Fixed creating shipping labels in part-shipment (by @NikolasSumrak)


Fixed GitHub Issues:
 - #30508: [Issue] Allow to cache search results (reported by @m2-assistant[bot]) has been fixed in #30340 by @alinalexandru in 2.4-develop branch
   Related commits:
     1. 47c21ab

 - #30061: [Issue] Remove wrong tags (reported by @m2-assistant[bot]) has been fixed in #29868 by @Usik2203 in 2.4-develop branch
   Related commits:
     1. 3efc95a
     2. abff48f
     3. 61b3c24
     4. 199943d
     5. da555dd
     6. 4666ac0
     7. bce4a8c
     8. 9e24869
     9. ff97fe6
     10. 4cde7eb

 - #27925: Checkout: Placing an order using the enter key causes a redirect to the checkout (reported by @vestman) has been fixed in #28172 by @vestman in 2.4-develop branch
   Related commits:
     1. 4fd92e7
     2. cf5d73b
     3. 9173df7
     4. 2dee565
     5. d59c837
     6. 16fdccb
     7. 08e7e4f
     8. cfcd91d
     9. b97c6c3
     10. eb468d0
     11. 2778f76
     12. afbdb27

 - #22503: Added Wish-list product displaying with wrong configurations (reported by @GrishmaNayee) has been fixed in #28157 by @Bartlomiejsz in 2.4-develop branch
   Related commits:
     1. a128f39
     2. e3bad69
     3. 536a728
     4. 3d69b13
     5. 75a5f25
     6. 0471e4e
     7. 2c07389
     8. e3e5a9a
     9. e378086
     10. 11abbf9
     11. ac6be80
     12. 8eead95
     13. e3fd246
     14. 129f451
     15. 8d02533
     16. 840c99c

 - #24091: Selected configurable product attribute options are not displaying in wishlist page. (reported by @venugopal-codilar) has been fixed in #28157 by @Bartlomiejsz in 2.4-develop branch
   Related commits:
     1. a128f39
     2. e3bad69
     3. 536a728
     4. 3d69b13
     5. 75a5f25
     6. 0471e4e
     7. 2c07389
     8. e3e5a9a
     9. e378086
     10. 11abbf9
     11. ac6be80
     12. 8eead95
     13. e3fd246
     14. 129f451
     15. 8d02533
     16. 840c99c

 - #29988: [Issue] [vcl] don't explicitly hash the host header (reported by @m2-assistant[bot]) has been fixed in #28928 by @gquintard in 2.4-develop branch
   Related commits:
     1. 7660725
     2. 8920869

 - #29552: [Issue] Fixed creating shipping labels in part-shipment (reported by @m2-assistant[bot]) has been fixed in #27672 by @NikolasSumrak in 2.4-develop branch
   Related commits:
     1. eb8cd70
     2. b213915
     3. 40e4ac0
     4. fee7c0c
     5. 0694d79
     6. 78a897b
     7. 25422c2
  • Loading branch information
magento-engcom-team authored Oct 21, 2020
2 parents 72f9180 + 9b10019 commit 2f4d989
Show file tree
Hide file tree
Showing 43 changed files with 617 additions and 140 deletions.
1 change: 0 additions & 1 deletion app/code/Magento/AdminNotification/Block/ToolbarEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* Toolbar entry that shows latest notifications
*
* @api
* @author Magento Core Team <core@magentocommerce.com>
* @since 100.0.2
*/
class ToolbarEntry extends \Magento\Backend\Block\Template
Expand Down
1 change: 0 additions & 1 deletion app/code/Magento/AdminNotification/Model/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
/**
* AdminNotification Feed model
*
* @author Magento Core Team <core@magentocommerce.com>
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @api
* @since 100.0.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
/**
* AdminNotification Inbox interface
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
* @since 100.0.2
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
/**
* Notification service model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
* @since 100.0.2
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* AdminNotification Inbox model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\AdminNotification\Model\ResourceModel\Grid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* AdminNotification Inbox model
*
* @api
* @author Magento Core Team <core@magentocommerce.com>
* @api
* @since 100.0.2
*/
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Collection of unread notifications
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\AdminNotification\Model\ResourceModel\Inbox\Collection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

/**
* AdminNotification observer
*
* @author Magento Core Team <core@magentocommerce.com>
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
*/
class PredispatchAdminActionControllerObserver implements ObserverInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* Search queries relations grid container
*
* @api
* @author Magento Core Team <core@magentocommerce.com>
* @since 100.0.2
*/
class Edit extends \Magento\Backend\Block\Widget\Grid\Container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* Search query relations edit grid
*
* @api
* @author Magento Core Team <core@magentocommerce.com>
* @since 100.0.2
*/
class Grid extends \Magento\Backend\Block\Widget\Grid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
/**
* Catalog search recommendations resource model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
* @since 100.0.2
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php
/**
* @category Magento
* @package Magento_CatalogInventory
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
Expand All @@ -14,8 +12,6 @@

/**
* Abstract action reindex class
*
* @package Magento\CatalogInventory\Model\Indexer\Stock
*/
abstract class AbstractAction
{
Expand Down Expand Up @@ -283,6 +279,8 @@ private function doReindex($productIds = [])
}

/**
* Get cache cleaner object
*
* @return CacheCleaner
*/
private function getCacheCleaner()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php
/**
* @category Magento
* @package Magento_CatalogInventory
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
Expand All @@ -10,8 +8,6 @@

/**
* Class Row reindex action
*
* @package Magento\CatalogInventory\Model\Indexer\Stock\Action
*/
class Row extends \Magento\CatalogInventory\Model\Indexer\Stock\AbstractAction
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php
/**
* @category Magento
* @package Magento_CatalogInventory
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
Expand All @@ -10,8 +8,6 @@

/**
* Class Rows reindex action for mass actions
*
* @package Magento\CatalogInventory\Model\Indexer\Stock\Action
*/
class Rows extends \Magento\CatalogInventory\Model\Indexer\Stock\AbstractAction
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php
/**
* @category Magento
* @package Magento_CatalogInventory
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php
/**
* @category Magento
* @package Magento_CatalogInventory
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
Expand All @@ -11,7 +9,7 @@
class Processor extends \Magento\Framework\Indexer\AbstractProcessor
{
/**
* Indexer ID
* Get Indexer ID for cataloginventory_stock
*/
const INDEXER_ID = 'cataloginventory_stock';
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?php
/**
* @category Magento
* @package Magento_CatalogInventory
* @subpackage unit_tests
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?php
/**
* @category Magento
* @package Magento_CatalogInventory
* @subpackage unit_tests
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?php
/**
* @category Magento
* @package Magento_CatalogInventory
* @subpackage unit_tests
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?php
/**
* @category Magento
* @package Magento_CatalogInventory
* @subpackage unit_tests
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="CheckoutSelectPurchaseOrderPaymentActionGroup">
<annotations>
<description>Selects the 'Purchase Order' Payment Method on the Storefront Checkout page.</description>
</annotations>

<arguments>
<argument name="purchaseOrderNumber" type="string"/>
</arguments>
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<remove keyForRemoval="checkCheckMoneyOption"/>
<conditionalClick selector="{{CheckoutPaymentSection.purchaseOrderPayment}}" dependentSelector="{{CheckoutPaymentSection.purchaseOrderPayment}}" visible="true" stepKey="checkPurchaseOrderOption"/>
<fillField selector="{{StorefrontCheckoutPaymentMethodSection.purchaseOrderNumber}}" userInput="{{purchaseOrderNumber}}" stepKey="fillPurchaseOrderNumber"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskAfterPaymentMethodSelection"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<element name="cartItemsArea" type="button" selector="div.block.items-in-cart"/>
<element name="cartItemsAreaActive" type="textarea" selector="div.block.items-in-cart.active" timeout="30"/>
<element name="checkMoneyOrderPayment" type="radio" selector="input#checkmo.radio" timeout="30"/>
<element name="purchaseOrderPayment" type="radio" selector="input#purchaseorder.radio" timeout="30"/>
<element name="placeOrder" type="button" selector=".payment-method._active button.action.primary.checkout" timeout="30"/>
<element name="placeOrderWithoutTimeout" type="button" selector=".payment-method._active button.action.primary.checkout"/>
<element name="paymentSectionTitle" type="text" selector="//*[@id='checkout-payment-method-load']//div[@data-role='title']" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">

<test name="StorefrontCheckoutWithPurchaseOrderNumberPressKeyEnterTest">
<annotations>
<features value="Checkout"/>
<stories value="Checkout with Purchase Order Payment. Create Order with Press Key Enter."/>
<title value="Create Checkout with purchase order payment method test. Press key Enter on field Purchase Order Number for create Order."/>
<description value="Create Checkout with purchase order payment method. Press key Enter on field Purchase Order Number for create Order."/>
<severity value="MAJOR"/>
<testCaseId value="MC-37227"/>
<group value="checkout"/>
</annotations>

<before>
<createData entity="SimpleTwo" stepKey="createSimpleProduct"/>

<!-- Enable payment method -->
<magentoCLI command="config:set {{PurchaseOrderEnableConfigData.path}} {{PurchaseOrderEnableConfigData.value}}" stepKey="enablePaymentMethod"/>
</before>

<after>
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
<deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/>

<!-- Disable payment method -->
<magentoCLI command="config:set {{PurchaseOrderDisabledConfigData.path}} {{PurchaseOrderDisabledConfigData.value}}" stepKey="disablePaymentMethod"/>
</after>

<!--Go to product page-->
<amOnPage url="$$createSimpleProduct.custom_attributes[url_key]$$.html" stepKey="navigateToSimpleProductPage"/>
<waitForPageLoad stepKey="waitForCatalogPageLoad"/>

<!--Add Product to Shopping Cart-->
<actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">
<argument name="productName" value="$$createSimpleProduct.name$$"/>
</actionGroup>

<!--Go to Checkout-->
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/>

<actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShippingSection">
<argument name="customerVar" value="CustomerEntityOne"/>
<argument name="customerAddressVar" value="CustomerAddressSimple"/>
</actionGroup>

<!-- Checkout select Purchase Order payment -->
<actionGroup ref="CheckoutSelectPurchaseOrderPaymentActionGroup" stepKey="selectPurchaseOrderPayment">
<argument name="purchaseOrderNumber" value="12345"/>
</actionGroup>

<!--Press Key ENTER-->
<pressKey selector="{{StorefrontCheckoutPaymentMethodSection.purchaseOrderNumber}}" parameterArray="[\Facebook\WebDriver\WebDriverKeys::ENTER]" stepKey="pressKeyEnter"/>
<waitForPageLoad stepKey="waitForPageLoad"/>

<!--See success messages-->
<see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="seeSuccessTitle"/>
<see selector="{{CheckoutSuccessMainSection.orderNumberText}}" userInput="Your order # is: " stepKey="seeOrderNumber"/>

</test>

</tests>
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
<test name="StorefrontCheckoutWithPurchaseOrderNumberTest">
<annotations>
<features value="Checkout"/>
<stories value="Checkout with Purchase Order Payment"/>
<title value="Create Checkout with purchase order payment method test"/>
<description value="Create Checkout with purchase order payment method"/>
<severity value="MAJOR"/>
<group value="checkout"/>
</annotations>

<before>
<createData entity="SimpleTwo" stepKey="createSimpleProduct"/>

<!-- Enable payment method -->
<magentoCLI command="config:set {{PurchaseOrderEnableConfigData.path}} {{PurchaseOrderEnableConfigData.value}}" stepKey="enablePaymentMethod"/>
</before>

<after>
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
<deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/>

<!-- Disable payment method -->
<magentoCLI command="config:set {{PurchaseOrderDisabledConfigData.path}} {{PurchaseOrderDisabledConfigData.value}}" stepKey="disablePaymentMethod"/>
</after>

<!--Go to product page-->
<amOnPage url="$$createSimpleProduct.custom_attributes[url_key]$$.html" stepKey="navigateToSimpleProductPage"/>
<waitForPageLoad stepKey="waitForCatalogPageLoad"/>

<!--Add Product to Shopping Cart-->
<actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">
<argument name="productName" value="$$createSimpleProduct.name$$"/>
</actionGroup>

<!--Go to Checkout-->
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/>

<actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShippingSection">
<argument name="customerVar" value="CustomerEntityOne"/>
<argument name="customerAddressVar" value="CustomerAddressSimple"/>
</actionGroup>

<!-- Checkout select Purchase Order payment -->
<actionGroup ref="CheckoutSelectPurchaseOrderPaymentActionGroup" stepKey="selectPurchaseOrderPayment">
<argument name="purchaseOrderNumber" value="12345"/>
</actionGroup>

<!--Click Place Order button-->
<click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder"/>
<waitForPageLoad stepKey="waitForPageLoad"/>

<!--See success messages-->
<see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="seeSuccessTitle"/>
<see selector="{{CheckoutSuccessMainSection.orderNumberText}}" userInput="Your order # is: " stepKey="seeOrderNumber"/>

</test>

</tests>
Loading

0 comments on commit 2f4d989

Please sign in to comment.