File tree 1 file changed +15
-1
lines changed
projects/storefrontapp-e2e-cypress/cypress/helpers
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,21 @@ export function testCheckoutMultiDAsGuestAndVerifyCart() {
153
153
cy . get ( '.cx-checkout-title' ) . should ( 'contain' , 'Shipping Address' ) ;
154
154
cy . get ( 'cx-mini-cart .count' ) . contains ( '1' ) ;
155
155
156
+ const cartPage = checkout . waitForPage ( '/cart' , 'getCartPage' ) ;
157
+
158
+ cy . get ( 'cx-mini-cart' ) . click ( ) ;
159
+ cy . wait ( `@${ cartPage } ` ) . its ( 'response.statusCode' ) . should ( 'eq' , 200 ) ;
160
+ cy . get ( 'cx-mini-cart .count' ) . contains ( '1' ) ;
161
+
162
+ cy . get ( 'button.btn-primary' ) . click ( ) ;
163
+ cy . get ( 'cx-mini-cart .count' ) . contains ( '1' ) ;
164
+ cy . wait ( 500 ) ;
165
+
166
+ const homePage = checkout . waitForPage ( 'homepage' , 'getHomePage' ) ;
167
+ cy . get ( 'cx-page-slot.SiteLogo' ) . click ( ) ;
168
+ cy . wait ( `@${ homePage } ` ) . its ( 'response.statusCode' ) . should ( 'eq' , 200 ) ;
169
+ cy . get ( 'cx-mini-cart .count' ) . contains ( '1' ) ;
170
+
156
171
checkout . signOut ( ) ;
157
172
158
173
const loginPage = checkout . waitForPage ( '/login' , 'getLoginPage' ) ;
@@ -175,7 +190,6 @@ export function testCheckoutMultiDAsGuestAndVerifyCart() {
175
190
176
191
cy . get ( 'cx-mini-cart .count' ) . contains ( '1' ) ;
177
192
178
- const cartPage = checkout . waitForPage ( '/cart' , 'getCartPage' ) ;
179
193
cy . get ( 'cx-mini-cart' ) . click ( ) ;
180
194
cy . wait ( `@${ cartPage } ` ) . its ( 'response.statusCode' ) . should ( 'eq' , 200 ) ;
181
195
You can’t perform that action at this time.
0 commit comments