diff --git a/scripts/support-chat/verify-stage.cjs b/scripts/support-chat/verify-stage.cjs index 0ca2a5fd..48c71d8a 100644 --- a/scripts/support-chat/verify-stage.cjs +++ b/scripts/support-chat/verify-stage.cjs @@ -21,6 +21,7 @@ async function check(name, body, expected, token, test=()=>true){ for(const field of ['userId','history','context','sessionId'])await check('reject '+field,{message:'سلام',[field]:ids[1]},400); await Promise.all(ids.map((id,i)=>check('wallet isolation '+i,{message:'کیف پول',scope:'wallet'},201,jwt.sign({sub:id}),d=>d.answer.includes(i?'222':'111')&&!d.answer.includes(i?'111':'222')))); await check('guest public real model',{message:'مکمل سگ کنینا'},201,null,d=>typeof d.answer==='string'&&!/provider|hermes|api.key/i.test(d.answer)); + await new Promise(resolve=>setTimeout(resolve,61000)); await check('football denied',{message:'فوتبال سگ'},201,null,d=>d.answer.includes('فقط درباره')); await check('URL denied',{message:'مکمل سگ https://example.com'},201,null,d=>d.answer.includes('پیوند')); console.log('LIVE_STAGE_CHECKS_PASSED',count);