chore(markdown): do not print details for flaky tests (#24264)

This commit is contained in:
Yury Semikhatsky 2023-07-17 16:09:59 -07:00 committed by GitHub
parent 15b9e5afdb
commit f6540f89ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,15 +60,13 @@ class MarkdownReporter extends BaseReporter {
lines.push(`:heavy_check_mark::heavy_check_mark::heavy_check_mark:`);
lines.push(``);
if (summary.unexpected.length || summary.fatalErrors.length || summary.flaky.length) {
if (summary.unexpected.length || summary.fatalErrors.length) {
lines.push(`<details>`);
lines.push(``);
if (summary.fatalErrors.length)
this._printFatalErrorDetails(summary.fatalErrors, lines);
if (summary.unexpected.length)
this._printTestListDetails(':x:', summary.unexpected, lines);
if (summary.flaky.length)
this._printTestListDetails(':warning:', summary.flaky, lines);
lines.push(`</details>`);
}