Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.4-develop' into phpunit8/modul…
Browse files Browse the repository at this point in the history
…e-Catalog

# Conflicts:
#	app/code/Magento/MediaGallery/Test/Unit/Model/Asset/Command/SaveTest.php
#	app/code/Magento/MediaGallery/Test/Unit/Model/Keyword/Command/GetAssetKeywordsTest.php
#	app/code/Magento/MediaGallery/Test/Unit/Model/Keyword/Command/SaveAssetKeywordsTest.php
#	app/code/Magento/MediaGallery/Test/Unit/Model/Keyword/Command/SaveAssetLinksTest.php
  • Loading branch information
lbajsarowicz committed Apr 23, 2020
2 parents 30ac195 + d4a9098 commit c21be03
Show file tree
Hide file tree
Showing 219 changed files with 6,775 additions and 940 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@
<waitForPageLoad stepKey="waitForElementAdded"/>

<!-- Go to the shopping cart page and grab the value of the option title -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="onPageShoppingCart"/>
<waitForPageLoad stepKey="waitForCartPageLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="onPageShoppingCart"/>
<grabTextFrom selector="{{CheckoutCartProductSection.nthBundleOptionName('1')}}" stepKey="grabTotalBefore"/>

<!-- Find the product that we just created using the product grid -->
Expand All @@ -101,8 +100,7 @@
<see stepKey="assertSuccess2" selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product."/>

<!-- Go to the shopping cart page and make sure the title has changed -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="onPageShoppingCart1"/>
<waitForPageLoad stepKey="waitForCartPageLoad1"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="onPageShoppingCart1"/>
<grabTextFrom selector="{{CheckoutCartProductSection.nthBundleOptionName('1')}}" stepKey="grabTotalAfter"/>
<assertNotEquals stepKey="assertNotEquals">
<actualResult type="string">{$grabTotalAfter}</actualResult>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@
<see selector="{{StorefrontMessagesSection.success}}" userInput="You added {{BundleProduct.name}} to your shopping cart." stepKey="seeAddToCartSuccessMessage"/>

<!-- Verify cart contents -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToCart"/>
<waitForPageLoad stepKey="waitForCart"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCart"/>
<see selector="{{StorefrontBundledSection.nthItemOptionsTitle('1')}}" userInput="Option One" stepKey="seeOption1"/>
<see selector="{{StorefrontBundledSection.nthItemOptionsTitle('2')}}" userInput="Option Two" stepKey="seeOption2"/>
<see selector="{{StorefrontBundledSection.nthItemOptionsTitle('3')}}" userInput="Option Three" stepKey="seeOption3"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@
<waitForPageLoad stepKey="waitForElementAdded2"/>

<!-- Go to the shopping cart page and edit the first product -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="onPageShoppingCart"/>
<waitForPageLoad stepKey="waitForCartPageLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="onPageShoppingCart"/>
<waitForElementVisible stepKey="waitForInfoDropdown" selector="{{CheckoutCartSummarySection.total}}"/>
<waitForPageLoad stepKey="waitForCartPageLoad3"/>
<grabTextFrom selector="{{CheckoutCartSummarySection.total}}" stepKey="grabTotalBefore"/>
Expand All @@ -107,8 +106,7 @@
<waitForPageLoad stepKey="waitForElementAdded3"/>

<!-- Go to the shopping cart page -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="onPageShoppingCart2"/>
<waitForPageLoad stepKey="waitForCartPageLoad2"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="onPageShoppingCart2"/>

<!-- Assert that the options are both there and the proce no longer matches -->
<see stepKey="assertBothOptions" selector="{{CheckoutCartProductSection.nthItemOption('2')}}" userInput="$$simpleProduct1.sku$$"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@
</actionGroup>

