We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b0e7c3 commit de903bdCopy full SHA for de903bd
src/utils/annotations.js
@@ -24,9 +24,10 @@ Expected <= 0, but found 1
24
export async function setAnnotations(resultsPath) {
25
const links = await getLinks(resultsPath)
26
const assertionResults = await getAssertionResults(resultsPath)
27
- if (!assertionResults) return
+ const failedAssertions = assertionResults?.filter((a) => !a.passed)
28
+ if (!failedAssertions) return
29
- const assertionResultsByUrl = mapValues(groupBy(assertionResults, 'url'), (assertions) => {
30
+ const assertionResultsByUrl = mapValues(groupBy(failedAssertions, 'url'), (assertions) => {
31
return orderBy(assertions, (a) => (a.level === 'error' ? 0 : 1) + a.auditId)
32
})
33
0 commit comments