ValidateFields
deleteAllVisibleCookies
comment Add Book
open /vivo/
assertTitle VIVO
comment Must not be logged in already
clickAndWait link=Log in
assertTitle VIVO Site Administration
comment Must login as site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO Site Administration
comment Navigate to Index
clickAndWait link=Index
assertTitle Index to VIVO Contents
comment Navigate to Frank Furter
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Furter, Frank
assertTitle Furter, Frank
comment Select to add a Publication
clickAndWait //div[@id='authorInAuthorship']/a
assertTitle Edit
verifyTextPresent Create a new publication entry for Furter, Frank
verifyTextPresent Publication Type
comment Cancel out before doing anything
clickAndWait link=Cancel
assertTitle Furter, Frank
comment Select to add a Publication again
clickAndWait //div[@id='authorInAuthorship']/a
assertTitle Edit
verifyTextPresent Create a new publication entry for Furter, Frank
verifyTextPresent Publication Type
comment Select to add a book chapter
select typeSelector label=Chapter
comment Cancel out before entering in title
click link=Cancel
comment Select to add an book chapter again, this time without a title
assertTitle Edit
verifyTextPresent Create a new publication entry for Furter, Frank
verifyTextPresent Publication Type
select typeSelector label=Chapter
verifyTextPresent Chapter Title
clickAndWait submit
assertTitle Edit
verifyTextPresent Must specify a publication title.
comment Select to add a Book Chapter again, this time do it right
assertTitle Edit
verifyTextPresent Create a new publication entry for Furter, Frank
verifyTextPresent Publication Type
select typeSelector label=Chapter
verifyTextPresent Chapter Title
type relatedIndLabel Nintendo O.K. for Kids
clickAndWait submit
assertTitle Nintendo O.K. for Kids
comment Verify author info is there
verifyElementPresent link=Furter, Frank
comment Add Image, validating field first
comment Add Web Page, validating field first
clickAndWait //div[@id='dprop-vitro-links']/a
assertTitle Edit
verifyTextPresent Create a new primary link for Nintendo O.K. for Kids
verifyTextPresent URL
verifyTextPresent Link anchor text
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //div[@id='dprop-vitro-links']/a
assertTitle Edit
verifyTextPresent Create a new primary link for Nintendo O.K. for Kids
verifyTextPresent URL
verifyTextPresent Link anchor text
clickAndWait submit
assertTitle Edit
verifyTextPresent Create a new primary link for Nintendo O.K. for Kids
verifyTextPresent URL
verifyTextPresent Link anchor text
verifyTextPresent This field must not be empty.
type url http://www.nintendo.com/
type anchor
clickAndWait submit
assertTitle Edit
verifyTextPresent Create a new primary link for Nintendo O.K. for Kids
verifyTextPresent URL
verifyTextPresent Link anchor text
verifyTextPresent This field must not be empty.
type url
type anchor Company Homepage
clickAndWait submit
assertTitle Edit
verifyTextPresent Create a new primary link for Nintendo O.K. for Kids
verifyTextPresent URL
verifyTextPresent Link anchor text
verifyTextPresent This field must not be empty.
type url http://www.nintendo.com/
type anchor Company Homepage
clickAndWait submit
comment Add Author, validating field first
comment Add Editor, validating field first
comment Add Volume, validating field first
comment Add Number, validating field first
comment Add Start Page, validating field first
comment Add Chapter, validating field first
comment Add End Page, validating field first
comment Add Features, validating field first
comment Add Publisher, validating field first
comment Add Place of Publication, validating field first
comment Add Abstract, validating field first
comment Add Published In, validating field first
comment Add Edition, validating field first
comment Add Presented At, validating field first
comment Add Status, validating field first
comment Add Has Part, validating field first
comment Add Part Of, validating field first
comment Add Domestic Geo Focus, validating field first
comment Add International Geo Focus, validating field first
comment Add Contact Webpage, validating field first
comment Add Transcript of, validating field first
comment Add Year, validating field first
comment Add Year and Month, validating field first
comment Add PMID, validating field first
comment Add Number of Pages, validating field first
comment Add Subject Area, validating field first
comment Add Keywords, validating field first
comment Add Reproduced In, validating field first
comment Add Reproduces, validating field first
comment Verify all fields display properly
comment Verify Index is correct
comment Navigate back to Frank Furter
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Furter, Frank
assertTitle Furter, Frank
comment Logout
clickAndWait link=Log out
assertTitle VIVO