feat: above 10 m the payment asks for the proof in a pop-up, not mandatory (Marcus, 2026-12-02)
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 8m36s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m6s
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 8m36s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m6s
The proof checkbox in the cart becomes a pop-up when the customer presses pay on an order above 10 m: "Quero aprovar uma prova" sends proof=true, "Seguir sem prova", Escape or closing goes on without one. Same text as the old box. Below 10 m nothing is asked. A cart already sent goes straight to its payment without asking again. The dialog sits outside the panels so it shows wherever pay is pressed. The automatic proof above 10 m is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -615,6 +615,24 @@ try{
|
||||
}finally{carregarPdfJs=realLoader;window.setTimeout=realTimer;temWorker=realWorker;}
|
||||
})()`);
|
||||
assert.deepEqual(timeoutCleanup,{timedOut:true,destroyed:true});
|
||||
// Proof pop-up (Marcus, 2026-12-02): only above 10 m, not mandatory; closing
|
||||
// it is going on without a proof, and the cart summary follows the answer.
|
||||
assert.deepEqual(await evaluate(`[pedidoLongo([{cob:10}]),pedidoLongo([{cob:6},{cob:4.5}])]`),[false,true]);
|
||||
assert.equal(await evaluate(`perguntaProva()`),false);
|
||||
assert.equal(await evaluate(`$('provaDlg').open`),false);
|
||||
await evaluate(`window.provaLongo=pedidoLongo; pedidoLongo=()=>true; window.provaResp=perguntaProva(); 1`);
|
||||
await waitFor(()=>evaluate(`$('provaDlg').open && document.activeElement.id==='provaSim'`),'proof pop-up opens');
|
||||
assert.equal(await evaluate(`perguntaProva()`),null);
|
||||
await click('#provaSim');
|
||||
assert.equal(await evaluate(`window.provaResp`),true);
|
||||
assert.equal(await evaluate(`querProva && $('resLin').textContent.includes('Prova antes de imprimir')`),true);
|
||||
await evaluate(`window.provaResp=perguntaProva(); 1`);
|
||||
await click('#provaNao');
|
||||
assert.equal(await evaluate(`window.provaResp`),false);
|
||||
assert.equal(await evaluate(`$('resLin').textContent.includes('Prova antes de imprimir')`),false);
|
||||
await evaluate(`window.provaResp=perguntaProva(); $('provaDlg').close(); 1`);
|
||||
assert.equal(await evaluate(`window.provaResp`),false);
|
||||
await evaluate(`pedidoLongo=window.provaLongo; 1`);
|
||||
// Inspect the supplied local artwork, when requested, using the real file input.
|
||||
if(process.env.ARTWORK_FILE){
|
||||
await click('#bVoltar');await click('[data-modo="file"]');
|
||||
@@ -629,6 +647,6 @@ try{
|
||||
console.log('Supplied image:',JSON.stringify(layout));
|
||||
}
|
||||
assert.deepEqual(errors,[]);
|
||||
console.log('PASS: PNG upload and drop, JPG refused, packed copies, 5 mm gaps, aspect ratio, live width/quantity/rotation/mirror, metres, ready-sheet pricing/repeats, residue and solid background stop the order, UV, stale renders, strict inline CSP.');
|
||||
console.log('PASS: PNG upload and drop, JPG refused, packed copies, 5 mm gaps, aspect ratio, live width/quantity/rotation/mirror, metres, ready-sheet pricing/repeats, residue and solid background stop the order, UV, proof pop-up above 10 m, stale renders, strict inline CSP.');
|
||||
}catch(error){console.error(error);if(stderr)console.error(stderr.slice(-1200));process.exitCode=1;}
|
||||
finally{ws?.close();chrome.kill();server.closeAllConnections();await new Promise(r=>server.close(r));}
|
||||
|
||||
Reference in New Issue
Block a user