|
19 | 19 | <click selector="{{MultishippingSection.checkoutWithMultipleAddresses}}" stepKey="proceedMultishipping"/> |
20 | 20 |
|
21 | 21 | <!--Procees do overview page--> |
| 22 | + <waitForElementClickable selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.goToShippingInformation}}" stepKey="waitForGoToShipping" /> |
22 | 23 | <click selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.goToShippingInformation}}" stepKey="clickGoToShippingInformation"/> |
23 | 24 | <waitForPageLoad stepKey="waitForCheckoutAddressToolbarPageLoad"/> |
| 25 | + <waitForElementClickable selector="{{StorefrontMultishippingCheckoutShippingToolbarSection.continueToBilling}}" stepKey="waitForContinueToBilling" /> |
24 | 26 | <click selector="{{StorefrontMultishippingCheckoutShippingToolbarSection.continueToBilling}}" stepKey="clickContinueToBilling"/> |
25 | 27 | <waitForPageLoad stepKey="waitForCheckoutShippingToolbarPageLoad"/> |
| 28 | + <waitForElementClickable selector="{{StorefrontMultishippingCheckoutBillingToolbarSection.goToReviewOrder}}" stepKey="waitForGoToReviewOrder" /> |
26 | 29 | <click selector="{{StorefrontMultishippingCheckoutBillingToolbarSection.goToReviewOrder}}" stepKey="clickGoToReviewOrder"/> |
27 | 30 | <waitForPageLoad stepKey="waitForCheckoutBillingToolbarPageLoad"/> |
28 | 31 |
|
29 | 32 | <!--Check if agreement is present on checkout and select it--> |
| 33 | + <waitForElementVisible selector="{{StorefrontMultishippingCheckoutOverviewReviewSection.placeOrder}}" stepKey="waitForPlaceOrderButton" /> |
30 | 34 | <scrollTo selector="{{StorefrontMultishippingCheckoutOverviewReviewSection.placeOrder}}" stepKey="scrollToButtonPlaceOrder"/> |
| 35 | + <waitForElementVisible selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementButton}}" stepKey="waitForTermInCheckout"/> |
31 | 36 | <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementButton}}" userInput="{{termCheckboxText}}" stepKey="seeTermInCheckout"/> |
32 | 37 | <click selector="{{StorefrontMultishippingCheckoutOverviewReviewSection.placeOrder}}" stepKey="tryToPlaceOrder1"/> |
33 | | - <see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementErrorMessage}}" userInput="This is a required field." stepKey="seeErrorMessage"/> |
| 38 | + <waitForText selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementErrorMessage}}" userInput="This is a required field." stepKey="seeErrorMessage"/> |
34 | 39 | <selectOption selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox}}" userInput="{{termCheckboxText}}" stepKey="checkAgreement"/> |
| 40 | + <waitForElementClickable selector="{{StorefrontMultishippingCheckoutOverviewReviewSection.placeOrder}}" stepKey="waitForPlaceOrderClickable" /> |
35 | 41 | <click selector="{{StorefrontMultishippingCheckoutOverviewReviewSection.placeOrder}}" stepKey="tryToPlaceOrder2"/> |
36 | 42 | <dontSee selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementErrorMessage}}" userInput="This is a required field." stepKey="dontSeeErrorMessage"/> |
37 | 43 |
|
38 | 44 | <!--See success message--> |
39 | | - <see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="seeSuccessTitle"/> |
| 45 | + <waitForText selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="seeSuccessTitle"/> |
40 | 46 | </actionGroup> |
41 | 47 | </actionGroups> |
0 commit comments