File tree 2 files changed +11
-3
lines changed
projects/storefrontapp-e2e-cypress/cypress/helpers
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export function checkBanner() {
10
10
11
11
export function clickHamburger ( ) {
12
12
cy . onMobile ( ( ) => {
13
- cy . get ( 'cx-hamburger-menu button' ) . click ( ) ;
13
+ cy . get ( 'cx-hamburger-menu button' , { timeout : 15000 } ) . click ( ) ;
14
14
} ) ;
15
15
}
16
16
Original file line number Diff line number Diff line change @@ -166,8 +166,16 @@ export const orderHistoryTest = {
166
166
it ( 'should sort the orders table by given code' , ( ) => {
167
167
cy . intercept ( 'GET' , / s o r t = b y O r d e r N u m b e r / ) . as ( 'query_order_asc' ) ;
168
168
cy . visit ( '/my-account/orders' ) ;
169
- cy . get ( '.top cx-sorting .ng-select' ) . ngSelect ( 'Order Number' ) ;
170
- cy . wait ( '@query_order_asc' ) . its ( 'response.statusCode' ) . should ( 'eq' , 200 ) ;
169
+
170
+ cy . get ( '.top cx-sorting .ng-select' , { timeout : 15000 } ) . click ( ) ;
171
+ cy . get ( '.ng-dropdown-panel .ng-option' , { timeout : 15000 } )
172
+ . contains ( 'Order Number' )
173
+ . click ( ) ;
174
+
175
+ cy . wait ( '@query_order_asc' , { timeout : 15000 } )
176
+ . its ( 'response.statusCode' )
177
+ . should ( 'eq' , 200 ) ;
178
+ cy . wait ( 2000 ) ;
171
179
cy . get ( '.cx-order-history-code > .cx-order-history-value' ) . then (
172
180
( $orders ) => {
173
181
expect ( parseInt ( $orders [ 0 ] . textContent , 10 ) ) . to . be . lessThan (
You can’t perform that action at this time.
0 commit comments