|
45 | 45 | <argument name="term" value="newHtmlAutomaticallyTerm"/>
|
46 | 46 | </actionGroup>
|
47 | 47 | <actionGroup ref="AdminTermsConditionsSaveTermActionGroup" stepKey="saveAutomaticTerm"/>
|
| 48 | + <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
| 49 | + <argument name="indices" value=""/> |
| 50 | + </actionGroup> |
| 51 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache"> |
| 52 | + <argument name="tags" value="config full_page"/> |
| 53 | + </actionGroup> |
48 | 54 | <!-- Login as customer -->
|
49 | 55 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="storefrontCustomerLogin">
|
50 | 56 | <argument name="Customer" value="$$createCustomer$$"/>
|
|
60 | 66 | <waitForElementClickable selector="{{CheckoutPaymentSection.PayPalPaymentRadio}}" stepKey="waitForPayPalRadioButton"/>
|
61 | 67 | <click selector="{{CheckoutPaymentSection.PayPalPaymentRadio}}" stepKey="selectPaypalPayment"/>
|
62 | 68 | <!-- Verify both manual and automatic are present -->
|
63 |
| - <waitForText selector="{{CheckoutPaymentSection.brainTreeManualCheckoutAgreementLink}}" userInput="{{newHtmlTerm.checkboxText}}" stepKey="seeManualTermTextInCheckoutIsPresent"/> |
64 |
| - <waitForText selector="{{CheckoutPaymentSection.brainTreeAutomaticCheckoutAgreementLink}}" userInput="{{newHtmlAutomaticallyTerm.checkboxText}}" stepKey="seeAutomaticTermTextInCheckoutIsPresent"/> |
| 69 | + <waitForText selector="{{StorefrontCheckoutAgreementsSection.manualCheckoutAgreementLink('agreement_paypal_express')}}" userInput="{{newHtmlTerm.checkboxText}}" stepKey="seeManualTermTextInCheckoutIsPresent"/> |
| 70 | + <waitForText selector="{{StorefrontCheckoutAgreementsSection.automaticCheckoutAgreementLink('agreement_paypal_express')}}" userInput="{{newHtmlAutomaticallyTerm.checkboxText}}" stepKey="seeAutomaticTermTextInCheckoutIsPresent"/> |
65 | 71 | <!-- open manual terms and conditions and verify content messages-->
|
66 |
| - <waitForElementClickable selector="{{CheckoutPaymentSection.brainTreeManualCheckoutAgreementLink}}" stepKey="waitForManualTermTextInCheckoutIsClickable"/> |
67 |
| - <click selector="{{CheckoutPaymentSection.brainTreeManualCheckoutAgreementLink}}" stepKey="clickManualTermTextInCheckout"/> |
| 72 | + <waitForElementClickable selector="{{StorefrontCheckoutAgreementsSection.manualCheckoutAgreementLink('agreement_paypal_express')}}" stepKey="waitForManualTermTextInCheckoutIsClickable"/> |
| 73 | + <click selector="{{StorefrontCheckoutAgreementsSection.manualCheckoutAgreementLink('agreement_paypal_express')}}" stepKey="clickManualTermTextInCheckout"/> |
68 | 74 | <waitForElement selector="{{StorefrontCheckoutAgreementsSection.contentArea(newHtmlTerm.content)}}" stepKey="verifyManualTermContentTextMessage"/>
|
69 |
| - <waitForElementClickable selector="{{StorefrontCheckoutAgreementsSection.close}}" stepKey="waitForCloseToBeClickable"/> |
70 |
| - <click selector="{{StorefrontCheckoutAgreementsSection.close}}" stepKey="ClickOnClose"/> |
71 |
| - <waitForElementClickable selector="{{CheckoutPaymentSection.brainTreeAutomaticCheckoutAgreementLink}}" stepKey="waitForAutomaticTermTextInCheckoutIsClickable"/> |
72 |
| - <click selector="{{CheckoutPaymentSection.brainTreeAutomaticCheckoutAgreementLink}}" stepKey="clickAutomaticTermTextInCheckoutIsClickable"/> |
| 75 | + <waitForElementClickable selector="{{StorefrontCheckoutAgreementsSection.agreementClose}}" stepKey="waitForCloseToBeClickable"/> |
| 76 | + <click selector="{{StorefrontCheckoutAgreementsSection.agreementClose}}" stepKey="ClickOnClose"/> |
| 77 | + <!-- open automatic terms and conditions and verify content messages--> |
| 78 | + <waitForElementClickable selector="{{StorefrontCheckoutAgreementsSection.automaticCheckoutAgreementLink('agreement_paypal_express')}}" stepKey="waitForAutomaticTermTextInCheckoutIsClickable"/> |
| 79 | + <click selector="{{StorefrontCheckoutAgreementsSection.automaticCheckoutAgreementLink('agreement_paypal_express')}}" stepKey="clickAutomaticTermTextInCheckoutIsClickable"/> |
73 | 80 | <waitForElement selector="{{StorefrontCheckoutAgreementsSection.contentArea(newHtmlAutomaticallyTerm.content)}}" stepKey="verifyAutomaticTermContentTextMessage"/>
|
74 | 81 | </test>
|
75 | 82 | </tests>
|
0 commit comments