From 01321c3c266d8065bf4423ccff7d936f74b7d5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E7=88=B1=E6=97=A0=E7=97=95?= Date: Wed, 31 Aug 2022 11:22:07 +0800 Subject: [PATCH] Fix issue --- ui/src/utils/testing.ts | 2 +- ui/src/views/script/service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/utils/testing.ts b/ui/src/utils/testing.ts index bf67ade7..8f122bb8 100644 --- a/ui/src/utils/testing.ts +++ b/ui/src/utils/testing.ts @@ -58,7 +58,7 @@ export const testToolMap = { cppunit: 'CppUnit', gtest: 'GTest', qtest: 'QTest', - goTest: 'GoTest', + gotest: 'GoTest', allure: 'Allure', robotframework: 'RobotFramework', diff --git a/ui/src/views/script/service.ts b/ui/src/views/script/service.ts index 0d1af65a..7654d06d 100644 --- a/ui/src/views/script/service.ts +++ b/ui/src/views/script/service.ts @@ -246,7 +246,7 @@ export function scriptTreeAddAttr(treeData) { { hint: 'create_file', icon: 'file-add', key: 'createFile'}, ]; if(item.workspaceType != 'ztf'){ - item.toolbarItems.push({hint: testToolMap[item.workspaceType], icon: 'play', hintI18n: 'test', key: 'runTest'}) + item.toolbarItems.push({hint: testToolMap[item.workspaceType] == undefined ? "" : testToolMap[item.workspaceType], icon: 'play', hintI18n: 'test', key: 'runTest'}) } } -- GitLab