commit13
This commit is contained in:
@@ -309,9 +309,18 @@ test('triage reuses the submitted profile after the deadline without rewriting t
|
||||
$this->get('/pessoas')->assertInertia(fn (Assert $p) => $p->where('workdesk.tasks.0.action', 'triage'));
|
||||
$body = electronicTriagePayload($this);
|
||||
$url = '/pessoas/'.$this->process->id.'/recebidas/'.$submission->id.'/triagem';
|
||||
$this->get('/pessoas/relatorios?view=applications')->assertInertia(fn (Assert $p) => $p
|
||||
->where('applicationMetrics.'.$this->process->id.'.portal_received', 1)
|
||||
->where('applicationMetrics.'.$this->process->id.'.portal_pending', 1)
|
||||
->where('applicationMetrics.'.$this->process->id.'.registered', 0));
|
||||
$this->postJson($url, $body)->assertRedirect();
|
||||
$this->postJson($url, $body)->assertRedirect();
|
||||
$application = DB::table('people_applications')->sole();
|
||||
$this->get('/pessoas/relatorios?view=applications')->assertInertia(fn (Assert $p) => $p
|
||||
->where('applicationMetrics.'.$this->process->id.'.registered', 1)
|
||||
->where('applicationMetrics.'.$this->process->id.'.portal_received', 1)
|
||||
->where('applicationMetrics.'.$this->process->id.'.portal_accepted', 1)
|
||||
->where('applicationMetrics.'.$this->process->id.'.portal_pending', 0));
|
||||
expect($application->name)->toBe('Pessoa fictícia')->and($application->reference)->toBe($submission->reference)->and($application->created_by)->toBe($this->admin->id)
|
||||
->and(DB::table('candidate_submissions')->sole()->snapshot)->toBe($snapshot)->and(DB::table('candidate_triage')->count())->toBe(1);
|
||||
$this->postJson('/pessoas/'.$this->process->id.'/close', $close)->assertRedirect();
|
||||
|
||||
Reference in New Issue
Block a user