@@ -50,6 +50,10 @@ describe('top level suite', () => {
50
50
it.only('test with it.only', () => {
51
51
cy.get('.btn').click()
52
52
})
53
+
54
+ it('test with config', { responseTimeout: 60000 }, () => {
55
+ cy.get('.btn').click()
56
+ })
53
57
})
54
58
55
59
context('inner suite with context', () => {
@@ -60,6 +64,10 @@ describe('top level suite', () => {
60
64
describe.only('inner suite with describe.only', () => {
61
65
62
66
})
67
+
68
+ describe('suite with config', { responseTimeout: 60000 }, () => {
69
+
70
+ })
63
71
})
64
72
65
73
`
@@ -83,6 +91,10 @@ describe('top level suite', () => {
83
91
it.only('test with it.only', () => {
84
92
cy.get('.btn').click()
85
93
})
94
+
95
+ it('test with config', { responseTimeout: 60000 }, () => {
96
+ cy.get('.btn').click()
97
+ })
86
98
})
87
99
88
100
context('inner suite with context', () => {
@@ -93,6 +105,10 @@ describe('top level suite', () => {
93
105
describe.only('inner suite with describe.only', () => {
94
106
95
107
})
108
+
109
+ describe('suite with config', { responseTimeout: 60000 }, () => {
110
+
111
+ })
96
112
})
97
113
98
114
`
@@ -113,6 +129,10 @@ describe('top level suite', () => {
113
129
cy.get('.btn').click()
114
130
})
115
131
132
+ it('test with config', { responseTimeout: 60000 }, () => {
133
+ cy.get('.btn').click()
134
+ })
135
+
116
136
/* === Test Created with Cypress Studio === */
117
137
it('test added to describe', function() {
118
138
/* ==== Generated with Cypress Studio ==== */
@@ -130,6 +150,10 @@ describe('top level suite', () => {
130
150
describe.only('inner suite with describe.only', () => {
131
151
132
152
})
153
+
154
+ describe('suite with config', { responseTimeout: 60000 }, () => {
155
+
156
+ })
133
157
})
134
158
135
159
`
@@ -149,6 +173,10 @@ describe('top level suite', () => {
149
173
it.only('test with it.only', () => {
150
174
cy.get('.btn').click()
151
175
})
176
+
177
+ it('test with config', { responseTimeout: 60000 }, () => {
178
+ cy.get('.btn').click()
179
+ })
152
180
})
153
181
154
182
context('inner suite with context', () => {
@@ -165,6 +193,10 @@ describe('top level suite', () => {
165
193
describe.only('inner suite with describe.only', () => {
166
194
167
195
})
196
+
197
+ describe('suite with config', { responseTimeout: 60000 }, () => {
198
+
199
+ })
168
200
})
169
201
170
202
`
@@ -188,6 +220,10 @@ describe('top level suite', () => {
188
220
cy.get('.btn').click();
189
221
/* ==== End Cypress Studio ==== */
190
222
})
223
+
224
+ it('test with config', { responseTimeout: 60000 }, () => {
225
+ cy.get('.btn').click()
226
+ })
191
227
})
192
228
193
229
context('inner suite with context', () => {
@@ -198,6 +234,10 @@ describe('top level suite', () => {
198
234
describe.only('inner suite with describe.only', () => {
199
235
200
236
})
237
+
238
+ describe('suite with config', { responseTimeout: 60000 }, () => {
239
+
240
+ })
201
241
})
202
242
203
243
`
@@ -217,6 +257,10 @@ describe('top level suite', () => {
217
257
it.only('test with it.only', () => {
218
258
cy.get('.btn').click()
219
259
})
260
+
261
+ it('test with config', { responseTimeout: 60000 }, () => {
262
+ cy.get('.btn').click()
263
+ })
220
264
})
221
265
222
266
context('inner suite with context', () => {
@@ -233,6 +277,94 @@ describe('top level suite', () => {
233
277
/* ==== End Cypress Studio ==== */
234
278
});
235
279
})
280
+
281
+ describe('suite with config', { responseTimeout: 60000 }, () => {
282
+
283
+ })
284
+ })
285
+
286
+ `
287
+
288
+ exports [ 'lib/util/spec_writer #appendCommandsToTest can add commands to an existing test with config 1' ] = `
289
+ describe('top level suite', () => {
290
+ describe('inner suite with describe', () => {
291
+ it('test with it', () => {
292
+ cy.get('.btn').click()
293
+ })
294
+
295
+ specify('test with specify', () => {
296
+ cy.get('.btn').click()
297
+ })
298
+
299
+ // eslint-disable-next-line mocha/no-exclusive-tests
300
+ it.only('test with it.only', () => {
301
+ cy.get('.btn').click()
302
+ })
303
+
304
+ it('test with config', { responseTimeout: 60000 }, () => {
305
+ cy.get('.btn').click()
306
+ /* ==== Generated with Cypress Studio ==== */
307
+ cy.get('.input').type('typed text');
308
+ cy.get('.btn').click();
309
+ /* ==== End Cypress Studio ==== */
310
+ })
311
+ })
312
+
313
+ context('inner suite with context', () => {
314
+
315
+ })
316
+
317
+ // eslint-disable-next-line mocha/no-exclusive-tests
318
+ describe.only('inner suite with describe.only', () => {
319
+
320
+ })
321
+
322
+ describe('suite with config', { responseTimeout: 60000 }, () => {
323
+
324
+ })
325
+ })
326
+
327
+ `
328
+
329
+ exports [ 'lib/util/spec_writer #createNewTestInSuite can create a new test in a suite with config 1' ] = `
330
+ describe('top level suite', () => {
331
+ describe('inner suite with describe', () => {
332
+ it('test with it', () => {
333
+ cy.get('.btn').click()
334
+ })
335
+
336
+ specify('test with specify', () => {
337
+ cy.get('.btn').click()
338
+ })
339
+
340
+ // eslint-disable-next-line mocha/no-exclusive-tests
341
+ it.only('test with it.only', () => {
342
+ cy.get('.btn').click()
343
+ })
344
+
345
+ it('test with config', { responseTimeout: 60000 }, () => {
346
+ cy.get('.btn').click()
347
+ })
348
+ })
349
+
350
+ context('inner suite with context', () => {
351
+
352
+ })
353
+
354
+ // eslint-disable-next-line mocha/no-exclusive-tests
355
+ describe.only('inner suite with describe.only', () => {
356
+
357
+ })
358
+
359
+ describe('suite with config', { responseTimeout: 60000 }, () => {
360
+ /* === Test Created with Cypress Studio === */
361
+ it('test added to describe with config', function() {
362
+ /* ==== Generated with Cypress Studio ==== */
363
+ cy.get('.input').type('typed text');
364
+ cy.get('.btn').click();
365
+ /* ==== End Cypress Studio ==== */
366
+ });
367
+ })
236
368
})
237
369
238
370
`
0 commit comments