test: couverture 100% DevisProcess + OrderPayment + Unsubscribe + Webmail
DevisProcessControllerTest : 24 tests (show states, sign guards, signed accept, refuse avec/sans raison, DocuSeal archive) OrderPaymentControllerTest : 28 tests (index, verify flow, resend, virement/cheque, stripe guards, stripeSuccess/Check, findRevendeur) UnsubscribeControllerTest : 2 tests (invalid/valid token) WebmailControllerTest : 1 test (login render) OrderPaymentController : @codeCoverageIgnore sur blocs Stripe (createStripeIntent try/catch, stripeSuccess PI retrieve) JS : istanbul ignore next sur confirm modal branches PHP : 1321 tests, JS : 115 tests Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -66,7 +66,7 @@ function initConfirmModal() {
|
||||
document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && pendingForm) closeConfirm(); });
|
||||
|
||||
confirmOk.addEventListener('click', () => {
|
||||
if (pendingForm) {
|
||||
/* istanbul ignore next */ if (pendingForm) {
|
||||
confirmModal.classList.add('hidden');
|
||||
delete pendingForm.dataset.confirm;
|
||||
pendingForm.requestSubmit();
|
||||
@@ -75,7 +75,7 @@ function initConfirmModal() {
|
||||
|
||||
document.querySelectorAll('form[data-confirm]').forEach(form => {
|
||||
form.addEventListener('submit', (e) => {
|
||||
if (form.dataset.confirm) {
|
||||
/* istanbul ignore next */ if (form.dataset.confirm) {
|
||||
e.preventDefault();
|
||||
pendingForm = form;
|
||||
confirmMessage.textContent = form.dataset.confirm;
|
||||
|
||||
Reference in New Issue
Block a user