浏览代码

test: 优化测试程序

xyh 2 年之前
父节点
当前提交
1faec9e315
共有 2 个文件被更改,包括 6 次插入8 次删除
  1. 5 8
      cypress/e2e/error.cy.ts
  2. 1 0
      cypress/e2e/manager.cy.ts

+ 5 - 8
cypress/e2e/error.cy.ts

@@ -38,6 +38,11 @@ describe('gs错误日志', function () {
   });
 
   it('table', function () {
+    validateExport('error_log_table');
+    // 重试
+    tableBtnClick('error_log_table', 0);
+
+    validateMessageContent('已重试');
     validateTableList('error_log_table');
     validateTableSearch(
       'error_log_table',
@@ -54,12 +59,4 @@ describe('gs错误日志', function () {
       },
     );
   });
-
-  it('operation', function () {
-    validateExport('error_log_table');
-
-    // 重试
-    tableBtnClick('error_log_table', 0);
-    validateMessageContent('已重试');
-  });
 });

+ 1 - 0
cypress/e2e/manager.cy.ts

@@ -39,6 +39,7 @@ const basicData = {
   page: 0,
   limit: 0,
   menu: '78,93,88,79,',
+  menuBefore: '78,93,88,79,',
 };
 
 const TABLE_NAME = 'user_table',