移除点位搜索语音入口
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-18 13:13:14 +08:00
parent d86f24566e
commit 17fd137390
2 changed files with 8 additions and 49 deletions

View File

@@ -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])