File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ class PlaywrightEnvironment extends NodeEnvironment {
75
75
76
76
async handleTestEvent ( event , state ) {
77
77
if ( event . name === 'setup' ) {
78
-
79
78
this . patchToEnableFixtures ( this . global , 'beforeEach' ) ;
80
79
this . patchToEnableFixtures ( this . global , 'afterEach' ) ;
81
80
@@ -111,6 +110,7 @@ class PlaywrightEnvironment extends NodeEnvironment {
111
110
} ;
112
111
this . global . expect . extend ( { toBeGolden } ) ;
113
112
}
113
+
114
114
if ( event . name === 'test_start' ) {
115
115
const fn = event . test . fn ;
116
116
event . test . fn = async ( ) => {
@@ -121,6 +121,10 @@ class PlaywrightEnvironment extends NodeEnvironment {
121
121
}
122
122
} ;
123
123
}
124
+
125
+ if ( event . name === 'test_fn_failure' ) {
126
+ await this . fixturePool . teardownScope ( 'worker' ) ;
127
+ }
124
128
}
125
129
}
126
130
You can’t perform that action at this time.
0 commit comments