|
15 | 15 | <description value="Paypal Pay Later Message should display on Admin Category Page configuration"/>
|
16 | 16 | <severity value="CRITICAL"/>
|
17 | 17 | <testCaseId value="AC-5639"/>
|
18 |
| - <group value="paypalStandard"/> |
| 18 | + |
19 | 19 | </annotations>
|
20 | 20 | <before>
|
21 | 21 | <createData entity="SimpleSubCategory" stepKey="simpleCategory"/>
|
22 | 22 | <createData entity="SimpleProduct" stepKey="simpleProduct">
|
23 | 23 | <requiredEntity createDataKey="simpleCategory"/>
|
24 | 24 | </createData>
|
25 |
| - <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
26 |
| - <actionGroup ref="AdminPayPalStandardEnableActionGroup" stepKey="ConfigPaymentsStandard"> |
| 25 | + |
| 26 | + <!-- Login --> |
| 27 | + <actionGroup ref="AdminLoginActionGroup" stepKey="login"/> |
| 28 | + <!--Config PayPal Standard--> |
| 29 | + <actionGroup ref="AdminPayPalStandardEnableActionGroup" stepKey="ConfigPayPalStandard"/> |
| 30 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanFullPageCache"> |
| 31 | + <argument name="tags" value="config full_page"/> |
27 | 32 | </actionGroup>
|
28 | 33 | </before>
|
29 | 34 | <after>
|
|
38 | 43 | <magentoCLI command="cache:flush" stepKey="cleanCache"/>
|
39 | 44 | <!--Navigate to Storefront-->
|
40 | 45 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStoreFront"/>
|
41 |
| - <waitForPageLoad stepKey="waitForProductPage"/> |
42 |
| - <waitForElementClickable selector="{{PayPalStandardConfigSection.categoryClick}}" stepKey="waitForCategryToClickable"/> |
43 |
| - <click selector ="{{PayPalStandardConfigSection.categoryClick}}" stepKey="clickCatagoryeButton"/> |
44 |
| - <waitForPageLoad stepKey="waitForCategrypageTobeLoaded"/> |
45 |
| - <waitForElementVisible selector="{{PayPalStandardConfigSection.payPaliFrame}}" stepKey="waitForElement"/> |
46 |
| - <switchToIFrame selector="{{PayPalStandardConfigSection.payPaliFrame}}" stepKey="switchToBuyNowPaylaterIFrame"/> |
47 |
| - <seeElement selector="{{PayPalStandardConfigSection.paypalPaylaterMessage}}" stepKey="verifyBuyNowPaylaterMessage"/> |
48 |
| - <switchToIFrame stepKey="switchBackToMainPaypalFrame"/> |
| 46 | + <actionGroup ref="ValidatePaylaterInStorefrontActionGroup" stepKey="verifyPaylaterInStorefrontCategoryPage"/> |
49 | 47 | <!--Disable Paypal Standard-->
|
50 |
| - <actionGroup ref="AdminPayPalStandardDisableActionGroup" stepKey="disablePaypalStandard"> |
51 |
| - </actionGroup> |
| 48 | + <magentoCLI command="config:set {{DisablePaypalPayStandard.path}} {{DisablePaypalPayStandard.value}}" stepKey="disablePayPalStandard"/> |
52 | 49 | <!-- Reindex and cache flush -->
|
53 | 50 | <magentoCLI command="indexer:reindex" stepKey="performReIndex"/>
|
54 | 51 | <magentoCLI command="cache:flush" stepKey="flushCache"/>
|
|
0 commit comments