|
@@ -6,6 +6,16 @@ const source = fs.readFileSync(
|
|
|
'utf8'
|
|
'utf8'
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
+test('homepage report shortcut points to the questionnaire management entry', () => {
|
|
|
|
|
+ const homeSource = fs.readFileSync(
|
|
|
|
|
+ path.resolve(__dirname, '../../src/views/modules/home.vue'),
|
|
|
|
|
+ 'utf8'
|
|
|
|
|
+ )
|
|
|
|
|
+
|
|
|
|
|
+ expect(homeSource).toContain("toTurn('agent-questionnaire')")
|
|
|
|
|
+ expect(homeSource).not.toContain("toTurn('agent-report')")
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
test('questionnaire management exposes an inline report list action', () => {
|
|
test('questionnaire management exposes an inline report list action', () => {
|
|
|
expect(source).toContain('报告列表')
|
|
expect(source).toContain('报告列表')
|
|
|
expect(source).toContain('getTeamQuestionnaireList')
|
|
expect(source).toContain('getTeamQuestionnaireList')
|