Skip to content

Commit

Permalink
ENGCOM-8454: [MFTF] Add StorefrontCheckoutClickSaveAddressButtonActio…
Browse files Browse the repository at this point in the history
…nGroup #30528

 - Merge Pull Request #30528 from Usik2203/magento2:save-checkout-address
 - Merged commits:
   1. 8e463fe
   2. a54cc96
   3. 657420d
   4. d804a12
   5. fad49b8
   6. 8d8a4bf
   7. 170620e
   8. cc82610
  • Loading branch information
magento-engcom-team committed Nov 13, 2020
2 parents 252dd90 + cc82610 commit 521ef9c
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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="StorefrontCheckoutClickSaveAddressButtonActionGroup">
<annotations>
<description>Click Save Address button on checkout.</description>
</annotations>

<click selector="{{CheckoutShippingSection.saveAddress}}" stepKey="saveAddress"/>
<waitForPageLoad stepKey="waitForAddressSaved"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<argument name="classPrefix" value="._show"/>
</actionGroup>
<!--Click "Save Addresses" -->
<click selector="{{CheckoutShippingSection.saveAddress}}" stepKey="saveAddress"/>
<waitForPageLoad stepKey="waitForAddressSaved"/>
<actionGroup ref="StorefrontCheckoutClickSaveAddressButtonActionGroup" stepKey="saveAddress"/>
<comment userInput="Adding the comment to replace waitForAddressSaved action for preserving Backward Compatibility" stepKey="waitForAddressSaved"/>
<dontSeeElement selector="{{StorefrontCheckoutAddressPopupSection.newAddressModalPopup}}" stepKey="dontSeeModalPopup"/>
<!--Select Shipping Rate "Flat Rate" and click "Next" button-->
<actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShipping"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<actionGroup ref="FillShippingAddressOneStreetActionGroup" stepKey="changeAddress">
<argument name="address" value="UK_Not_Default_Address"/>
</actionGroup>
<click selector="{{CheckoutShippingSection.saveAddress}}" stepKey="saveNewAddress"/>
<actionGroup ref="StorefrontCheckoutClickSaveAddressButtonActionGroup" stepKey="saveNewAddress"/>

<!--Select Shipping Rate-->
<scrollTo selector="{{CheckoutShippingMethodsSection.next}}" stepKey="scrollToShippingRate"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@
<actionGroup ref="FillShippingAddressOneStreetActionGroup" stepKey="changeAddress">
<argument name="address" value="UK_Not_Default_Address"/>
</actionGroup>
<click selector="{{CheckoutShippingSection.saveAddress}}" stepKey="saveNewAddress"/>
<waitForPageLoad stepKey="waitForAddressSaving"/>

<actionGroup ref="StorefrontCheckoutClickSaveAddressButtonActionGroup" stepKey="saveNewAddress"/>
<comment userInput="Adding the comment to replace waitForAddressSaving action for preserving Backward Compatibility" stepKey="waitForAddressSaving"/>
<!-- Click next button to open payment section -->
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
</actionGroup>

<!--Click "Save Addresses" -->
<click selector="{{CheckoutShippingSection.saveAddress}}" stepKey="saveAddress"/>
<waitForPageLoad stepKey="waitForAddressSaved"/>
<actionGroup ref="StorefrontCheckoutClickSaveAddressButtonActionGroup" stepKey="saveAddress"/>
<comment userInput="Adding the comment to replace waitForAddressSaved action for preserving Backward Compatibility" stepKey="waitForAddressSaved"/>
<dontSeeElement selector="{{StorefrontCheckoutAddressPopupSection.newAddressModalPopup}}" stepKey="dontSeeModalPopup"/>

<!--Select Shipping Rate "Flat Rate"-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@
<argument name="Address" value="US_Address_CA"/>
<argument name="classPrefix" value="._show"/>
</actionGroup>
<click stepKey="saveAddress" selector="{{CheckoutShippingSection.saveAddress}}"/>

<waitForPageLoad stepKey="waitForAddressSaved"/>
<actionGroup ref="StorefrontCheckoutClickSaveAddressButtonActionGroup" stepKey="saveAddress"/>
<comment userInput="Adding the comment to replace waitForAddressSaved action for preserving Backward Compatibility" stepKey="waitForAddressSaved"/>
<see stepKey="seeAddress2" selector="{{CheckoutShippingSection.selectedShippingAddress}}" userInput="{{SimpleTaxCA.state}}"/>
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext2"/>

Expand Down

0 comments on commit 521ef9c

Please sign in to comment.