Skip to content

Commit e19cf27

Browse files
committed
fix: add fallback for case of using playwright version before exposing tags
1 parent 0421310 commit e19cf27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate-report.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class GenerateCtrfReport implements Reporter {
198198
test.trace = this.extractFailureDetails(testResult).trace
199199
test.snippet = this.extractFailureDetails(testResult).snippet
200200
test.rawStatus = testResult.status
201-
test.tags = testCase.tags
201+
test.tags = testCase.tags ?? []
202202
test.type = this.reporterConfigOptions.testType ?? 'e2e'
203203
test.filePath = testCase.location.file
204204
test.retries = testResult.retry

0 commit comments

Comments
 (0)