@@ -15,6 +15,12 @@ describe("Simple navigate and back", async function(){
1515 await driver . resetApp ( ) ;
1616 } ) ;
1717
18+ afterEach ( async function ( ) {
19+ if ( this . currentTest . state === "failed" ) {
20+ await driver . logTestArtifacts ( this . currentTest . title ) ;
21+ }
22+ } ) ;
23+
1824 it ( "should find First" , async function ( ) {
1925 await assureFirstComponent ( driver ) ;
2026 } ) ;
@@ -41,6 +47,12 @@ describe("Navigate inside nested outlet", async function(){
4147 await driver . resetApp ( ) ;
4248 } ) ;
4349
50+ afterEach ( async function ( ) {
51+ if ( this . currentTest . state === "failed" ) {
52+ await driver . logTestArtifacts ( this . currentTest . title ) ;
53+ }
54+ } ) ;
55+
4456 it ( "should find First" , async function ( ) {
4557 await assureFirstComponent ( driver ) ;
4658 } ) ;
@@ -89,6 +101,12 @@ describe("Navigate to same component with different param", async function(){
89101 await driver . resetApp ( ) ;
90102 } ) ;
91103
104+ afterEach ( async function ( ) {
105+ if ( this . currentTest . state === "failed" ) {
106+ await driver . logTestArtifacts ( this . currentTest . title ) ;
107+ }
108+ } ) ;
109+
92110 it ( "should find First" , async function ( ) {
93111 await assureFirstComponent ( driver ) ;
94112 } ) ;
@@ -131,6 +149,12 @@ describe("Nested navigation + page navigation", async function(){
131149 await driver . resetApp ( ) ;
132150 } ) ;
133151
152+ afterEach ( async function ( ) {
153+ if ( this . currentTest . state === "failed" ) {
154+ await driver . logTestArtifacts ( this . currentTest . title ) ;
155+ }
156+ } ) ;
157+
134158 it ( "should find First" , async function ( ) {
135159 await assureFirstComponent ( driver ) ;
136160 } ) ;
@@ -204,6 +228,12 @@ describe("Nested name navigation + page navigation", async function(){
204228 await driver . resetApp ( ) ;
205229 } ) ;
206230
231+ afterEach ( async function ( ) {
232+ if ( this . currentTest . state === "failed" ) {
233+ await driver . logTestArtifacts ( this . currentTest . title ) ;
234+ }
235+ } ) ;
236+
207237 it ( "should find First" , async function ( ) {
208238 await assureFirstComponent ( driver ) ;
209239 } ) ;
@@ -252,6 +282,12 @@ describe("Shouldn't be able to navigate back on startup", async function(){
252282 await driver . resetApp ( ) ;
253283 } ) ;
254284
285+ afterEach ( async function ( ) {
286+ if ( this . currentTest . state === "failed" ) {
287+ await driver . logTestArtifacts ( this . currentTest . title ) ;
288+ }
289+ } ) ;
290+
255291 it ( "should find First" , async function ( ) {
256292 await assureFirstComponent ( driver ) ;
257293 } ) ;
@@ -271,6 +307,12 @@ describe("Shouldn't be able to navigate back after cleared history", async funct
271307 await driver . resetApp ( ) ;
272308 } ) ;
273309
310+ afterEach ( async function ( ) {
311+ if ( this . currentTest . state === "failed" ) {
312+ await driver . logTestArtifacts ( this . currentTest . title ) ;
313+ }
314+ } ) ;
315+
274316 it ( "should find First" , async function ( ) {
275317 await assureFirstComponent ( driver ) ;
276318 } ) ;
@@ -303,6 +345,12 @@ describe("Navigate to componentless route", async function(){
303345 await driver . resetApp ( ) ;
304346 } ) ;
305347
348+ afterEach ( async function ( ) {
349+ if ( this . currentTest . state === "failed" ) {
350+ await driver . logTestArtifacts ( this . currentTest . title ) ;
351+ }
352+ } ) ;
353+
306354 it ( "should find First" , async function ( ) {
307355 await assureFirstComponent ( driver ) ;
308356 } ) ;
@@ -341,6 +389,12 @@ describe("Navigate to lazy module", async function(){
341389 await driver . resetApp ( ) ;
342390 } ) ;
343391
392+ afterEach ( async function ( ) {
393+ if ( this . currentTest . state === "failed" ) {
394+ await driver . logTestArtifacts ( this . currentTest . title ) ;
395+ }
396+ } ) ;
397+
344398 it ( "should find First" , async function ( ) {
345399 await assureFirstComponent ( driver ) ;
346400 } ) ;
@@ -383,6 +437,12 @@ describe("Navigate to componentless lazy module route", async function(){
383437 await driver . resetApp ( ) ;
384438 } ) ;
385439
440+ afterEach ( async function ( ) {
441+ if ( this . currentTest . state === "failed" ) {
442+ await driver . logTestArtifacts ( this . currentTest . title ) ;
443+ }
444+ } ) ;
445+
386446 it ( "should find First" , async function ( ) {
387447 await assureFirstComponent ( driver ) ;
388448 } ) ;
@@ -426,6 +486,12 @@ describe("Simple navigate and back should trigger only one CD on FirstComponent"
426486 await driver . resetApp ( ) ;
427487 } ) ;
428488
489+ afterEach ( async function ( ) {
490+ if ( this . currentTest . state === "failed" ) {
491+ await driver . logTestArtifacts ( this . currentTest . title ) ;
492+ }
493+ } ) ;
494+
429495 it ( "should find First" , async function ( ) {
430496 await assureFirstComponent ( driver ) ;
431497 } ) ;
@@ -457,6 +523,12 @@ describe("Simple navigate and back should trigger only one CD on FirstComponent
457523 await driver . resetApp ( ) ;
458524 } ) ;
459525
526+ afterEach ( async function ( ) {
527+ if ( this . currentTest . state === "failed" ) {
528+ await driver . logTestArtifacts ( this . currentTest . title ) ;
529+ }
530+ } ) ;
531+
460532 it ( "should find First" , async ( ) => {
461533 await assureFirstComponent ( driver ) ;
462534 } ) ;
0 commit comments