收口个人中心提示与大鱼摘要标签

将个人中心邀请弹窗奖励说明迁移到共享状态提示组件
将大鱼吃小鱼结果页 hero 摘要标签迁移到共享胶囊标签组件
补充充值商品卡购买胶囊暂不抽共享组件的收口文档与团队决策
This commit is contained in:
2026-06-10 16:24:53 +08:00
parent f336352d37
commit cb01d33944
5 changed files with 42 additions and 8 deletions

View File

@@ -237,6 +237,18 @@ describe('BigFishResultView', () => {
expect(blockerStatus?.className).toContain(
'bg-[var(--platform-warm-bg)]',
);
for (const label of ['弱小逆袭', '深海谜境', '1 级']) {
const badge = screen
.getAllByText(label)
.find((element) => element.className.includes('inline-flex'));
if (!badge) {
throw new Error(`missing hero badge for ${label}`);
}
expect(badge.className).toContain('inline-flex');
expect(badge.className).toContain('rounded-full');
expect(badge.className).toContain('border-transparent');
}
});
test('uses platform pill badge for ready publish status', () => {