|
15 | 15 | <description value="To be sure that other elements of Success page are shown for placed order as registered Customer."/>
|
16 | 16 | <severity value="CRITICAL"/>
|
17 | 17 | <testCaseId value="MC-16488"/>
|
18 |
| - <skip> |
19 |
| - <issueId value="MQE-2834" /> |
20 |
| - </skip> |
21 | 18 | <group value="checkout"/>
|
22 | 19 | <group value="pr_exclude"/>
|
23 | 20 | </annotations>
|
|
30 | 27 | </before>
|
31 | 28 |
|
32 | 29 | <after>
|
33 |
| - <!--Cancel orders--> |
| 30 | + <!-- Cancel orders --> |
34 | 31 | <actionGroup ref="AdminLoginActionGroup" stepKey="adminLogin"/>
|
35 | 32 | <actionGroup ref="AdminOrdersGridClearFiltersActionGroup" stepKey="goToOrdersPage"/>
|
36 | 33 | <actionGroup ref="AdminGridColumnShowActionGroup" stepKey="showCustomerEmailColumn">
|
|
46 | 43 | </actionGroup>
|
47 | 44 | <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
|
48 | 45 |
|
49 |
| - <!--Logout from customer account--> |
| 46 | + <!-- Logout from customer account --> |
50 | 47 | <amOnPage url="{{StorefrontCustomerLogoutPage.url}}" stepKey="logoutCustomerOne"/>
|
51 | 48 | <waitForPageLoad stepKey="waitLogoutCustomerOne"/>
|
52 | 49 | <deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/>
|
53 | 50 | <deleteData createDataKey="createSimpleUsCustomer" stepKey="deleteCustomer"/>
|
54 | 51 | </after>
|
55 | 52 |
|
56 |
| - <!--Log in to Storefront as Customer--> |
| 53 | + <!-- Log in to Storefront as Customer --> |
57 | 54 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="signUpNewUser">
|
58 | 55 | <argument name="Customer" value="$$createSimpleUsCustomer$$"/>
|
59 | 56 | </actionGroup>
|
60 | 57 |
|
61 |
| - <!--Go to product page--> |
| 58 | + <!-- Go to product page --> |
62 | 59 | <amOnPage url="$$createSimpleProduct.custom_attributes[url_key]$$.html" stepKey="navigateToSimpleProductPage"/>
|
63 | 60 | <waitForPageLoad stepKey="waitForCatalogPageLoad"/>
|
64 | 61 |
|
65 |
| - <!--Add Product to Shopping Cart--> |
| 62 | + <!-- Add Product to Shopping Cart --> |
66 | 63 | <actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">
|
67 | 64 | <argument name="productName" value="$$createSimpleProduct.name$$"/>
|
68 | 65 | </actionGroup>
|
69 | 66 |
|
70 |
| - <!--Go to Checkout--> |
| 67 | + <!-- Go to Checkout --> |
71 | 68 | <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/>
|
72 | 69 | <actionGroup ref="StorefrontSelectFirstShippingMethodActionGroup" stepKey="selectFirstShippingMethod"/>
|
73 | 70 | <comment userInput="Adding the comment to replace waitForLoadingMask2 action for preserving Backward Compatibility" stepKey="waitForLoadingMask2"/>
|
74 | 71 | <actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="clickNext"/>
|
75 | 72 | <!-- Checkout select Check/Money Order payment -->
|
76 | 73 | <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyPayment"/>
|
77 |
| - <!--Click Place Order button--> |
| 74 | + <!-- Click Place Order button --> |
78 | 75 | <actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickPlaceOrder"/>
|
79 | 76 | <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeSuccessTitle"/>
|
80 | 77 | <see selector="{{CheckoutSuccessMainSection.orderNumberText}}" userInput="Your order number is: " stepKey="seeOrderNumber"/>
|
|
83 | 80 | <click selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="clickOrderLink"/>
|
84 | 81 | <seeInCurrentUrl url="{{StorefrontCustomerOrderPage.url}}" stepKey="seeMyOrderPage"/>
|
85 | 82 |
|
86 |
| - <!--Go to product page--> |
| 83 | + <!-- Go to product page --> |
87 | 84 | <amOnPage url="$$createSimpleProduct.custom_attributes[url_key]$$.html" stepKey="navigateToSimpleProductPage2"/>
|
88 | 85 | <waitForPageLoad stepKey="waitForCatalogPageLoad2"/>
|
89 | 86 |
|
90 |
| - <!--Add Product to Shopping Cart--> |
| 87 | + <!-- Add Product to Shopping Cart --> |
91 | 88 | <actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage2">
|
92 | 89 | <argument name="productName" value="$$createSimpleProduct.name$$"/>
|
93 | 90 | </actionGroup>
|
94 | 91 |
|
95 |
| - <!--Go to Checkout--> |
| 92 | + <!-- Go to Checkout --> |
96 | 93 | <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart2"/>
|
97 | 94 | <actionGroup ref="StorefrontSelectFirstShippingMethodActionGroup" stepKey="selectFirstShippingMethod2"/>
|
98 | 95 | <comment userInput="Adding the comment to replace waitForLoadingMask3 action for preserving Backward Compatibility" stepKey="waitForLoadingMask3"/>
|
99 | 96 | <actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="clickNext2"/>
|
100 | 97 | <!-- Checkout select Check/Money Order payment -->
|
101 | 98 | <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyPayment2"/>
|
102 | 99 |
|
103 |
| - <!--Click Place Order button--> |
| 100 | + <!-- Click Place Order button --> |
104 | 101 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder2"/>
|
105 | 102 | <see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForLoadSuccessPage2"/>
|
106 | 103 | <click selector="{{CheckoutSuccessMainSection.continueShoppingButton}}" stepKey="clickContinueShoppingButton"/>
|
107 | 104 | <see userInput="Home Page" selector="{{StorefrontCMSPageSection.mainTitle}}" stepKey="seeHomePageTitle"/>
|
108 | 105 | <seeCurrentUrlEquals url="{{_ENV.MAGENTO_BASE_URL}}" stepKey="seeHomePageUrl"/>
|
109 | 106 |
|
110 |
| - <!--Go to product page--> |
| 107 | + <!-- Go to product page --> |
111 | 108 | <amOnPage url="$$createSimpleProduct.custom_attributes[url_key]$$.html" stepKey="navigateToSimpleProductPage3"/>
|
112 | 109 | <waitForPageLoad stepKey="waitForCatalogPageLoad3"/>
|
113 | 110 |
|
114 |
| - <!--Add Product to Shopping Cart--> |
| 111 | + <!-- Add Product to Shopping Cart --> |
115 | 112 | <actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage3">
|
116 | 113 | <argument name="productName" value="$$createSimpleProduct.name$$"/>
|
117 | 114 | </actionGroup>
|
118 | 115 |
|
119 |
| - <!--Go to Checkout--> |
| 116 | + <!-- Go to Checkout --> |
120 | 117 | <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart3"/>
|
121 | 118 | <actionGroup ref="StorefrontSelectFirstShippingMethodActionGroup" stepKey="selectFirstShippingMethod3"/>
|
122 | 119 | <comment userInput="Adding the comment to replace waitForLoadingMask4 action for preserving Backward Compatibility" stepKey="waitForLoadingMask4"/>
|
|
125 | 122 | <!-- Checkout select Check/Money Order payment -->
|
126 | 123 | <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyPayment3"/>
|
127 | 124 |
|
128 |
| - <!--Click Place Order button--> |
| 125 | + <!-- Click Place Order button --> |
129 | 126 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder3"/>
|
130 | 127 | <see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForLoadSuccessPage3"/>
|
131 | 128 |
|
132 |
| - <!--Check "Print Receipt" button is presented (desktop only)--> |
| 129 | + <!-- Check "Print Receipt" button is presented (desktop only) --> |
133 | 130 | <seeElement selector="{{CheckoutSuccessMainSection.printLink}}" stepKey="seeVisiblePrint"/>
|
134 | 131 | <resizeWindow width="600" height="800" stepKey="resizeWindow"/>
|
135 | 132 | <waitForElementNotVisible selector="{{CheckoutSuccessMainSection.printLink}}" stepKey="waitInvisiblePrint"/>
|
|
138 | 135 | <waitForElementVisible selector="{{CheckoutSuccessMainSection.printLink}}" stepKey="waitVisiblePrint"/>
|
139 | 136 | <seeElement selector="{{CheckoutSuccessMainSection.printLink}}" stepKey="seeVisiblePrint2"/>
|
140 | 137 |
|
141 |
| - <!--See print page--> |
| 138 | + <!-- See print page --> |
142 | 139 | <click selector="{{CheckoutSuccessMainSection.printLink}}" stepKey="clickPrintLink"/>
|
143 |
| - <switchToWindow stepKey="switchToWindow"/> |
144 |
| - <switchToNextTab stepKey="switchToTab"/> |
145 |
| - <seeInCurrentUrl url="sales/order/print/order_id" stepKey="seePrintPage"/> |
| 140 | + <helper class="Magento\Sales\Test\Mftf\Helper\SalesHelper" method="switchToWindowWithUrlAndClosePrintDialogIfEncountered" stepKey="switchToWindowWithUrlAndClosePrintDialogIfEncountered"> |
| 141 | + <argument name="expectedUrl">sales/order/print/order_id/</argument> |
| 142 | + <argument name="expectedUrlComparisonType">COMPARISON_PATH_SUBSET_MATCH</argument> |
| 143 | + </helper> |
| 144 | + |
| 145 | + <comment userInput="Step key preserved for backwards compatibility" stepKey="switchToWindow"/> |
| 146 | + <comment userInput="Step key preserved for backwards compatibility" stepKey="switchToTab"/> |
| 147 | + <comment userInput="Step key preserved for backwards compatibility" stepKey="seePrintPage"/> |
146 | 148 | <seeElement selector="{{StorefrontCustomerOrderViewSection.orderTitle}}" stepKey="seeOrderTitleOnPrint"/>
|
147 | 149 | <switchToWindow stepKey="switchToWindow2"/>
|
148 | 150 | </test>
|
|
0 commit comments