|
59 | 59 |
|
60 | 60 | <!--Click Place Order button-->
|
61 | 61 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder"/>
|
62 |
| - <waitForElement selector="{{CheckoutSuccessMainSection.success}}" time="30" stepKey="waitForLoadSuccessPage"/> |
63 | 62 | <see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="seeSuccessTitle"/>
|
64 | 63 | <see selector="{{CheckoutSuccessMainSection.orderNumberText}}" userInput="Your order number is: " stepKey="seeOrderNumber"/>
|
65 | 64 | <see selector="{{CheckoutSuccessMainSection.success}}" userInput="We'll email you an order confirmation with details and tracking info." stepKey="seeSuccessNotify"/>
|
66 | 65 |
|
67 | 66 | <click selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="clickOrderLink"/>
|
68 |
| - <waitForElement selector="{{StorefrontCustomerOrderViewSection.orderTitle}}" stepKey="waitOrderViewPage"/> |
69 | 67 | <seeInCurrentUrl url="{{StorefrontCustomerOrderPage.url}}" stepKey="seeMyOrderPage"/>
|
70 | 68 |
|
71 | 69 | <!--Go to product page-->
|
|
87 | 85 |
|
88 | 86 | <!--Click Place Order button-->
|
89 | 87 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder2"/>
|
90 |
| - <waitForElement selector="{{CheckoutSuccessMainSection.success}}" time="30" stepKey="waitForLoadSuccessPage2"/> |
| 88 | + <see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForLoadSuccessPage2"/> |
91 | 89 | <click selector="{{CheckoutSuccessMainSection.continueShoppingButton}}" stepKey="clickContinueShoppingButton"/>
|
92 |
| - <waitForElement selector="{{StorefrontCMSPageSection.mainTitle}}" stepKey="waitHomePage"/> |
93 | 90 | <see userInput="Home Page" selector="{{StorefrontCMSPageSection.mainTitle}}" stepKey="seeHomePageTitle"/>
|
94 | 91 | <seeCurrentUrlEquals url="{{_ENV.MAGENTO_BASE_URL}}" stepKey="seeHomePageUrl"/>
|
95 | 92 |
|
|
112 | 109 |
|
113 | 110 | <!--Click Place Order button-->
|
114 | 111 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder3"/>
|
115 |
| - <waitForElement selector="{{CheckoutSuccessMainSection.success}}" time="30" stepKey="waitForLoadSuccessPage3"/> |
| 112 | + <see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForLoadSuccessPage3"/> |
116 | 113 |
|
117 | 114 | <!--Check "Print Receipt" button is presented (desktop only)-->
|
118 | 115 | <seeElement selector="{{CheckoutSuccessMainSection.printLink}}" stepKey="seeVisiblePrint"/>
|
|
123 | 120 |
|
124 | 121 | <!--See print page-->
|
125 | 122 | <click selector="{{CheckoutSuccessMainSection.printLink}}" stepKey="clickPrintLink"/>
|
126 |
| - <waitForPageLoad stepKey="waitPrintPage"/> |
127 | 123 | <switchToWindow stepKey="switchToWindow"/>
|
128 | 124 | <switchToNextTab stepKey="switchToTab"/>
|
129 | 125 | <seeInCurrentUrl url="sales/order/print/order_id" stepKey="seePrintPage"/>
|
|
169 | 165 |
|
170 | 166 | <!--Click Place Order button-->
|
171 | 167 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder"/>
|
172 |
| - <waitForElement selector="{{CheckoutSuccessMainSection.success}}" time="30" stepKey="waitForLoadSuccessPage"/> |
| 168 | + <see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForLoadSuccessPage"/> |
173 | 169 |
|
174 | 170 | <!--See success messages-->
|
175 | 171 | <see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="seeSuccessTitle"/>
|
|
181 | 177 | <see selector="{{CheckoutSuccessRegisterSection.customerEmail}}" userInput="Email Address: {{CustomerEntityOne.email}}" stepKey="seeCustomerEmail"/>
|
182 | 178 | <seeElement selector="{{CheckoutSuccessRegisterSection.createAccountButton}}" stepKey="seeVisibleCreateAccountButton"/>
|
183 | 179 | <click selector="{{CheckoutSuccessRegisterSection.createAccountButton}}" stepKey="clickCreateAccountButton"/>
|
184 |
| - <waitForElement selector="{{StorefrontCMSPageSection.mainTitle}}" stepKey="waitAccountPage"/> |
185 | 180 | <seeInCurrentUrl url="{{StorefrontCustomerCreatePage.url}}" stepKey="seeCreateAccountPage"/>
|
186 | 181 | <see userInput="Create New Customer Account" selector="{{StorefrontCMSPageSection.mainTitle}}" stepKey="seeCreateAccountPageTitle"/>
|
187 | 182 |
|
|
203 | 198 |
|
204 | 199 | <!--Click Place Order button-->
|
205 | 200 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder2"/>
|
206 |
| - <waitForElement selector="{{CheckoutSuccessMainSection.success}}" time="30" stepKey="waitForLoadSuccessPage2"/> |
| 201 | + <see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForLoadSuccessPage2"/> |
207 | 202 |
|
208 | 203 | <!--Continue shopping-->
|
209 | 204 | <click selector="{{CheckoutSuccessMainSection.continueShoppingButton}}" stepKey="clickContinueShoppingButton"/>
|
210 |
| - <waitForElement selector="{{StorefrontCMSPageSection.mainTitle}}" stepKey="waitHomePage"/> |
211 | 205 | <seeCurrentUrlEquals url="{{_ENV.MAGENTO_BASE_URL}}" stepKey="seeHomePageUrl"/>
|
212 | 206 | <see userInput="Home Page" selector="{{StorefrontCMSPageSection.mainTitle}}" stepKey="seeHomePageTitle"/>
|
213 | 207 | </test>
|
|
0 commit comments