|
|
@@ -15,6 +15,12 @@ test('questionnaire reports expose evaluation editing for generated team reports
|
|
|
expect(source).toContain('评估分析正在进行中')
|
|
|
})
|
|
|
|
|
|
+test('questionnaire reports treat string failed state as a failed report', () => {
|
|
|
+ const source = fs.readFileSync(pagePath, 'utf8')
|
|
|
+
|
|
|
+ expect(source).toContain("String(scope.row.state) === '-1'")
|
|
|
+})
|
|
|
+
|
|
|
test('report API exposes evaluation read and submit methods', () => {
|
|
|
const source = fs.readFileSync(apiPath, 'utf8')
|
|
|
|