diff --git a/tests/Feature/CareMarAndNursingTest.php b/tests/Feature/CareMarAndNursingTest.php index 0eda451..55634ee 100644 --- a/tests/Feature/CareMarAndNursingTest.php +++ b/tests/Feature/CareMarAndNursingTest.php @@ -202,7 +202,7 @@ class CareMarAndNursingTest extends TestCase 'shift_code' => 'day', 'body' => 'Vitals stable; pain controlled.', ]) - ->assertRedirect(route('care.care-units.notes', $this->unit)); + ->assertRedirect(route('care.care-units.notes', [$this->unit, 'visit' => $this->visit->id])); $this->assertDatabaseHas('care_nursing_notes', [ 'visit_id' => $this->visit->id, @@ -233,6 +233,11 @@ class CareMarAndNursingTest extends TestCase ->assertOk() ->assertSee('Vitals stable'); + $this->actingAs($this->owner) + ->get(route('care.care-units.notes', [$this->unit, 'visit' => $this->visit->id])) + ->assertOk() + ->assertSee('value="'.$this->visit->id.'" selected', false); + $this->actingAs($this->owner) ->get(route('care.care-units.handovers', $this->unit)) ->assertOk()