Fermo linea e Fine produzione anche sui task check del ciclo (#53)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VNVrf2wZAmMAkgmwEuBB36
This commit is contained in:
2026-10-07 12:47:00 +02:00
parent 627ae15591
commit 736b853e22
2 changed files with 3 additions and 3 deletions
@@ -118,8 +118,8 @@
{# #60: un solo «Completato», quello grande in fondo (touch); qui resta solo la lista. #} {# #60: un solo «Completato», quello grande in fondo (touch); qui resta solo la lista. #}
</div> </div>
{# Fermo linea + Fine produzione (measurement tasks only) #} {# Fermo linea + Fine produzione: task di misura o del ciclo (#53: anche un check nel loop) #}
<template x-if="isMeasureTask && productionRun"> <template x-if="(isMeasureTask || isMeasurementTaskOfRun) && productionRun">
{# #61: Fermo linea / Fine produzione solo con una produzione aperta #} {# #61: Fermo linea / Fine produzione solo con una produzione aperta #}
<div class="shrink-0 flex items-center gap-1.5"> <div class="shrink-0 flex items-center gap-1.5">
{# While the line is stopped this becomes the way to restart it, so the {# While the line is stopped this becomes the way to restart it, so the
@@ -179,7 +179,7 @@ def test_no_open_run_means_no_fermo_linea_and_no_fake_timer(
"""#61: senza produzione aperta i pulsanti non si vedono, la modale non si """#61: senza produzione aperta i pulsanti non si vedono, la modale non si
apre e un rifiuto del server non avvia un timer locale finto.""" apre e un rifiuto del server non avvia un timer locale finto."""
html = _execute_page(logged_in_client, mock_api_client, monkeypatch) html = _execute_page(logged_in_client, mock_api_client, monkeypatch)
assert 'x-if="isMeasureTask && productionRun"' in html assert 'x-if="(isMeasureTask || isMeasurementTaskOfRun) && productionRun"' in html # #53: anche i task del ciclo
assert "!this.productionRun" in html assert "!this.productionRun" in html
# #61: loadProductionRun mostra il detail del server, non solo il messaggio generico # #61: loadProductionRun mostra il detail del server, non solo il messaggio generico
assert "errBody.detail" in html assert "errBody.detail" in html