1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import {
- beforeSetup,
- exportIntercept,
- generateNetworkResult,
- intercept,
- intoMenu,
- successIntercept,
- tableBtnClick,
- validateExport,
- validateMessageContent,
- validateTableList,
- validateTableSearch,
- } from './utils';
- const basicData = {
- dataVal: '{"SourceBillDate"}',
- errorInfo: '出库数量大于要货申请行可出库总数量!',
- scrq: '2023-04-13 15:38:02',
- transmissionType: 1,
- id: 247,
- type: '其它入库',
- url: 'http://42.159.85.29:52480/cwbase/sg/V1/ERP/TELD/DEVTEST/API_WMS_PurInStock/CreateMakeUpOtherOutStock',
- };
- describe('gs错误日志', function() {
- beforeEach(function() {
- beforeSetup();
- intoMenu('系统日志', 'GS错误日志');
- });
- beforeEach(function() {
- intercept('/queryList/getErrorList', function({reply, search}) {
- generateNetworkResult({search, reply, basicData, title: 'url'});
- });
- exportIntercept('/queryList/getErrorExcel');
- successIntercept('/gsPlugOut/anew');
- });
- it('table', function() {
- validateTableList('error_log_table');
- validateTableSearch(
- 'error_log_table',
- [
- 'url',
- 'errorInfo',
- 'dataVal',
- {id: 'date', type: 'date', enableTime: true},
- 'type',
- ],
- {
- toolId: 'error_log_filter',
- url: '/queryList/getErrorList',
- },
- );
- });
- it('operation', function() {
- validateExport('error_log_table');
- // 重试
- tableBtnClick('error_log_table', 0);
- validateMessageContent('已重试');
- });
- });
|