|
19 | 19 | <before>
|
20 | 20 | <createData entity="Simple_US_Customer" stepKey="createCustomer"/>
|
21 | 21 | <createData entity="SimpleProduct" stepKey="simpleProduct"/>
|
| 22 | + <actionGroup ref="CliIndexerReindexActionGroup" stepKey="runIndexCronJobs1"> |
| 23 | + <argument name="indices" value=""/> |
| 24 | + </actionGroup> |
| 25 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache1"> |
| 26 | + <argument name="tags" value="config full_page"/> |
| 27 | + </actionGroup> |
| 28 | + <!-- Verify Product On Storefront Page --> |
| 29 | + <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="goToProductOnStorefront"> |
| 30 | + <argument name="product" value="$$simpleProduct$$"/> |
| 31 | + </actionGroup> |
22 | 32 | <magentoCLI command="config:set paypal/general/merchant_country US" stepKey="setMerchantCountry"/>
|
23 | 33 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
24 | 34 | </before>
|
|
31 | 41 | </after>
|
32 | 42 | <amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/>
|
33 | 43 | <waitForPageLoad stepKey="waitForConfigPageLoad"/>
|
| 44 | + <!--Assert Section Available in Other Paypal Payment Solution Link--> |
34 | 45 | <conditionalClick selector="{{OtherPayPalPaymentsConfigSection.expandTab1('us')}}" dependentSelector="{{OtherPayPalPaymentsConfigSection.expandedTab('us')}}" visible="false" stepKey="clickOtherPayPalPaymentsSection"/>
|
35 | 46 | <conditionalClick selector="{{PayPalPaymentsProConfigSection.paypalAllInOnePaymentSolutions('us')}}" dependentSelector="{{PayPalPaymentsProConfigSection.paypalAllInOnePaymentSolutions('us')}}" visible="true" stepKey="clickPayPalPaymentsSection"/>
|
36 |
| - <waitForElementNotVisible selector="{{PayPalPaymentsProConfigSection.closeButton('us')}}" stepKey="assertPayLink"/> |
| 47 | + <waitForElementNotVisible selector="{{PayPalPaymentsProConfigSection.closeButton('us')}}" stepKey="assertPaymentsProConfigBtn"/> |
| 48 | + <actionGroup ref="AdminAssertOtherPaypalPaymentSolutionActionGroup" stepKey="AssertOtherPaypalPaymentSolutionLink"/> |
37 | 49 | <actionGroup ref="AdminAssetForPayallInOneActionGroup" stepKey="AssertPayAllInOneLink"/>
|
38 | 50 | <!--Clear paypal details config related data-->
|
39 | 51 | <actionGroup ref="AdminClearPaymentsProActionGroup" stepKey="clearExistingDataForPaymentsPro"/>
|
|
47 | 59 | <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
|
48 | 60 | <argument name="tags" value="config full_page"/>
|
49 | 61 | </actionGroup>
|
| 62 | + <waitForElementNotVisible selector="{{PayPalPaymentsProConfigSection.closeButton('us')}}" stepKey="assertConfigureBtnNotVisible"/> |
50 | 63 | <!--Login to storefront as guest customer-->
|
51 | 64 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStoreFront"/>
|
52 | 65 | <waitForPageLoad stepKey="waitForProductPage"/>
|
53 | 66 | <!--Add simple product-->
|
54 | 67 | <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addSimpleProductToCart">
|
55 | 68 | <argument name="product" value="$simpleProduct$"/>
|
56 | 69 | </actionGroup>
|
57 |
| - <!--Go to cart page--> |
58 |
| - <actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="gotoCart"/> |
59 | 70 | <!--Open cart page and proceed to checkout-->
|
60 | 71 | <actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCheckoutCartPage"/>
|
61 | 72 | <actionGroup ref="StorefrontClickProceedToCheckoutActionGroup" stepKey="clickProceedToCheckout"/>
|
|
88 | 99 | <waitForElementVisible selector="{{PayPalPaymentsProConfigSection.sortOrder('us')}}" stepKey="assertSortOrderFieldIsDisappeared"/>
|
89 | 100 | <seeOptionIsSelected selector="{{PayPalPaymentsProConfigSection.enableVault('us')}}" userInput="Yes" stepKey="seeValultIsSetAsNo"/>
|
90 | 101 | <actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveConfiguration"/>
|
| 102 | + <waitForElementVisible selector="{{PayPalPaymentsProConfigSection.configureBtn('us')}}" stepKey="assertConfigureVisible"/> |
91 | 103 | <actionGroup ref="StorefrontNavigateToGuestCheckoutReviewAndPaymentsPageActionGroup" stepKey="goToStoreFrontCheckoutPageToAssertPaypalPaymentMethodIsDisappeared"/>
|
92 | 104 | <dontSee selector="{{StorefrontCheckoutPaymentMethodSection.checkPaymentMethodByName('PayPal Express Checkout Payflow Edition')}}" stepKey="assertPayPalPaymentIsAbsent"/>
|
93 | 105 | <!--Set Paypal Credit to No and assert the status-->
|
94 | 106 | <magentoCLI command="config:set payment/paypal_payment_pro/active 1" stepKey="enablePaymentsPro"/>
|
95 | 107 | <magentoCLI command="config:set payment/payflow_express_bml/active 0" stepKey="disablePayPalCreditPaymentMethod"/>
|
96 | 108 | <amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPageAfterEnablingPaypal"/>
|
97 | 109 | <waitForPageLoad stepKey="waitForPaymentMethodPageToLoadAfterEnabling"/>
|
| 110 | + <waitForElementNotVisible selector="{{PayPalPaymentsProConfigSection.closeButton('us')}}" stepKey="assertConfigeBtnNotVisible"/> |
98 | 111 | <waitForElementClickable selector="{{PayPalPaymentsProConfigSection.configureBtn('us')}}" stepKey="waitForClickPayPalConfigureBtnToAssertStatusAfterEnabling"/>
|
99 | 112 | <click selector="{{PayPalPaymentsProConfigSection.configureBtn('us')}}" stepKey="clickPayPalConfigureBtnToAssertStatusAfterEnabling"/>
|
100 | 113 | <waitForElementVisible selector="{{PayPalPaymentsProConfigSection.disabledEnableSolution('us')}}" stepKey="assertGreenTickMarkForEnableThisSolutionDropdown"/>
|
|
0 commit comments