|
7 | 7 | -->
|
8 | 8 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
9 | 9 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
10 |
| - <test name="AdminPayPalExpressCheckoutTest"> |
| 10 | + <test name="AdminCancelPaypalExpressCheckoutTest"> |
11 | 11 | <annotations>
|
12 | 12 | <features value="PayPal"/>
|
13 |
| - <stories value="Paypal express checkout configuration"/> |
| 13 | + <stories value="Paypal express checkout configuration with credentials"/> |
14 | 14 | <title value="Paypal Express Checkout configuration with valid credentials"/>
|
15 |
| - <description value="Place an order using paypal express checkout as payment method"/> |
| 15 | + <description value="Cancel an order with paypal express checkout as payment method"/> |
16 | 16 | <severity value="CRITICAL"/>
|
17 |
| - <testCaseId value="AC-6149"/> |
| 17 | + <testCaseId value="AC-6116"/> |
18 | 18 | </annotations>
|
19 | 19 | <before>
|
20 | 20 | <!-- Simple product is created and assigned to category -->
|
21 |
| - <createData entity="_defaultCategory" stepKey="createCategory"/> |
22 | 21 | <createData entity="SimpleProduct" stepKey="createProduct">
|
23 | 22 | <requiredEntity createDataKey="createCategory"/>
|
24 | 23 | <field key="price">10.00</field>
|
|
32 | 31 | </actionGroup>
|
33 | 32 | </before>
|
34 | 33 | <after>
|
35 |
| - <actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="navigateToSalesOrderPage"/> |
36 | 34 | <magentoCLI command="config:set payment/paypal_express/active 0" stepKey="disablePayPalExpress"/>
|
37 | 35 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
|
38 | 36 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
|
39 |
| - <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
40 | 37 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
41 | 38 | </after>
|
42 |
| - <!-- Login to StoreFront --> |
| 39 | + <!-- Go to Storefront --> |
43 | 40 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStoreFront"/>
|
44 | 41 | <!-- Add product to cart -->
|
45 | 42 | <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCart">
|
|
64 | 61 | <!-- Login to Paypal in-context and verify order total on paypal page-->
|
65 | 62 | <actionGroup ref="StorefrontLoginToPayPalPaymentAccountTwoStepActionGroup" stepKey="loginToPayPal"/>
|
66 | 63 | <actionGroup ref="StorefrontPaypalSwitchBackToMagentoFromCheckoutPageActionGroup" stepKey="confirmPaymentAndGoBackToMagento"/>
|
| 64 | + <!-- I see order successful Page --> |
67 | 65 | <waitForElementVisible selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="waitForOrderNumberToBeGrabbed"/>
|
68 | 66 | <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/>
|
69 | 67 | <waitForText selector="{{CheckoutSuccessMainSection.success}}" userInput="We'll email you an order confirmation with details and tracking info." stepKey="seeSuccessMessage"/>
|
70 | 68 | <actionGroup ref="OpenOrderByIdActionGroup" stepKey="openOrder">
|
71 | 69 | <argument name="orderId" value="{$grabOrderNumber}"/>
|
72 | 70 | </actionGroup>
|
73 | 71 | <waitForElementVisible selector="{{AdminOrderPaymentInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="waitForTransactionIDFieldToBeAppeared"/>
|
74 |
| - <grabTextFrom selector="{{AdminOrderPaymentInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="grabATransactionID"/> |
| 72 | + <grabTextFrom selector="{{AdminOrderPaymentInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="grabTransactionID"/> |
75 | 73 | <waitForText selector="{{AdminOrderTotalSection.grandTotal}}" userInput="$15.00" stepKey="checkGrandTotal"/>
|
76 | 74 | <actionGroup ref="AdminOpenOrderCommentsHistoryActionGroup" stepKey="clickOnCommentsHistory"/>
|
77 |
| - <waitForText selector="{{AdminOrderCommentsTabSection.orderComment}}" userInput="Authorized amount of $15.00. Transaction ID: "{$grabATransactionID}"" stepKey="seeOrderHistoryNotes"/> |
| 75 | + <waitForText selector="{{AdminOrderCommentsTabSection.orderComment}}" userInput="Authorized amount of $15.00. Transaction ID: "{$grabTransactionID}"" stepKey="seeOrderHistoryNotes"/> |
78 | 76 | </test>
|
79 | 77 | </tests>
|
0 commit comments