@@ -324,6 +324,7 @@ private void loadEHRBillingExtensibleCols()
324324 log ("Setup the EHR Billing table definitions" );
325325 EHRAdminPage .beginAt (this ,getContainerPath ());
326326 click (Locator .linkWithText ("EHR EXTENSIBLE COLUMNS" ));
327+ _helper .fillAnInputByName ("ehrbilling_container" , "/" + EHR_FOLDER_PATH );
327328 click (Locator .linkWithText ("Load EHR_Billing table definitions" ));
328329 waitForElement (Locator .tagWithClass ("span" , "x4-window-header-text" ).withText ("Success" ));
329330 assertExt4MsgBox ("EHR_Billing tables updated successfully." , "OK" );
@@ -3271,14 +3272,6 @@ public void populateAnimalRequestTableLookups() throws IOException, CommandExcep
32713272
32723273 }
32733274
3274- public WebElement fillAnInputByName (String name , String value )
3275- {
3276- WebElement el = Locator .name (name ).findElement (getDriver ());
3277- el .click ();
3278- el .sendKeys (value );
3279- return el ;
3280- }
3281-
32823275 @ Test
32833276 public void testClinpathVirologyBulkUpload () throws IOException , CommandException
32843277 {
@@ -3385,34 +3378,34 @@ public void testAnimalRequestFormSubmit() throws IOException, CommandException
33853378 //it's a timing issue. we have to wait until the form is loaded for it to be clickable.
33863379
33873380 //this is dependent on the billing setup above which populates the investigators table
3388- fillAnInputByName ("principalinvestigator" , "Snow, Jon" );
3389- fillAnInputByName ("numberofanimals" , "23" );
3390- fillAnInputByName ("speciesneeded" , "Cyno" );
3391- fillAnInputByName ("originneeded" , "any" );
3392- fillAnInputByName ("sex" , "M" );
3393- fillAnInputByName ("age" , "10" );
3394- fillAnInputByName ("weight" , "2" );
3395- fillAnInputByName ("mhctype" , "2" );
3396- fillAnInputByName ("viralstatus" , "SPF4" );
3397- fillAnInputByName ("infectiousdisease" , "Yes" );
3398- fillAnInputByName ("majorsurgery" , "Yes" );
3399- fillAnInputByName ("pregnantanimalsrequired" , "Yes" );
3400- fillAnInputByName ("pregnantanimalsrequiredterminfant" , "Yes" );
3401- fillAnInputByName ("pregnantanimalsrequiredtermdam" , "Yes" );
3402- fillAnInputByName ("disposition" , "Terminal" );
3403- fillAnInputByName ("executivecommitteeapproval" , "Yes" );
3404- fillAnInputByName ("previousexposures" , "None" );
3405- fillAnInputByName ("optionalproject" , "TBD" );
3406- fillAnInputByName ("account" , "80085" );
3407- fillAnInputByName ("protocol" , "TBD" );
3381+ _helper . fillAnInputByName ("principalinvestigator" , "Snow, Jon" );
3382+ _helper . fillAnInputByName ("numberofanimals" , "23" );
3383+ _helper . fillAnInputByName ("speciesneeded" , "Cyno" );
3384+ _helper . fillAnInputByName ("originneeded" , "any" );
3385+ _helper . fillAnInputByName ("sex" , "M" );
3386+ _helper . fillAnInputByName ("age" , "10" );
3387+ _helper . fillAnInputByName ("weight" , "2" );
3388+ _helper . fillAnInputByName ("mhctype" , "2" );
3389+ _helper . fillAnInputByName ("viralstatus" , "SPF4" );
3390+ _helper . fillAnInputByName ("infectiousdisease" , "Yes" );
3391+ _helper . fillAnInputByName ("majorsurgery" , "Yes" );
3392+ _helper . fillAnInputByName ("pregnantanimalsrequired" , "Yes" );
3393+ _helper . fillAnInputByName ("pregnantanimalsrequiredterminfant" , "Yes" );
3394+ _helper . fillAnInputByName ("pregnantanimalsrequiredtermdam" , "Yes" );
3395+ _helper . fillAnInputByName ("disposition" , "Terminal" );
3396+ _helper . fillAnInputByName ("executivecommitteeapproval" , "Yes" );
3397+ _helper . fillAnInputByName ("previousexposures" , "None" );
3398+ _helper . fillAnInputByName ("optionalproject" , "TBD" );
3399+ _helper . fillAnInputByName ("account" , "80085" );
3400+ _helper . fillAnInputByName ("protocol" , "TBD" );
34083401 WebElement el = Locator .id ("anticipatedstartdate" ).findElement (getDriver ()).findElement (By .tagName ("input" ));
34093402 el .sendKeys (formattedDate );
34103403 el .sendKeys (Keys .TAB );
34113404 el = Locator .id ("anticipatedenddate" ).findElement (getDriver ()).findElement (By .tagName ("input" ));
34123405 el .sendKeys (formattedDate );
34133406 el .sendKeys (Keys .TAB );
3414- fillAnInputByName ("comments" , "test" );
3415- fillAnInputByName ("contacts" , "test@test.com" );
3407+ _helper . fillAnInputByName ("comments" , "test" );
3408+ _helper . fillAnInputByName ("contacts" , "test@test.com" );
34163409
34173410 clickAndWait (Locator .tagWithId ("button" ,"submit-final" ));
34183411 assertTextPresent ("Data Entry" );
@@ -3461,7 +3454,7 @@ public void updateProgramIncomeAccountWithInvalidPermissions() throws UnhandledA
34613454
34623455 //Attempts to change the value.
34633456 //Assumes an error is presented and the test is complete.
3464- fillAnInputByName ("newCreditToAccountField" , "asdf" );
3457+ _helper . fillAnInputByName ("newCreditToAccountField" , "asdf" );
34653458 click (Locator .tagWithId ("button" ,"updateCreditToAccountButton" ));
34663459 assertAlert ("Unable to update the program income account. User does not have the correct permissions." );
34673460
@@ -3484,7 +3477,7 @@ public void updateProgramIncomeAccountWithValidPermissions() throws UnhandledAle
34843477 impersonate (BASIC_SUBMITTER .getEmail ());
34853478
34863479 //Attempts to change the value.
3487- fillAnInputByName ("newCreditToAccountField" , "testString" );
3480+ _helper . fillAnInputByName ("newCreditToAccountField" , "testString" );
34883481 click (Locator .tagWithId ("button" ,"updateCreditToAccountButton" ));
34893482
34903483 //Verifies the value has been changed, then continues. If value has not been changed, the test fails here.
0 commit comments