feat(qma): default start_date and end_date to today on activity log

This commit is contained in:
Wahyudin
2026-10-13 22:09:52 +07:00
parent 28a867581a
commit c9907e1866
3 changed files with 26 additions and 8 deletions
+10
View File
@@ -203,6 +203,16 @@ class VehicleActivityTest extends TestCase
$responseFiltered->assertSee('<span>Reset Filter</span>', false);
}
public function test_qma_log_defaults_date_filter_to_today(): void
{
$qmaAdmin = User::where('role', 'qma_admin')->first();
$today = Carbon::today()->toDateString();
$response = $this->actingAs($qmaAdmin)->get('/qma/activity-log');
$response->assertStatus(200);
$response->assertSee('value="' . $today . '"', false);
}
public function test_admin_pg_can_store_security_guard_and_creates_login_account(): void
{
$adminPg = User::where('role', 'pg_admin')->first();