<!-- Check that cart page contains cross-sell to simpleProduct2 and simpleProduct3-->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToCart1"/>
<waitForPageLoad stepKey="waitForCartToLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCart1"/>
<waitForElementVisible selector="{{CheckoutCartCrossSellSection.products}}" stepKey="waitForCrossSellLoading"/>
<see stepKey="seeProduct2InCrossSell" selector="{{CheckoutCartCrossSellSection.products}}" userInput="$simpleProduct2.name$"/>
<see stepKey="seeProduct3InCrossSell" selector="{{CheckoutCartCrossSellSection.products}}" userInput="$simpleProduct3.name$"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@
<fillField selector="{{AdminProductFormAdvancedPricingSection.productTierPricePercentageValuePriceInput('1')}}" userInput="25" stepKey="selectProductTierPricePercentageValue2"/>
<click selector="{{AdminProductFormAdvancedPricingSection.doneButton}}" stepKey="clickDoneButton4"/>
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct4"/>
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToShoppingCartPage1"/>
<waitForPageLoad time="30" stepKey="waitForShoppingCartPagePageLoad1"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToShoppingCartPage1"/>
<seeInField userInput="20" selector="{{CheckoutCartProductSection.ProductQuantityByName($$createSimpleProduct.name$$)}}" stepKey="seeInQtyField20"/>
<grabTextFrom selector="{{CheckoutCartProductSection.productSubtotalByName($$createSimpleProduct.name$$)}}" stepKey="grabTextFromSubtotalField4"/>
<assertEquals message="Shopping cart should contain subtotal $1,500" stepKey="assertSubtotalField4">
Expand All @@ -198,8 +197,7 @@
<click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfig1"/>
<see selector="{{AdminMessagesSection.success}}" userInput="You saved the configuration." stepKey="seeConfigSuccessMessage1"/>
<actionGroup ref="ClearCacheActionGroup" stepKey="flushCache1"/>
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToShoppingCartPage2"/>
<waitForPageLoad time="30" stepKey="waitForShoppingCartPagePageLoad2"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToShoppingCartPage2"/>
<seeInField userInput="20" selector="{{CheckoutCartProductSection.ProductQuantityByName($$createSimpleProduct.name$$)}}" stepKey="seeInQtyField20_2"/>
<grabTextFrom selector="{{CheckoutCartProductSection.productSubtotalByName($$createSimpleProduct.name$$)}}" stepKey="grabTextFromSubtotalField5"/>
<assertEquals message="Shopping cart should contain subtotal $1,500" stepKey="assertSubtotalField5">
Expand All @@ -212,8 +210,7 @@
<click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfig2"/>
<see selector="{{AdminMessagesSection.success}}" userInput="You saved the configuration." stepKey="seeConfigSuccessMessage2"/>
<actionGroup ref="ClearCacheActionGroup" stepKey="flushCache2"/>
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToShoppingCartPage3"/>
<waitForPageLoad time="30" stepKey="waitForShoppingCartPagePageLoad3"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToShoppingCartPage3"/>
<seeInField userInput="20" selector="{{CheckoutCartProductSection.ProductQuantityByName($$createSimpleProduct.name$$)}}" stepKey="seeInQtyField20_3"/>
<grabTextFrom selector="{{CheckoutCartProductSection.productSubtotalByName($$createSimpleProduct.name$$)}}" stepKey="grabTextFromSubtotalField6"/>
<assertEquals message="Shopping cart should contain subtotal $1,500" stepKey="assertSubtotalField6">
Expand Down Expand Up @@ -250,8 +247,7 @@
<waitForElementVisible selector="{{AdminProductFormSection.productPrice}}" stepKey="waitForAdminProductFormSectionProductPriceInput"/>
<fillField selector="{{AdminProductFormSection.productPrice}}" userInput="200" stepKey="fillProductPrice200"/>
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveButton"/>
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToShoppingCartPage4"/>
<waitForPageLoad time="30" stepKey="waitForShoppingCartPagePageLoad4"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToShoppingCartPage4"/>
<grabTextFrom selector="{{CheckoutCartProductSection.productSubtotalByName($$createSimpleProduct.name$$)}}" stepKey="grabTextFromSubtotalField7"/>
<assertEquals message="Shopping cart should contain subtotal $4,000" stepKey="assertSubtotalField7">
<expectedResult type="string">$4,000.00</expectedResult>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
</actionGroup>

