diff --git a/web/tests/works-gallery-card.test.cjs b/web/tests/works-gallery-card.test.cjs index 494b2bc..489bd24 100644 --- a/web/tests/works-gallery-card.test.cjs +++ b/web/tests/works-gallery-card.test.cjs @@ -20,7 +20,7 @@ test('作品卡片封面读本地缓存 /works/:id/cover(签名 URL 会过期 test('观看/点赞/评论/分享四项指标全宽 GRID 贴封面下方', () => { const grid = /function WorkStatsGrid/.exec(sourceText()); assert.ok(grid, '应有 WorkStatsGrid 组件'); - const body = sourceText().slice(grid.index, grid.index + 1200); + const body = sourceText().slice(grid.index, grid.index + 1300); for (const key of ['play_count', 'likes', 'comments_count', 'shares']) { assert.match(body, new RegExp(key), `GRID 应包含指标 ${key}`); } @@ -40,3 +40,4 @@ test('卡片展示作品描述(body 省略两行)', () => { function sourceText() { return source.getFullText(); } +