调整业务单元讲解统计文案

This commit is contained in:
lyf
2026-07-15 00:24:26 +08:00
parent c08e1afe85
commit 55f9f7df73
2 changed files with 4 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ vi.mock('@/utils/hostEnvironment', () => ({
}))
describe('讲解展厅选择列表', () => {
it('业务单元卡片不显示业务单元标签,并保留讲解数量和点击事件', async () => {
it('业务单元卡片不显示业务单元标签,并保留讲解数量和点击事件', async () => {
const wrapper = mount(ExplainHallSelect, {
props: {
stage: 'unit',
@@ -34,8 +34,8 @@ describe('讲解展厅选择列表', () => {
expect(cards).toHaveLength(2)
expect(wrapper.text()).toContain('生命演化')
expect(wrapper.text()).toContain('恐龙世界')
expect(wrapper.text()).toContain('6 个讲解')
expect(wrapper.text()).toContain('4 个讲解')
expect(wrapper.text()).toContain('6 个讲解')
expect(wrapper.text()).toContain('4 个讲解')
expect(cards.map((card) => card.text()).join('')).not.toContain('业务单元')
expect(cards[0]?.find('.floor-badge').exists()).toBe(false)