'Synthetic receipt', 'fields' => [
'branch' => ['label' => 'Synthetic branch', 'type' => 'select', 'options' => ['no' => 'No', 'yes' => 'Yes']],
'detail' => ['label' => 'Synthetic preserved detail', 'type' => 'text', 'when' => ['field' => 'branch', 'equals' => 'yes']],
]];
$payload = ['branch' => 'no', 'detail' => ''];
$record = (object) ['id' => 'synthetic-id', 'protocol' => 'SYNTHETIC-QA', 'submitted_at' => '2026-11-02 10:00:00', 'version' => 2];
$html = view('desk.receipt', ['record' => $record, 'snapshot' => ['payload' => $payload], 'definition' => $definition])->render();
[$active, $preserved] = explode('Respostas conservadas de perguntas não aplicáveis', $html, 2);
$this->assertStringNotContainsString('Synthetic preserved detail', $active);
$this->assertStringContainsString('Synthetic preserved detail', $preserved);
$this->assertStringContainsString('<script>', $preserved);
$this->assertStringNotContainsString('