Skip to content

Commit 506eb09

Browse files
committed
bug: fix keepTraceForPassedTests & keepVideoForPassedTests
1 parent 8fc6e41 commit 506eb09

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/helper/Playwright.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2610,6 +2610,12 @@ class Playwright extends Helper {
26102610
}
26112611

26122612
async _passed(test) {
2613+
await this._withinEnd()
2614+
2615+
if (!test.artifacts) {
2616+
test.artifacts = {}
2617+
}
2618+
26132619
if (this.options.recordVideo && this.page && this.page.video()) {
26142620
if (this.options.keepVideoForPassedTests) {
26152621
test.artifacts.video = saveVideoForPage(this.page, `${test.title}.passed`)

0 commit comments

Comments
 (0)