test: improve Visual Regression UI (#47345)

This commit is contained in:
afc163 2024-02-05 14:29:44 +08:00 committed by GitHub
parent 364bb0c40b
commit a12bea1834
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -160,12 +160,12 @@ function generateReport(
const htmlReportLink = `${publicPath}/visualRegressionReport/report.html`;
const addonFullReportDesc = `\n\nCheck <a href="${htmlReportLink}" target="_blank">Full Report</a> for details`;
const fullReport = `> <a href="${htmlReportLink}" target="_blank">📖 View Full Report↗</a>`;
const fullReport = `> 📖 <a href="${htmlReportLink}" target="_blank">View Full Report ↗︎</a>`;
if (passed) {
const mdStr = [
commonHeader,
fullReport,
'🎊 Congrats! No visual-regression diff found.',
'\n🎊 Congrats! No visual-regression diff found.\n',
'<img src="https://github.com/ant-design/ant-design/assets/507615/2d1a77dc-dbc6-4b0f-9cbc-19a43d3c29cd" width="300" />',
].join('\n');