<!-- Go to the cart page and verify we see the product -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="gotoCart"/>
<waitForPageLoad stepKey="waitForCartLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="gotoCart"/>
<actionGroup ref="AssertStorefrontCheckoutCartItemsActionGroup" stepKey="assertProductItemInCheckOutCart">
<argument name="productName" value="$$createProduct.name$$"/>
<argument name="productSku" value="$$createProduct.sku$$"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<selectOption userInput="$$createConfigProductAttributeOption1.option[store_labels][1][label]$$" selector="{{StorefrontProductInfoMainSection.optionByAttributeId($$createConfigProductAttribute.attribute_id$$)}}" stepKey="configProductFillOption" />
<click stepKey="addSimpleProductToCart" selector="{{StorefrontProductActionSection.addToCart}}"/>
<waitForElementVisible selector="{{StorefrontCategoryMainSection.SuccessMsg}}" time="30" stepKey="waitForProductAdded"/>
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToShoppingCartPage"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToShoppingCartPage"/>
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/>
<waitForElement selector="{{CheckoutShippingMethodsSection.next}}" time="30" stepKey="waitForNextButton"/>
<click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
<!-- Add the product to cart and check that the price is correct there -->
<click stepKey="addToCart" selector="{{StorefrontProductActionSection.addToCart}}"/>
<waitForPageLoad stepKey="waitForAddedToCart"/>
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToCheckout"/>
<waitForPageLoad stepKey="waitForCart"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCheckout"/>
<see stepKey="seeNewPriceInCart" selector="{{CheckoutCartSummarySection.subtotal}}" userInput="$110.70"/>
</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">
<argument name="productName" value="$createProduct.name$"/>
</actionGroup>
<actionGroup ref="StorefrontOpenCartPageActionGroup" stepKey="openCartPage" />
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="openCartPage" />
<waitForElementVisible selector="{{CheckoutCartSummarySection.subtotal}}" stepKey="waitForSubtotalAppears"/>
<see selector="{{CheckoutCartSummarySection.subtotal}}" userInput="$createProduct.price$" stepKey="seeProductPriceOnCartPage"/>
</test>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="StorefrontOpenCartPageActionGroup">
<actionGroup name="StorefrontCartPageOpenActionGroup">
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="openCartPage" />
<waitForPageLoad stepKey="waitForPageLoaded" />
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
</actionGroup>

<!--Go to shopping cart-->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="amOnPageShoppingCart"/>

<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="amOnPageShoppingCart"/>
<!--Verify country options in checkout top destination section-->
<actionGroup ref="VerifyTopDestinationsCountryActionGroup" stepKey="verifyTopDestinationsCountry">
<argument name="country" value="Bahamas"/>
Expand All @@ -68,7 +67,7 @@
</actionGroup>

<!--Go to shopping cart-->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="amOnPageShoppingCart2"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="amOnPageShoppingCart2"/>

<!--Verify country options is shown by default-->
<actionGroup ref="VerifyTopDestinationsCountryActionGroup" stepKey="verifyTopDestinationsCountry2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
</actionGroup>

<!-- Remove product from cart -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToCart"/>
<waitForPageLoad stepKey="waitForCartPageLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCart"/>
<actionGroup ref="DeleteProductFromShoppingCartActionGroup" stepKey="deleteProduct">
<argument name="productName" value="$$createBundleDynamicProduct.name$$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
</actionGroup>

<!-- Remove product from cart -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToCart"/>
<waitForPageLoad stepKey="waitForCartPageLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCart"/>
<actionGroup ref="DeleteProductFromShoppingCartActionGroup" stepKey="deleteProduct">
<argument name="productName" value="$$createFixedBundleProduct.name$$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@
</actionGroup>

<!-- Remove product from cart -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToCart"/>
<waitForPageLoad stepKey="waitForCartPageLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCart"/>
<actionGroup ref="DeleteProductFromShoppingCartActionGroup" stepKey="deleteProduct">
<argument name="productName" value="$$createConfigProduct.name$$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
</actionGroup>

<!-- Remove product from cart -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToCart"/>
<waitForPageLoad stepKey="waitForCartPageLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCart"/>
<actionGroup ref="DeleteProductFromShoppingCartActionGroup" stepKey="deleteProduct">
<argument name="productName" value="$$createDownloadableProduct.name$$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
</actionGroup>

<!-- Remove products from cart -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToCart"/>
<waitForPageLoad stepKey="waitForCartPageLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCart"/>
<click selector="{{CheckoutCartProductSection.removeProductByName($$createFirstSimpleProduct.name$$)}}" stepKey="deleteFirstProductFromCheckoutCart"/>
<click selector="{{CheckoutCartProductSection.removeProductByName($$createSecondSimpleProduct.name$$)}}" stepKey="deleteSecondProductFromCheckoutCart"/>
<click selector="{{CheckoutCartProductSection.removeProductByName($$createThirdSimpleProduct.name$$)}}" stepKey="deleteThirdProductFromCheckoutCart"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
</actionGroup>

