@@ -97,6 +97,12 @@ afterEach(() => {
|
||||
})
|
||||
|
||||
describe('POI 搜索面板实际渲染与状态闭环', () => {
|
||||
it('不渲染尚未支持的语音搜索入口', () => {
|
||||
const wrapper = mount(PoiSearchPanel, { props: { variant: 'page' } })
|
||||
|
||||
expect(wrapper.find('.voice-icon').exists()).toBe(false)
|
||||
})
|
||||
|
||||
it('首页收缩和展开复用同一份十项快捷入口,搜索页保留完整分类', async () => {
|
||||
const escalatorPoi = createPoi('escalator-1', '自动扶梯', 'floor-1', '1F', 'escalator', [5, 0, 5])
|
||||
guideMocks.getInitialSearchSpacePoints.mockResolvedValue([...poiPool, escalatorPoi])
|
||||
|
||||
Reference in New Issue
Block a user