修复小程序讲解内部返回控件
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-28 14:42:02 +08:00
parent 2fb70fa1e3
commit 06ad609e1f
5 changed files with 19 additions and 9 deletions

View File

@@ -403,6 +403,7 @@ describe('讲解详情音频优先布局', () => {
hallId: 'hall-1',
hallName: '恐龙厅'
})
expect(wrapper.find('.hero-back').exists()).toBe(false)
wrapper.getComponent(GuidePageFrameStub).vm.$emit('back')
await flushPromises()
@@ -427,7 +428,8 @@ describe('讲解详情音频优先布局', () => {
returnToGuideStopList: '1',
returnToHallList: '1'
})
wrapper.getComponent(GuidePageFrameStub).vm.$emit('back')
expect(wrapper.find('.hero-back').exists()).toBe(true)
await wrapper.get('.hero-back').trigger('tap')
await flushPromises()
const url = vi.mocked(uni.redirectTo).mock.calls[0]?.[0]?.url || ''