@@ -86,96 +86,6 @@ describe('driver/src/cypress/index', () => {
86
86
} )
87
87
} )
88
88
89
- context ( '.currentRetry' , ( ) => {
90
- describe ( 'test is not retried' , ( ) => {
91
- before ( ( ) => {
92
- expect ( Cypress . currentRetry ) . to . eq ( 0 )
93
- } )
94
-
95
- beforeEach ( ( ) => {
96
- expect ( Cypress . currentRetry ) . to . eq ( 0 )
97
- } )
98
-
99
- afterEach ( ( ) => {
100
- expect ( Cypress . currentRetry ) . to . eq ( 0 )
101
- } )
102
-
103
- after ( ( ) => {
104
- expect ( Cypress . currentRetry ) . to . eq ( 0 )
105
- } )
106
-
107
- it ( 'correctly returns currentRetry' , ( ) => {
108
- expect ( Cypress . currentRetry ) . to . eq ( 0 )
109
- } )
110
- } )
111
-
112
- describe ( 'test is retried due to beforeEach hook failure' , { retries : 1 } , ( ) => {
113
- before ( ( ) => {
114
- expect ( Cypress . currentRetry ) . to . be . oneOf ( [ 0 , 1 ] )
115
- } )
116
-
117
- beforeEach ( ( ) => {
118
- expect ( Cypress . currentRetry ) . to . eq ( 1 )
119
- } )
120
-
121
- it ( 'correctly returns currentRetry' , ( ) => {
122
- expect ( Cypress . currentRetry ) . to . eq ( 1 )
123
- } )
124
-
125
- afterEach ( ( ) => {
126
- expect ( Cypress . currentRetry ) . to . eq ( 1 )
127
- } )
128
-
129
- after ( ( ) => {
130
- expect ( Cypress . currentRetry ) . to . eq ( 1 )
131
- } )
132
- } )
133
-
134
- describe ( 'test is retried due to test failure' , { retries : 1 } , ( ) => {
135
- before ( ( ) => {
136
- expect ( Cypress . currentRetry ) . to . be . oneOf ( [ 0 , 1 ] )
137
- } )
138
-
139
- beforeEach ( ( ) => {
140
- expect ( Cypress . currentRetry ) . to . be . oneOf ( [ 0 , 1 ] )
141
- } )
142
-
143
- it ( 'correctly returns currentRetry' , ( ) => {
144
- expect ( Cypress . currentRetry ) . to . eq ( 1 )
145
- } )
146
-
147
- afterEach ( ( ) => {
148
- expect ( Cypress . currentRetry ) . to . eq ( 1 )
149
- } )
150
-
151
- after ( ( ) => {
152
- expect ( Cypress . currentRetry ) . to . eq ( 1 )
153
- } )
154
- } )
155
-
156
- describe ( 'test is retried due to afterEach hook failure' , { retries : 1 } , ( ) => {
157
- before ( ( ) => {
158
- expect ( Cypress . currentRetry ) . to . be . oneOf ( [ 0 , 1 ] )
159
- } )
160
-
161
- beforeEach ( ( ) => {
162
- expect ( Cypress . currentRetry ) . to . be . oneOf ( [ 0 , 1 ] )
163
- } )
164
-
165
- it ( 'correctly returns currentRetry' , ( ) => {
166
- expect ( Cypress . currentRetry ) . to . be . oneOf ( [ 0 , 1 ] )
167
- } )
168
-
169
- afterEach ( ( ) => {
170
- expect ( Cypress . currentRetry ) . to . eq ( 1 )
171
- } )
172
-
173
- after ( ( ) => {
174
- expect ( Cypress . currentRetry ) . to . eq ( 1 )
175
- } )
176
- } )
177
- } )
178
-
179
89
context ( '.isCy' , ( ) => {
180
90
it ( 'returns true on cy, cy chainable' , ( ) => {
181
91
expect ( Cypress . isCy ( cy ) ) . to . be . true
0 commit comments