|
11 | 11 | <test name="AdminTurnOffVenmoButtonTest">
|
12 | 12 | <annotations>
|
13 | 13 | <features value="Paypal"/>
|
14 |
| - <stories value="Button Configuration"/> |
15 | 14 | <title value="Check that Admin can turn off Venmo button"/>
|
16 | 15 | <description value="Venmo button can be turned off by Admin"/>
|
17 | 16 | <severity value="AVERAGE"/>
|
|
20 | 19 | </annotations>
|
21 | 20 | <before>
|
22 | 21 | <actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
|
23 |
| - |
24 |
| - <!-- Create Product --> |
25 |
| - <createData entity="_defaultCategory" stepKey="createCategory"/> |
26 |
| - <createData entity="_defaultProduct" stepKey="createProduct"> |
27 |
| - <requiredEntity createDataKey="createCategory"/> |
28 |
| - </createData> |
29 |
| - |
30 |
| - |
31 | 22 | </before>
|
32 | 23 | <after>
|
33 | 24 |
|
34 | 25 | <!-- Cleanup Paypal configurations -->
|
35 | 26 |
|
36 |
| - <!-- Delete Product --> |
37 |
| - <deleteData stepKey="deleteCategory" createDataKey="createCategory"/> |
38 |
| - <deleteData stepKey="deleteProduct" createDataKey="createProduct"/> |
39 |
| - |
40 | 27 | <!-- Log out Admin -->
|
41 | 28 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
|
42 | 29 | </after>
|
| 30 | + |
43 | 31 | <amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage1"/>
|
44 | 32 | <actionGroup ref="AdminOpenPayPalAdvancedFrontendExperienceFeaturesPageActionGroup" stepKey= "openFeaturesPage1"/>
|
45 |
| - <actionGroup ref="AdminSelectDisableFundingActionGroup" stepKey= "selectVenmo"/> |
| 33 | + <see selector="{{PayPalAdvancedFrontendExperienceFeaturesSection.disableFundingOptionsMultiselect('us')}}" userInput="Venmo" stepKey="seeVenmo"/> |
| 34 | + <actionGroup ref="AdminSelectDisableFundingActionGroup" stepKey="selectVenmo"/> |
46 | 35 | <click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfig1"/>
|
| 36 | + <waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessage"/> |
47 | 37 | <magentoCLI command="cache:flush" stepKey="cleanCache1"/>
|
48 | 38 |
|
49 |
| - <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPage1"> |
50 |
| - <argument name="productUrl" value="$createProduct.custom_attributes[url_key]$"/> |
51 |
| - </actionGroup> |
52 |
| - |
53 |
| - <actionGroup ref="StorefrontSwitchToPayPalButtonIframeActionGroup" stepKey="switchToIframe1"/> |
54 |
| - |
55 |
| - <dontSeeElement selector="{{StorefrontPayPalSmartButtonVenmoSection.venmoButton}}" stepKey="dontSeeVenmoButton"/> |
56 |
| - |
57 |
| - |
58 | 39 |
|
59 | 40 | <amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage2"/>
|
60 |
| - <actionGroup ref="AdminOpenPayPalAdvancedFrontendExperienceFeaturesPageActionGroup" stepKey= "openFeaturesPage2"/> |
61 |
| - <actionGroup ref="AdminUnselectDisableFundingActionGroup" stepKey= "unselectVenmo"/> |
| 41 | + <actionGroup ref="AdminOpenPayPalAdvancedFrontendExperienceFeaturesPageActionGroup" stepKey="openFeaturesPage2"/> |
| 42 | + <see selector="{{PayPalAdvancedFrontendExperienceFeaturesSection.disableFundingOptionsMultiselect('us')}}" userInput="Venmo" stepKey="seeVenmo2"/> |
| 43 | + <seeOptionIsSelected selector="{{PayPalAdvancedFrontendExperienceFeaturesSection.disableFundingOptionsMultiselect('us')}}" userInput="Venmo" stepKey="seeVenmoIsSelected"/> |
| 44 | + |
| 45 | + <actionGroup ref="AdminUnselectDisableFundingActionGroup" stepKey="unselectVenmo"/> |
62 | 46 | <click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfig2"/>
|
| 47 | + <waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessage2"/> |
63 | 48 | <magentoCLI command="cache:flush" stepKey="cleanCache2"/>
|
64 | 49 |
|
65 |
| - |
66 |
| - <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPage2"> |
67 |
| - <argument name="productUrl" value="$createProduct.custom_attributes[url_key]$"/> |
68 |
| - </actionGroup> |
69 |
| - |
70 |
| - <actionGroup ref="StorefrontSwitchToPayPalButtonIframeActionGroup" stepKey="switchToIframe2"/> |
71 |
| - |
72 |
| - <seeElement selector="{{StorefrontPayPalSmartButtonVenmoSection.venmoButton}}" stepKey="seeVenmoButton"/> |
73 |
| - |
74 |
| - |
75 |
| -<!-- <seeOptionIsSelected selector="{{ButtonCustomization.customizeDrpDown}}" userInput="No" stepKey="seeNoIsDefaultValue"/> |
76 |
| - <selectOption selector="{{ButtonCustomization.customizeDrpDown}}" userInput="Yes" stepKey="enableButtonCustomization"/> |
77 |
| - <pause stepKey="pause"/> |
78 |
| -
|
79 |
| ---> |
80 | 50 | </test>
|
81 | 51 | </tests>
|
0 commit comments