集成Hermes的简历渲染器(vendored, exports加CSS): 详情页简历全文改智联样式渲染(服务端渲染+样式内联), 纯文本降级兜底

This commit is contained in:
mzl92
2026-08-31 10:28:31 +08:00
parent f955869052
commit a711b9d42c
5 changed files with 227 additions and 2 deletions
+4
View File
@@ -84,6 +84,10 @@ const sleep = (ms) => new Promise(r => setTimeout(r, ms));
const detText = await $('#detailBody').innerText();
ok('弹窗打开且含简历全文', detText.includes('简历全文'));
ok('时间格式为 Y-m-d H:i:s', /\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/.test(detText));
await sleep(900);
const zrOk = await p.evaluate(() => !!document.querySelector('.zr-wrap') && !!document.querySelector('.zr-sec'));
ok('简历智联样式渲染生效(.zr-*)', zrOk);
await p.screenshot({ path: '/tmp/smoke-shots/detail-rendered.png' });
await p.screenshot({ path: '/tmp/smoke-shots/03-detail.png' });
await p.evaluate(() => document.getElementById('detailModal').classList.add('hidden'));