test('Admin user can login with valid credentials', function () { $user = createUser('Admin'); $response = $this->post('admin/login', [ 'email' => $user->email, 'password' => 'password', ]); $response->assertRedirect(route('filament.admin.pages.dashboard')); $this->assertAuthenticatedAs($user);});