Skip to content

Commit

Permalink
ENGCOM-8122: [MFTF] use ActionGroup for navigation to checkout page #…
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldagama committed Sep 3, 2020
2 parents f1b2172 + 51898ad commit 0b14512
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/>
<click selector="{{CheckoutShippingGuestInfoSection.firstShippingMethod}}" stepKey="selectFirstShippingMethod"/>
<!-- Check that have the same values after page reload -->
<amOnPage url="{{CheckoutPage.url}}" stepKey="amOnCheckoutShippingInfoPage"/>
<waitForPageLoad stepKey="waitForShippingPageReload"/>
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="amOnCheckoutShippingInfoPage"/>
<seeInField selector="{{CheckoutShippingGuestInfoSection.email}}" userInput="{{CustomerEntityOne.email}}" stepKey="seeEmailOnCheckout" />
<seeInField selector="{{CheckoutShippingGuestInfoSection.firstName}}" userInput="{{CustomerEntityOne.firstName}}" stepKey="seeFirstnameOnCheckout" />
<seeInField selector="{{CheckoutShippingGuestInfoSection.lastName}}" userInput="{{CustomerEntityOne.lastName}}" stepKey="seeLastnameOnCheckout" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@
<see stepKey="seeSuccess" selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You added"/>

<!-- Fill in address for CA -->
<amOnPage url="{{CheckoutPage.url}}" stepKey="goToCheckout"/>
<waitForPageLoad stepKey="waitForShippingSection"/>
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckout"/>
<fillField selector="{{CheckoutShippingSection.email}}" userInput="{{Simple_US_Customer_CA.email}}" stepKey="enterEmail"/>
<waitForLoadingMaskToDisappear stepKey="waitEmailLoad"/>
<actionGroup ref="LoggedInCheckoutFillNewBillingAddressActionGroup" stepKey="changeAddress">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@
<see stepKey="seeSuccess" selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You added"/>

<!-- Assert that taxes are applied correctly for CA -->
<amOnPage url="{{CheckoutPage.url}}" stepKey="goToCheckout"/>
<waitForPageLoad stepKey="waitForShippingSection"/>
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckout"/>

<waitForElementVisible stepKey="waitForOverviewVisible" selector="{{CheckoutPaymentSection.tax}}"/>
<see stepKey="seeTax2" selector="{{CheckoutPaymentSection.tax}}" userInput="$8.25"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@
<see stepKey="seeSuccess" selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You added"/>

<!-- Assert that taxes are applied correctly for NY -->
<amOnPage url="{{CheckoutPage.url}}" stepKey="goToCheckout"/>
<waitForPageLoad stepKey="waitForShippingSection"/>
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckout"/>
<see stepKey="seeAddress" selector="{{CheckoutShippingSection.selectedShippingAddress}}" userInput="{{SimpleTaxNY.state}}"/>
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@
<see stepKey="seeSuccess" selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You added"/>

<!-- Assert that taxes are applied correctly for NY -->
<amOnPage url="{{CheckoutPage.url}}" stepKey="goToCheckout"/>
<waitForPageLoad stepKey="waitForShippingSection"/>
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckout"/>
<!-- Checkout select Check/Money Order payment -->
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyPayment"/>
<see stepKey="seeAddress" selector="{{CheckoutShippingSection.defaultShipping}}" userInput="{{SimpleTaxNY.state}}"/>
Expand Down

0 comments on commit 0b14512

Please sign in to comment.