fix(UI 自动化): 测试计划列表只要有UI测试就弹出配置框(细节问题修复1)

--story=1007518 --user=张大海 【UI测试】支持加入到测试计划中 https://www.tapd.cn/55049933/s/1202992
This commit is contained in:
zhangdahai112 2022-07-18 16:21:17 +08:00 committed by jianxing
parent 54784f6dfe
commit 4cece1354c
2 changed files with 6 additions and 6 deletions

View File

@ -771,9 +771,9 @@ export default {
this.currentPlanId = row.id;
this.$get("/test/plan/have/exec/case/" + row.id, async res => {
const haveExecCase = res.data;
if (haveExecCase) {
let r = await this.haveUIScenario();
this.haveUICase = r.data.data;
let r = await this.haveUIScenario();
this.haveUICase = r.data.data;
if (haveExecCase || this.haveUICase) {
this.$refs.runMode.open('API');
} else {
this.$router.push('/track/plan/view/' + row.id);

View File

@ -139,9 +139,9 @@ export let CUSTOM_TABLE_HEADER = {
{id: 'testPlanTestCaseCount', key: 'g', label: 'test_track.plan.test_plan_test_case_count'},
{id: 'testPlanApiCaseCount', key: 'h', label: 'test_track.plan.test_plan_api_case_count'},
{id: 'testPlanApiScenarioCount', key: 'i', label: 'test_track.plan.test_plan_api_scenario_count'},
{id: 'testPlanUiScenarioCount', key: 'i', label: 'test_track.plan.test_plan_ui_scenario_count'},
{id: 'testPlanLoadCaseCount', key: 'j', label: 'test_track.plan.test_plan_load_case_count'},
{id: 'principalName', key: 'k', label: 'test_track.plan.plan_principal'},
{id: 'testPlanUiScenarioCount', key: 'j', label: 'test_track.plan.test_plan_ui_scenario_count'},
{id: 'testPlanLoadCaseCount', key: 'k', label: 'test_track.plan.test_plan_load_case_count'},
{id: 'principalName', key: 'l', label: 'test_track.plan.plan_principal'},
],
//测试计划-功能用例
TEST_PLAN_FUNCTION_TEST_CASE: [