@@ -878,11 +878,19 @@ public void testDeathNecropsyForm() throws IOException, CommandException
878878 scrollIntoView (Locator .linkContainingText ("More Actions" ));
879879 _ext4Helper .selectComboBoxItem ("Physical Condition:" , "Excellent" );
880880 _ext4Helper .selectComboBoxItem ("Condition of Specimen:" , "Fresh" );
881- _helper .getExt4FieldForFormSection ("Necropsy" , "Accession Number" ).setValue ("123" );
881+ Ext4FieldRef accessionNumber = _helper .getExt4FieldForFormSection ("Necropsy" , "Accession Number" );
882+ accessionNumber .setValue ("123" );
883+ waitFor (() -> "123" .equals (accessionNumber .getValue ()), WAIT_FOR_JAVASCRIPT );
882884 scrollIntoView (Locator .name ("diagnosis" ));
883- _helper .setDataEntryField ("identification" , "Extra information" );
884- _helper .setDataEntryField ("grossAbnormalities" , "Extra leg" );
885- _helper .setDataEntryField ("diagnosis" , "Dead" );
885+ Ext4FieldRef identification = _helper .getExt4FieldForFormSection ("Necropsy" , "Name/State/License no. (quarantine only)" );
886+ identification .setValue ("Extra information" );
887+ waitFor (() -> "Extra information" .equals (identification .getValue ()), WAIT_FOR_JAVASCRIPT );
888+ Ext4FieldRef grossAbnormalities = _helper .getExt4FieldForFormSection ("Necropsy" , "Gross Abnormalities" );
889+ grossAbnormalities .setValue ("Extra leg" );
890+ waitFor (() -> "Extra leg" .equals (grossAbnormalities .getValue ()), WAIT_FOR_JAVASCRIPT );
891+ Ext4FieldRef diagnosis = _helper .getExt4FieldForFormSection ("Necropsy" , "Diagnosis" );
892+ diagnosis .setValue ("Dead" );
893+ waitFor (() -> "Dead" .equals (diagnosis .getValue ()), WAIT_FOR_JAVASCRIPT );
886894 _ext4Helper .selectComboBoxItem ("Performed By:" , NIRC_BASIC_SUBMITTER_NAME );
887895
888896 log ("Entering Tissue Disposition" );
0 commit comments