Tornar a suite de testes portável e alinhada com o código

- sgfTempoPath(): substitui caminhos C:/laragon fixos (SGF_TEMPO_ROOT, por
  omissão a pasta irmã sgf-tempo, igual ao Laragon).
- skipUnlessIsolatedPostgres(): testes que exigem a base QA PostgreSQL isolada
  passam a ser ignorados com motivo em SQLite em vez de rebentar.
- Artefacto de distribuição orçamental gerado localmente: ignorado se ausente.
- Páginas públicas /consulta e /proposta: testes alinhados com os
  redireccionamentos para os módulos reais (decisão de 29/11).
- Impressão da ordem: texto do aviso orçamental actualizado.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 23:01:36 +02:00
co-authored by Claude Opus 5.5
parent 7615accf07
commit 8e1e8799a5
16 changed files with 1062 additions and 299 deletions
+3 -2
View File
@@ -136,7 +136,8 @@ test('an administrator losing eligibility before publication blocks the second s
expect($policy->refresh()->status)->toBe('pending');
});
test('public investment example contains no company policies', function () {
test('former public investment example redirects to the authenticated policies module', function () {
auth()->forgetGuards();
$this->get('/consulta/investimento')->assertOk()->assertInertia(fn ($page) => $page->where('initialScreen', 'investment')->where('auth.user', null)->missing('policies')->missing('reviews'));
$this->get('/consulta/investimento')->assertRedirect('/regras-investimento');
$this->get('/regras-investimento')->assertRedirect('/login');
});