State Tests
open /login?uid=willbarber  
assertTextPresent Welcome to NetDB  
clickAndWait Manage_State_Link  
assertTextPresent Manage States  
clickAndWait Button_Add  
assertTextPresent Create new State.  
type TextField_Name The State
type TextField_Rank 1
clickAndWait Button_Create_Or_Modify  
assertTextPresent Manage States  
verifyTextPresent SUCCESS: State has been created  
clickAndWait Button_Add  
assertTextPresent Create new State.  
type TextField_Name THE State
type TextField_Rank 1
clickAndWait Button_Create_Or_Modify  
assertTextPresent Create State  
verifyTextPresent Error: The State "THE State" already exists.  
clickAndWait Button_Cancel  
assertTextPresent Manage States  
select Selector_States The State
clickAndWait Button_Modify  
assertTextPresent Modify an existing State.  
type TextField_Name The New State
clickAndWait Button_Create_Or_Modify  
assertTextPresent Manage States  
verifyTextPresent SUCCESS: State has been modified.  
select Selector_States The New State
clickAndWait Button_Delete  
assertTextPresent Manage States  
verifyTextPresent SUCCESS: State 'The New State' has been deleted  
select Selector_States Good
clickAndWait Button_Delete  
assertTextPresent Manage States  
verifyTextPresent Error: Unable to delete the State "Good" because it is still in use.