@@ -25,7 +25,6 @@ describe('/#/basket', () => {
25
25
} )
26
26
cy . visit ( '/#/order-summary' )
27
27
28
- // cy.get("mat-cell.mat-column-quantity > span").first().should("match",-100000)
29
28
cy . get ( 'mat-cell.mat-column-quantity > span' )
30
29
. first ( )
31
30
. then ( ( $ele ) => {
@@ -77,13 +76,12 @@ describe('/#/basket', () => {
77
76
cy . login ( { email : 'jim' , password : 'ncc-1701' } )
78
77
} )
79
78
describe ( 'challenge "manipulateClock"' , ( ) => {
80
- it ( 'should be possible to enter WMNSDY2019 coupon' , ( ) => {
79
+ it ( 'should be possible to enter WMNSDY2019 coupon & place order with this expired coupon ' , ( ) => {
81
80
cy . window ( ) . then ( ( ) => {
82
81
window . localStorage . couponPanelExpanded = false
83
82
} )
84
83
cy . visit ( '/#/payment/shop' )
85
84
86
- // yahan bt aa rahi in the console commands
87
85
cy . window ( ) . then ( ( win ) => {
88
86
cy . on ( 'uncaught:exception' , ( _err , _runnable ) => {
89
87
// Introduced to disbale the uncaught:exception we get after the eval under this as TypeError: Date.now is not a function
@@ -97,10 +95,8 @@ describe('/#/basket', () => {
97
95
98
96
cy . get ( '#coupon' ) . type ( 'WMNSDY2019' )
99
97
cy . get ( '#applyCouponButton' ) . click ( )
100
- } )
101
-
102
- it ( 'should be possible to place an order with the expired coupon' , ( ) => {
103
- cy . visit ( '/#/order-summary' )
98
+ cy . get ( '.mat-radio-inner-circle' ) . first ( ) . click ( )
99
+ cy . get ( '.nextButton' ) . click ( )
104
100
cy . get ( '#checkoutButton' ) . click ( )
105
101
cy . expectChallengeSolved ( { challenge : 'Expired Coupon' } )
106
102
} )
0 commit comments