Location Tests
open /login?uid=willbarber  
assertTextPresent Welcome to NetDB  
assertTextPresent William Barbera  
clickAndWait Manage_Location_Link  
assertTextPresent Manage Locations  
clickAndWait Button_Add  
assertTextPresent Create new location.  
type TextField_Location The Location
type TextField_Site the site
type TextField_Code 1234a
clickAndWait Button_Create_Or_Modify  
assertTextPresent Manage Locations  
verifyTextPresent SUCCESS: Location has been created  
clickAndWait Button_Add  
assertTextPresent Create new location.  
type TextField_Location The Location
type TextField_Site the site
type TextField_Code 1234a
clickAndWait Button_Create_Or_Modify  
assertTextPresent Create new location.  
verifyTextPresent ERROR: The Location "The Location" already exists.  
clickAndWait Button_Cancel  
assertTextPresent Manage Locations  
select Selector_Locations The Location (the site-1234a)
clickAndWait Button_Modify  
assertTextPresent Modify an existing location.  
type TextField_Location The New Location
type TextField_Site the new site
type TextField_Code 5678b
clickAndWait Button_Create_Or_Modify  
assertTextPresent Manage Locations  
verifyTextPresent SUCCESS: Location has been modified.  
select Selector_Locations The New Location (the new site-5678b)
clickAndWait Button_Delete  
assertTextPresent Manage Locations  
verifyTextPresent SUCCESS: Location 'The New Location' has been deleted