Pembaruan halaman Operator dan Mahasiswa

This commit is contained in:
Ariyutta
2026-11-09 10:14:07 +07:00
parent 6ada051b63
commit 33bc1233f7
39 changed files with 3806 additions and 76 deletions
@@ -71,9 +71,9 @@ class LegacyEmployeeListTest extends TestCase
$this->assertSame(['', 'NIP', 'Nama', 'L/P', 'NIDN', 'NUPTK', 'No. Telp.', 'Email', 'Status', 'Aksi'], $legacy['headers']);
$this->assertSame(['Kuota Pembimbing Akademik', 'Status Aktif', 'Status'], $legacy['filters']);
$this->assertSame(['Aksi', 'Cetak'], $legacy['tools']);
$this->assertSame(['Cetak'], $legacy['tools']);
$this->assertSame(['Lihat', 'Ubah', 'Hapus'], $legacy['row_actions']);
$this->assertSame(0, $this->dom($response)->query('//main//form')->length, 'Filter tidak memakai formulir (alamat tetap).');
$this->assertSame(0, $this->dom($response)->query('//main//form[not(ancestor::dialog)]')->length, 'Filter tidak memakai formulir (alamat tetap).');
$this->assertSame(1, $this->dom($response)->query("//a[@aria-current='page' and contains(@href, '/list_pegawai')]")->length);
// Prototipe akun demo: susunan yang sama persis.
@@ -81,7 +81,9 @@ class LegacyEmployeeListTest extends TestCase
config(['auth.guards.web.provider' => 'users']);
Auth::forgetGuards();
$prototype = $this->actingAs(User::factory()->operator()->create())->get(route('operator.halaman', 'list_pegawai'))->assertOk();
$this->assertSame($this->layout($this->dom($prototype)), $legacy);
$expected = $this->layout($this->dom($prototype));
$expected['tools'] = array_values(array_diff($expected['tools'], ['Aksi'])); // tombol Aksi tanpa fungsi disembunyikan di akun asli
$this->assertSame($expected, $legacy);
}
public function test_data_lists_employees_of_the_operators_units(): void