feat(patient): implement doctor-only patient deletion, alert theme styling, and test auto-cleanup
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user