<!-- Remove product from cart -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToCart"/>
<waitForPageLoad stepKey="waitForCartPageLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCart"/>
<actionGroup ref="DeleteProductFromShoppingCartActionGroup" stepKey="deleteProduct">
<argument name="productName" value="$$createVirtualProduct.name$$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@
<argument name="Customer" value="$$createFirstCustomer$$"/>
</actionGroup>

<amOnPage url="{{CheckoutCartPage.url}}" stepKey="amOnPageShoppingCart"/>
<waitForPageLoad stepKey="waitForCheckoutPageLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="amOnPageShoppingCart"/>

<!-- Assert first products present in shopping cart -->
<actionGroup ref="StorefrontCheckCartSimpleProductActionGroup" stepKey="checkFirstProductInCart">
Expand Down Expand Up @@ -155,8 +154,7 @@
</actionGroup>

<!-- Assert first products present in shopping cart -->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="amOnShoppingCartPage"/>
<waitForPageLoad stepKey="waitForShoppingCartPageLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="amOnShoppingCartPage"/>
<actionGroup ref="StorefrontCheckCartSimpleProductActionGroup" stepKey="checkProductInCart">
<argument name="product" value="$$createSimpleProduct$$"/>
<argument name="productQuantity" value="quoteQty2Price123.qty"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart1"/>
<waitForPageLoad stepKey="waitForpageLoad1"/>
<dontSee selector="{{CheckoutShippingMethodsSection.shippingMethodRowByName('Free')}}" stepKey="dontSeeFreeShipping"/>
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToShoppingCartPage"/>
<waitForPageLoad stepKey="waitForShoppingCartPage"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToShoppingCartPage"/>
<conditionalClick selector="{{DiscountSection.DiscountTab}}" dependentSelector="{{DiscountSection.CouponInput}}" visible="false" stepKey="clickIfDiscountTabClosed1"/>
<waitForPageLoad stepKey="waitForCouponTabOpen1"/>
<click selector="{{DiscountSection.CancelCoupon}}" stepKey="cancelCoupon"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<deleteData createDataKey="simpleProduct20" stepKey="deleteCartItem20"/>
<deleteData createDataKey="simpleProduct21" stepKey="deleteCartItem21"/>
</after>
<actionGroup ref="StorefrontOpenCartPageActionGroup" stepKey="goToCartPage" />
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCartPage" />
<actionGroup ref="AssertToolbarTextIsVisibleInCartActionGroup" stepKey="VerifyPagerText">
<argument name="text" value="Items 1 to 20 of 21 total"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</actionGroup>
<closeTab stepKey="closeTab"/>
<!-- Go to cart page-->
<actionGroup ref="StorefrontOpenCartPageActionGroup" stepKey="openCartPage"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="openCartPage"/>
<!-- Assert checkout button exists on the page-->
<seeElement selector="{{CheckoutCartSummarySection.proceedToCheckout}}" stepKey="seeCheckoutButton"/>
<!-- Assert no error message is not shown on the page-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<deleteData createDataKey="simpleProduct20" stepKey="deleteCartItem20"/>
</after>
<!-- Go to the shopping cart and check if the pager is missing-->
<actionGroup ref="StorefrontOpenCartPageActionGroup" stepKey="goToCartPage" />
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCartPage" />
<actionGroup ref="AssertPagerTextIsNotVisibleActionGroup" stepKey="VerifyMissingPagerText" >
<argument name="text" value="Items 1 to 20"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@
<seeInCurrentUrl url="{{CheckoutPage.url}}/#payment" stepKey="assertCheckoutPaymentUrl"/>

<!--Go to cart page, update qty and proceed to checkout-->
<amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToCartPage"/>
<waitForPageLoad stepKey="waitForCartPageLoad"/>
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCartPage"/>
<see userInput="Shopping Cart" stepKey="seeCartPageIsOpened"/>
<fillField selector="{{CheckoutCartProductSection.qty($$createProduct.name$$)}}" userInput="2" stepKey="updateProductQty"/>
<click selector="{{CheckoutCartProductSection.updateShoppingCartButton}}" stepKey="clickUpdateShoppingCart"/>
Expand Down
Loading

0 comments on commit c21be03

Please sign in to comment.