commit9
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-30 20:02:30 +02:00
parent 6d14b4e6f0
commit c6373365bf
225 changed files with 15365 additions and 285 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ test('report and history are restricted read only preserve old basis and escape
$next = recommendationAttempt($this, ['previous_id' => $attempt->id]);
$before = AuditLog::query()->count();
$this->get($this->url)->assertOk()->assertHeader('Cache-Control', 'max-age=0, no-store, private')->assertInertia(fn (Assert $p) => $p->component('purchases/recommendation')->where('history.data.0.id', $next->id)->where('history.data.1.status', 'returned')->where('basis.ready', true));
$this->get('/recomendacoes/'.$next->id.'/imprimir')->assertOk()->assertHeader('Cache-Control', 'max-age=0, no-store, private')->assertSee('Sistema de Gestão de Compras (SGC)')->assertSee('Histórico desta adopção')->assertSee('&lt;script&gt;', false)->assertDontSee('<script>alert', false);
$this->get('/recomendacoes/'.$next->id.'/imprimir')->assertOk()->assertHeader('Cache-Control', 'max-age=0, no-store, private')->assertSee('Sistema de Gestão de Contratações (SGC)')->assertSee('Histórico desta adopção')->assertSee('&lt;script&gt;', false)->assertDontSee('<script>alert', false);
$this->f['quotes'][0]->update(['reference' => 'Referência actual diferente']);
$this->get('/recomendacoes/'.$attempt->id.'/imprimir')->assertOk()->assertSee('Histórica ou base desactualizada')->assertSee('PROP-TEST')->assertDontSee('Referência actual diferente');
expect(AuditLog::query()->count())->toBe($before);