feat: integrate native BPM task processing and strict Excel test rules
This commit is contained in:
commit
8cb6a32876
444 files changed
+17045
-3182
No files matched your search
@@ -33,7 +33,7 @@ test('DataProvider generates only GetFormProcessData PID XML with redirects disa
|
||||
const calls=[];const tables=await loadData({post:async(url,options)=>{calls.push({url,options});return reply(200,{success:true,Tables:formTables});}},new URL(finalURL));
|
||||
assert.equal(tables.length,2);assert.equal(calls[0].url,origin+'/YZSoft/BPM/XMLService/DataProvider.ashx');assert.equal(calls[0].options.data,'<?xml version="1.0"?><Requests><Params><Method>GetFormProcessData</Method><PID>2001</PID></Params></Requests>');assert.equal(calls[0].options.maxRedirects,0);
|
||||
await assert.rejects(()=>loadData({post:async()=>{throw Error('must not call');}},new URL(finalURL.replace('pid=2001','pid=bad'))));
|
||||
await assert.rejects(()=>loadData({post:async()=>reply(302,'','https://evil.example/')},new URL(finalURL)),error=>error.status===401);
|
||||
await assert.rejects(()=>loadData({post:async()=>reply(302,'','https://evil.example/')},new URL(finalURL)),error=>error.status===502);
|
||||
await assert.rejects(()=>loadData({post:async()=>reply(200,{success:true,Tables:[{TableName:'X',FormTable:true,Rows:[null]}]})},new URL(finalURL)));
|
||||
await assert.rejects(()=>loadData({post:async()=>{throw Error('must not call');}},new URL(finalURL+'&method=Approve')));
|
||||
await assert.rejects(()=>loadData({post:async()=>reply(200,{success:true,Tables:[]})},new URL(processURL)));
|
||||
|
||||
Reference in new issue
Block a user