fix(qma): restrict timesheet creation to standalone menu and make activity log history view read-only with detail inspection

This commit is contained in:
Ray1111-aa
2026-10-20 21:38:45 +07:00
parent d4b919b54c
commit ed41355373
2 changed files with 223 additions and 31 deletions
+3 -1
View File
@@ -99,6 +99,7 @@ class QmaSupportTimesheetTest extends TestCase
$response->assertStatus(200);
$response->assertSee('Timesheet Unit Support');
$response->assertSee('Catat Timesheet');
$response->assertSee('TS-US-20261020-0001');
$response->assertSee('EX01');
$response->assertSee('Joko Operator');
@@ -107,7 +108,7 @@ class QmaSupportTimesheetTest extends TestCase
}
/**
* Admin QMA dapat mengakses riwayat timesheet melalui rute Log Aktifitas.
* Admin QMA dapat mengakses riwayat timesheet melalui rute Log Aktifitas (tanpa tombol penambahan).
*/
public function test_qma_admin_can_view_support_timesheet_history_via_activity_log_route(): void
{
@@ -116,6 +117,7 @@ class QmaSupportTimesheetTest extends TestCase
$response->assertStatus(200);
$response->assertSee('History Timesheet Unit Support');
$response->assertDontSee('Catat Timesheet');
}
/**