CreateFacultyMember
deleteAllVisibleCookies
comment Add a Faculty member named Jane Faculty
open /vivo/
assertTitle VIVO
comment Must be logged off to start
clickAndWait link=Log in
assertTitle Log in to VIVO
comment Must login as the site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
verifyTextPresent Data Input
select VClassURI label=Faculty Member (core)
clickAndWait //input[@value='Add individual of this class']
comment Validate adding individual
clickAndWait link=Cancel
assertTitle VIVO Site Administration
clickAndWait //input[@value='Add individual of this class']
assertTitle Edit
clickAndWait submit
assertTitle Edit
verifyTextPresent This field must not be empty.
type firstName Jane
type lastName
clickAndWait submit
assertTitle Edit
verifyTextPresent This field must not be empty.
type firstName
type lastName Faculty
clickAndWait submit
assertTitle Edit
verifyTextPresent This field must not be empty.
comment Add Jane Faculty
type firstName Jane
type lastName Faculty
clickAndWait submit
assertTitle Faculty, Jane
comment Make Jane Faculty an Assistant Professor
clickAndWait link=edit this individual
assertTitle Individual Control Panel
clickAndWait //input[@value='Edit This Individual']
assertTitle Individual Editing Form
type MonikerSelectAlt Assistant Professor
clickAndWait primaryAction
assertTitle Individual Control Panel
comment Verify that Jane Faculty was created
verifyTextPresent Faculty, Jane
verifyTextPresent Assistant Professor
comment Browse for new faculty member
clickAndWait link=Index
assertTitle Index to VIVO Contents
verifyElementPresent link=Faculty Member
verifyTextPresent Faculty Member (1)
verifyElementPresent link=Person
verifyTextPresent Person (1)
clickAndWait link=Faculty Member
assertTitle Faculty Member
verifyElementPresent link=Faculty, Jane
verifyTextPresent Faculty, Jane Assistant Professor
comment Search for new faculty member
type querytext faculty
clickAndWait //input[@value='Search']
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
assertTitle faculty - VIVO Search Results
verifyTextPresent Search results for 'faculty'
verifyElementPresent link=Faculty, Jane
verifyTextPresent Faculty, Jane | Assistant Professor
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO