@@ -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('<script>', 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('<script>', 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);
|
||||
|
||||
Reference in New Issue
Block a user