@@ -15,6 +15,12 @@ describe("Simple navigate and back", async function(){
15
15
await driver . resetApp ( ) ;
16
16
} ) ;
17
17
18
+ afterEach ( async function ( ) {
19
+ if ( this . currentTest . state === "failed" ) {
20
+ await driver . logTestArtifacts ( this . currentTest . title ) ;
21
+ }
22
+ } ) ;
23
+
18
24
it ( "should find First" , async function ( ) {
19
25
await assureFirstComponent ( driver ) ;
20
26
} ) ;
@@ -41,6 +47,12 @@ describe("Navigate inside nested outlet", async function(){
41
47
await driver . resetApp ( ) ;
42
48
} ) ;
43
49
50
+ afterEach ( async function ( ) {
51
+ if ( this . currentTest . state === "failed" ) {
52
+ await driver . logTestArtifacts ( this . currentTest . title ) ;
53
+ }
54
+ } ) ;
55
+
44
56
it ( "should find First" , async function ( ) {
45
57
await assureFirstComponent ( driver ) ;
46
58
} ) ;
@@ -89,6 +101,12 @@ describe("Navigate to same component with different param", async function(){
89
101
await driver . resetApp ( ) ;
90
102
} ) ;
91
103
104
+ afterEach ( async function ( ) {
105
+ if ( this . currentTest . state === "failed" ) {
106
+ await driver . logTestArtifacts ( this . currentTest . title ) ;
107
+ }
108
+ } ) ;
109
+
92
110
it ( "should find First" , async function ( ) {
93
111
await assureFirstComponent ( driver ) ;
94
112
} ) ;
@@ -131,6 +149,12 @@ describe("Nested navigation + page navigation", async function(){
131
149
await driver . resetApp ( ) ;
132
150
} ) ;
133
151
152
+ afterEach ( async function ( ) {
153
+ if ( this . currentTest . state === "failed" ) {
154
+ await driver . logTestArtifacts ( this . currentTest . title ) ;
155
+ }
156
+ } ) ;
157
+
134
158
it ( "should find First" , async function ( ) {
135
159
await assureFirstComponent ( driver ) ;
136
160
} ) ;
@@ -204,6 +228,12 @@ describe("Nested name navigation + page navigation", async function(){
204
228
await driver . resetApp ( ) ;
205
229
} ) ;
206
230
231
+ afterEach ( async function ( ) {
232
+ if ( this . currentTest . state === "failed" ) {
233
+ await driver . logTestArtifacts ( this . currentTest . title ) ;
234
+ }
235
+ } ) ;
236
+
207
237
it ( "should find First" , async function ( ) {
208
238
await assureFirstComponent ( driver ) ;
209
239
} ) ;
@@ -252,6 +282,12 @@ describe("Shouldn't be able to navigate back on startup", async function(){
252
282
await driver . resetApp ( ) ;
253
283
} ) ;
254
284
285
+ afterEach ( async function ( ) {
286
+ if ( this . currentTest . state === "failed" ) {
287
+ await driver . logTestArtifacts ( this . currentTest . title ) ;
288
+ }
289
+ } ) ;
290
+
255
291
it ( "should find First" , async function ( ) {
256
292
await assureFirstComponent ( driver ) ;
257
293
} ) ;
@@ -271,6 +307,12 @@ describe("Shouldn't be able to navigate back after cleared history", async funct
271
307
await driver . resetApp ( ) ;
272
308
} ) ;
273
309
310
+ afterEach ( async function ( ) {
311
+ if ( this . currentTest . state === "failed" ) {
312
+ await driver . logTestArtifacts ( this . currentTest . title ) ;
313
+ }
314
+ } ) ;
315
+
274
316
it ( "should find First" , async function ( ) {
275
317
await assureFirstComponent ( driver ) ;
276
318
} ) ;
@@ -303,6 +345,12 @@ describe("Navigate to componentless route", async function(){
303
345
await driver . resetApp ( ) ;
304
346
} ) ;
305
347
348
+ afterEach ( async function ( ) {
349
+ if ( this . currentTest . state === "failed" ) {
350
+ await driver . logTestArtifacts ( this . currentTest . title ) ;
351
+ }
352
+ } ) ;
353
+
306
354
it ( "should find First" , async function ( ) {
307
355
await assureFirstComponent ( driver ) ;
308
356
} ) ;
@@ -341,6 +389,12 @@ describe("Navigate to lazy module", async function(){
341
389
await driver . resetApp ( ) ;
342
390
} ) ;
343
391
392
+ afterEach ( async function ( ) {
393
+ if ( this . currentTest . state === "failed" ) {
394
+ await driver . logTestArtifacts ( this . currentTest . title ) ;
395
+ }
396
+ } ) ;
397
+
344
398
it ( "should find First" , async function ( ) {
345
399
await assureFirstComponent ( driver ) ;
346
400
} ) ;
@@ -383,6 +437,12 @@ describe("Navigate to componentless lazy module route", async function(){
383
437
await driver . resetApp ( ) ;
384
438
} ) ;
385
439
440
+ afterEach ( async function ( ) {
441
+ if ( this . currentTest . state === "failed" ) {
442
+ await driver . logTestArtifacts ( this . currentTest . title ) ;
443
+ }
444
+ } ) ;
445
+
386
446
it ( "should find First" , async function ( ) {
387
447
await assureFirstComponent ( driver ) ;
388
448
} ) ;
@@ -426,6 +486,12 @@ describe("Simple navigate and back should trigger only one CD on FirstComponent"
426
486
await driver . resetApp ( ) ;
427
487
} ) ;
428
488
489
+ afterEach ( async function ( ) {
490
+ if ( this . currentTest . state === "failed" ) {
491
+ await driver . logTestArtifacts ( this . currentTest . title ) ;
492
+ }
493
+ } ) ;
494
+
429
495
it ( "should find First" , async function ( ) {
430
496
await assureFirstComponent ( driver ) ;
431
497
} ) ;
@@ -457,6 +523,12 @@ describe("Simple navigate and back should trigger only one CD on FirstComponent
457
523
await driver . resetApp ( ) ;
458
524
} ) ;
459
525
526
+ afterEach ( async function ( ) {
527
+ if ( this . currentTest . state === "failed" ) {
528
+ await driver . logTestArtifacts ( this . currentTest . title ) ;
529
+ }
530
+ } ) ;
531
+
460
532
it ( "should find First" , async ( ) => {
461
533
await assureFirstComponent ( driver ) ;
462
534
} ) ;
0 commit comments