Show "marked as failure" messages from Browsertime. (#3272)

And send that data automatically to the data storage.
This commit is contained in:
Peter Hedenskog 2021-02-04 10:48:58 +01:00 committed by GitHub
parent 15b96b0a22
commit c819ee0717
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -31,5 +31,6 @@ module.exports = [
'statistics.pageinfo.layoutShift',
'statistics.pageinfo.domElements',
'statistics.extras.*',
'statistics.android.batteryTemperature.*'
'statistics.android.batteryTemperature.*',
'markedAsFailure'
];

View File

@ -15,6 +15,13 @@ block content
b #{d.browsertime.pageSummary.info.title}
p !{d.browsertime.pageSummary.info.description}
if d.browsertime && d.browsertime.pageSummary && d.browsertime.pageSummary.markedAsFailure
.errors
b This test was marked as a failure with the following #{h.plural(d.browsertime.pageSummary.failureMessages.length, 'message')}:
ul
each failureMessage in d.browsertime.pageSummary.failureMessages
li #{failureMessage}
p
.large All runs: 
each val, index in runPages