Skip to content

Commit

Permalink
chore(e2e): fix links to source in new e2e report (#2507)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhalp authored Jun 25, 2024
1 parent cf3bb44 commit c3c77e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion e2e-report/components/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function TestSuiteRow({ suite, idx }) {
<>
<tr key={'tr-' + idx} className="text-sm md:text-base">
<td className="p-2 md:p-4">
<Link href={suite.file} className="text-sm md:text-base">
<Link href={suite.sourceUrl} className="text-sm md:text-base">
{suite.name}
</Link>
</td>
Expand Down
1 change: 1 addition & 0 deletions e2e-report/utils/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ nonEmptySuites.forEach((suite) => {

suite.failedKnown = actualFailed.filter((t) => !!t.reason).length || 0
suite.failedUnknown = suite.failed - suite.failedKnown
suite.sourceUrl = `https://github.com/vercel/next.js/blob/${fileData.nextVersion}/${suite.file}`
})

const suitesWithFailures = nonEmptySuites.filter((suite) => suite.failed > 0)
Expand Down

0 comments on commit c3c77e6

Please sign in to comment.