@@ -172,6 +172,16 @@ afterEach(() => {
|
||||
})
|
||||
|
||||
describe('首页搜索与地图闭环', () => {
|
||||
it('首页暂不展示来馆入口及其到馆面板', async () => {
|
||||
const wrapper = await mountIndex()
|
||||
|
||||
expect(wrapper.text()).not.toContain('来馆')
|
||||
expect(wrapper.findAll('.guide-quick-action').map((item) => item.text())).toEqual([
|
||||
'馆内',
|
||||
'讲解'
|
||||
])
|
||||
})
|
||||
|
||||
it('向搜索面板传入当前楼层,并将分类结果 ID 精确传给地图', async () => {
|
||||
const wrapper = await mountIndex()
|
||||
const search = wrapper.getComponent(PoiSearchPanelStub)
|
||||
|
||||
Reference in New Issue
Block a user