Browse Source

test: 增加产成品出库修改连番号测试

xyh 2 years ago
parent
commit
df97ef0094
1 changed files with 14 additions and 1 deletions
  1. 14 1
      cypress/e2e/productOutStream.cy.ts

+ 14 - 1
cypress/e2e/productOutStream.cy.ts

@@ -5,7 +5,9 @@ import {
   intercept,
   intoMenu,
   selectAllFilters,
+  successIntercept,
   validateExport,
+  validatePut,
   validateTableList,
   validateTableSearch,
 } from './utils';
@@ -41,7 +43,6 @@ const basicData = {
   uniqueCode: null,
   storageLocationCode: null,
   supplierId: null,
-  serial: null,
   type: null,
   userId: '3',
   scrq: '2022-10-09',
@@ -71,6 +72,7 @@ const basicData = {
   requestTypeName: null,
   ifCommodity: null,
   amount: null,
+  serial: '666129660',
 };
 
 describe('销售发货明细', function () {
@@ -85,6 +87,7 @@ describe('销售发货明细', function () {
     });
 
     exportIntercept('/askGoods/getRemovalHalfExcel');
+    successIntercept('/askGoods/getRemovalHalfUpdSerial');
   });
 
   it('table', function () {
@@ -111,4 +114,14 @@ describe('销售发货明细', function () {
     );
     validateExport('product_out_stream_table');
   });
+
+  it('edit serial', function () {
+    const {validateEdit} = validatePut(
+      'product_out_stream_modal',
+      'product_out_stream_table',
+      {label: '发货明细'},
+    );
+
+    validateEdit([{id: 'serial', type: 'field', value: basicData['serial']}]);
+  });
 });