feat(patient): implement doctor-only patient deletion, alert theme styling, and test auto-cleanup

This commit is contained in:
=
2026-09-22 13:41:14 -04:00
parent 73b69722a0
commit 654a7f402d
10 changed files with 616 additions and 16 deletions
+4 -2
View File
@@ -127,9 +127,10 @@ void main() {
expect(find.text('Ficha de Recepción'), findsOneWidget);
expect(find.text('Recepción, datos personales y programación de citas'), findsOneWidget);
// Confidential clinical documents and clinical tabs MUST NOT exist
// Confidential clinical documents, clinical tabs and delete button MUST NOT exist
expect(find.byType(ClinicalDocumentsDropdown), findsNothing);
expect(find.byType(PatientClinicalTabs), findsNothing);
expect(find.text('Eliminar'), findsNothing);
// Secretary appointment section MUST exist
expect(find.byType(SecretaryAppointmentSection), findsOneWidget);
@@ -160,9 +161,10 @@ void main() {
// Verify title reflects doctor editing
expect(find.text('Editar Paciente'), findsOneWidget);
// Doctor gets clinical documents dropdown and clinical tabs
// Doctor gets clinical documents dropdown, clinical tabs and delete button
expect(find.byType(ClinicalDocumentsDropdown), findsOneWidget);
expect(find.byType(PatientClinicalTabs), findsOneWidget);
expect(find.text('Eliminar'), findsOneWidget);
expect(find.byType(SecretaryAppointmentSection), findsNothing);
});
});