|
22 | 22 | <actionGroup ref="AdminLoginActionGroup" stepKey="login"/> |
23 | 23 | </before> |
24 | 24 | <after> |
25 | | - |
26 | | - <!-- Cleanup Paypal configurations --> |
27 | | - |
28 | 25 | <!-- Log out Admin --> |
29 | 26 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> |
30 | 27 | </after> |
31 | 28 |
|
| 29 | + <!-- Open PayPal Advanced->Frontend Experience->Features configuration --> |
32 | 30 | <amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage1"/> |
33 | 31 | <actionGroup ref="AdminOpenPayPalAdvancedFrontendExperienceFeaturesPageActionGroup" stepKey= "openFeaturesPage1"/> |
34 | | - <see selector="{{PayPalAdvancedFrontendExperienceFeaturesSection.disableFundingOptionsMultiselect('us')}}" userInput="Venmo" stepKey="seeVenmo"/> |
35 | | - <actionGroup ref="AdminSelectDisableFundingActionGroup" stepKey="selectVenmo"/> |
| 32 | + <!-- Venmo option is present in Disable Funding Options multiselect --> |
| 33 | + <see selector="{{PayPalAdvancedFrontendExperienceFeaturesSection.disableFundingOptionsMultiselect('us')}}" userInput="Venmo" stepKey="seeVenmoOption"/> |
| 34 | + <!-- Select Venmo option in Disable Funding Options multiselect and save config --> |
| 35 | + <actionGroup ref="AdminSelectDisableFundingActionGroup" stepKey="selectVenmoOption"/> |
36 | 36 | <click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfig1"/> |
37 | 37 | <waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessage"/> |
38 | | - <magentoCLI command="cache:flush" stepKey="cleanCache1"/> |
39 | | - |
40 | 38 |
|
| 39 | + <!-- Open PayPal Advanced->Frontend Experience->Features configuration page again --> |
41 | 40 | <amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage2"/> |
42 | 41 | <actionGroup ref="AdminOpenPayPalAdvancedFrontendExperienceFeaturesPageActionGroup" stepKey="openFeaturesPage2"/> |
43 | | - <see selector="{{PayPalAdvancedFrontendExperienceFeaturesSection.disableFundingOptionsMultiselect('us')}}" userInput="Venmo" stepKey="seeVenmo2"/> |
| 42 | + <!-- Check Venmo option is selected --> |
44 | 43 | <seeOptionIsSelected selector="{{PayPalAdvancedFrontendExperienceFeaturesSection.disableFundingOptionsMultiselect('us')}}" userInput="Venmo" stepKey="seeVenmoIsSelected"/> |
45 | | - |
46 | | - <actionGroup ref="AdminUnselectDisableFundingActionGroup" stepKey="unselectVenmo"/> |
| 44 | + <!-- Unselect Venmo option in Disable Funding Options multiselect and save config --> |
| 45 | + <actionGroup ref="AdminUnselectDisableFundingActionGroup" stepKey="unselectVenmoOption"/> |
47 | 46 | <click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfig2"/> |
48 | 47 | <waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessage2"/> |
49 | | - <magentoCLI command="cache:flush" stepKey="cleanCache2"/> |
50 | 48 |
|
51 | 49 | </test> |
52 | 50 | </tests> |
0 commit comments