|
27 | 27 | </before>
|
28 | 28 |
|
29 | 29 | <after>
|
| 30 | + <!--Logout from customer account--> |
| 31 | + <amOnPage url="customer/account/logout/" stepKey="logoutCustomerOne"/> |
| 32 | + <waitForPageLoad stepKey="waitLogoutCustomerOne"/> |
30 | 33 | <amOnPage url="admin/admin/auth/logout/" stepKey="amOnLogoutPage"/>
|
31 | 34 | <deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/>
|
32 | 35 | <deleteData createDataKey="createSimpleUsCustomer" stepKey="deleteCustomer"/>
|
|
60 | 63 | <see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="seeSuccessTitle"/>
|
61 | 64 | <see selector="{{CheckoutSuccessMainSection.orderNumberText}}" userInput="Your order number is: " stepKey="seeOrderNumber"/>
|
62 | 65 | <see selector="{{CheckoutSuccessMainSection.success}}" userInput="We'll email you an order confirmation with details and tracking info." stepKey="seeSuccessNotify"/>
|
| 66 | + |
63 | 67 | <click selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="clickOrderLink"/>
|
| 68 | + <waitForElement selector="{{StorefrontCustomerOrderViewSection.orderTitle}}" stepKey="waitOrderViewPage"/> |
| 69 | + <seeInCurrentUrl url="{{StorefrontCustomerOrderPage.url}}" stepKey="seeMyOrderPage"/> |
64 | 70 |
|
65 | 71 | <!--Go to product page-->
|
66 | 72 | <amOnPage url="$$createSimpleProduct.custom_attributes[url_key]$$.html" stepKey="navigateToSimpleProductPage2"/>
|
|
85 | 91 | <click selector="{{CheckoutSuccessMainSection.continueShoppingButton}}" stepKey="clickContinueShoppingButton"/>
|
86 | 92 | <waitForElement selector="{{StorefrontCMSPageSection.mainTitle}}" stepKey="waitHomePage"/>
|
87 | 93 | <see userInput="Home Page" selector="{{StorefrontCMSPageSection.mainTitle}}" stepKey="seeHomePageTitle"/>
|
| 94 | + <seeCurrentUrlEquals url="{{_ENV.MAGENTO_BASE_URL}}" stepKey="seeHomePageUrl"/> |
88 | 95 |
|
89 | 96 | <!--Go to product page-->
|
90 | 97 | <amOnPage url="$$createSimpleProduct.custom_attributes[url_key]$$.html" stepKey="navigateToSimpleProductPage3"/>
|
|
118 | 125 | <click selector="{{CheckoutSuccessMainSection.printLink}}" stepKey="clickPrintLink"/>
|
119 | 126 | <waitForPageLoad stepKey="waitPrintPage"/>
|
120 | 127 | <switchToWindow stepKey="switchToWindow"/>
|
121 |
| - <waitForElement selector="#navbar-container #print-header" stepKey="waitPrintBlock"/> |
122 |
| - <seeElement selector="#navbar-container #print-header" stepKey="seePrintPage"/> |
| 128 | + <switchToNextTab stepKey="switchToTab"/> |
| 129 | + <seeInCurrentUrl url="sales/order/print/order_id" stepKey="123"/> |
| 130 | + <seeElement selector="{{StorefrontCustomerOrderViewSection.orderTitle}}" stepKey="seeOrderTitleOnPrint"/> |
| 131 | + <switchToWindow stepKey="switchToWindow2"/> |
123 | 132 | </test>
|
124 | 133 | <test name="CheckCheckoutSuccessPageAsGuest">
|
125 | 134 | <annotations>
|
|
158 | 167 | <argument name="customerAddressVar" value="CustomerAddressSimple" />
|
159 | 168 | </actionGroup>
|
160 | 169 |
|
161 |
| - <!--<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoadedTest3"/>--> |
162 |
| - |
163 | 170 | <!--Click Place Order button-->
|
164 | 171 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder"/>
|
165 | 172 | <waitForElement selector="{{CheckoutSuccessMainSection.success}}" time="30" stepKey="waitForLoadSuccessPage"/>
|
|
178 | 185 | <dontSeeElement selector="{{CheckoutSuccessRegisterSection.createAccountButton}}" stepKey="seeInvisibleCreateAccountButton"/>
|
179 | 186 | <click selector="{{CheckoutSuccessMainSection.continueShoppingButton}}" stepKey="clickContinueShoppingButton"/>
|
180 | 187 | <waitForElement selector="{{StorefrontCMSPageSection.mainTitle}}" stepKey="waitHomePage"/>
|
| 188 | + <seeCurrentUrlEquals url="{{_ENV.MAGENTO_BASE_URL}}" stepKey="seeHomePageUrl"/> |
181 | 189 | <see userInput="Home Page" selector="{{StorefrontCMSPageSection.mainTitle}}" stepKey="seeHomePageTitle"/>
|
182 | 190 | </test>
|
183 | 191 | </tests>
|
0 commit comments