Browse Source

test: 增加接口日志测试

xyh 2 years ago
parent
commit
6c6ad4b7cf

File diff suppressed because it is too large
+ 55 - 0
cypress/e2e/gsInterfaceLog.cy.ts


+ 1 - 3
packages/app/src/pages/gs-interface-log/filter/index.tsx

@@ -17,7 +17,6 @@ import {
 } from '@components';
 
 const interfaceOptions = [
-  {label: '全部', value: ''},
   {label: '质检信息', value: '质检信息'},
   {label: '字典信息', value: '字典信息'},
   {label: '采购信息', value: '采购信息'},
@@ -31,7 +30,6 @@ const interfaceOptions = [
 ];
 
 const interfaceTypeOptions = [
-  {label: '全部', value: ''},
   {label: '接入', value: '0'},
   {label: '接出', value: '1'},
 ];
@@ -60,7 +58,7 @@ const Filter: FC = function () {
 
   return (
     <Card>
-      <FilterFieldWrapper onSearch={onSearch}>
+      <FilterFieldWrapper onSearch={onSearch} testId='gs_interface_log_filter'>
         <FilterSelect
           label='接口名称'
           options={interfaceOptions}

+ 1 - 0
packages/app/src/pages/gs-interface-log/table/index.tsx

@@ -76,6 +76,7 @@ const TableList: FC = function () {
         count={count}
         pageContext={pageContext}
         searchContext={searchContext}
+        data-testid='gs_interface_log_table'
       />
     </Card>
   );