fix(接口测试): 报告过滤步骤请求调整
This commit is contained in:
parent
73425897df
commit
8af1f09a20
|
@ -109,11 +109,15 @@
|
||||||
(item.status && item.status === stepTypeStatus && stepTypeStatus !== 'scriptIdentifier') ||
|
(item.status && item.status === stepTypeStatus && stepTypeStatus !== 'scriptIdentifier') ||
|
||||||
(stepTypeStatus.includes('scriptIdentifier') && item.scriptIdentifier)
|
(stepTypeStatus.includes('scriptIdentifier') && item.scriptIdentifier)
|
||||||
) {
|
) {
|
||||||
|
let tempArray: ScenarioItemType[] = [];
|
||||||
|
if (!isStepChildren && item.children && item.children.length) {
|
||||||
|
tempArray = search(item.children);
|
||||||
|
}
|
||||||
const resItem = {
|
const resItem = {
|
||||||
...item,
|
...item,
|
||||||
expanded: false,
|
expanded: false,
|
||||||
stepChildren: isStepChildren ? cloneDeep(item.children) : [],
|
stepChildren: isStepChildren ? cloneDeep(item.children) : [],
|
||||||
children: isStepChildren ? [] : item.children,
|
children: tempArray,
|
||||||
};
|
};
|
||||||
result.push(resItem);
|
result.push(resItem);
|
||||||
} else if (item.children && splitLevel[0] === ScenarioStepType.CUSTOM_REQUEST) {
|
} else if (item.children && splitLevel[0] === ScenarioStepType.CUSTOM_REQUEST) {
|
||||||
|
|
Loading…
Reference in New Issue