|
|
@@ -26,7 +26,8 @@ describe('Sidebar', () => {
|
|
|
it('renders the desktop feature navigation buttons', () => {
|
|
|
const wrapper = mount(Sidebar)
|
|
|
|
|
|
- expect(wrapper.text()).toContain('AI问答')
|
|
|
+ expect(wrapper.text()).toContain('AI助手')
|
|
|
+ expect(wrapper.text()).not.toContain('AI问答')
|
|
|
expect(wrapper.text()).toContain('隐患提示')
|
|
|
expect(wrapper.text()).toContain('AI写作')
|
|
|
expect(wrapper.text()).toContain('安全培训')
|
|
|
@@ -34,7 +35,7 @@ describe('Sidebar', () => {
|
|
|
})
|
|
|
|
|
|
it.each([
|
|
|
- ['AI问答', '/chat', '/chat'],
|
|
|
+ ['AI助手', '/chat', '/chat'],
|
|
|
['隐患提示', '/hazard-detection', '/hazard-detection']
|
|
|
])('routes %s to %s', async (label, path, expectedTarget) => {
|
|
|
routeState.name = 'AIWriting'
|
|
|
@@ -63,7 +64,7 @@ describe('Sidebar', () => {
|
|
|
})
|
|
|
|
|
|
it.each([
|
|
|
- ['AI问答', '/chat', 'ai-qa'],
|
|
|
+ ['AI助手', '/chat', 'ai-qa'],
|
|
|
['AI写作', '/ai-writing', 'ai-writing'],
|
|
|
['安全培训', '/safety-hazard', 'safety-training'],
|
|
|
['考试工坊', '/exam-workshop', 'exam-workshop']
|