AddBook
deleteAllVisibleCookies
setTimeout 100000
comment Add Book
open /vivo/
assertTitle VIVO
comment Must not be logged in already
clickAndWait link=Log in
assertTitle Log in to VIVO
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 Verify that no books currently exist
verifyTextNotPresent Book
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 //h3[@id='authorInAuthorship']/a/img
assertTitle Edit
verifyTextPresent Create publication entry for Furter, Frank
verifyTextPresent Publication Type
comment Select to add a book
select typeSelector label=Book
verifyTextPresent Title
type relatedIndLabel Nintendo: Good or Bad for Kids?
clickAndWait submit
assertTitle Furter, Frank
verifyTextPresent book
verifyElementPresent link=Nintendo: Good or Bad for Kids?
verifyTextPresent Nintendo: Good or Bad for Kids?
comment Go back to the book
clickAndWait link=Nintendo: Good or Bad for Kids?
assertTitle Nintendo: Good or Bad for Kids?
comment Add details for Book
clickAndWait //h3[@id='publisher']/a/img
assertTitle Edit
select typeOfNew label=Publisher (core)
clickAndWait submit
assertTitle Edit
type name Putnam
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //h3[@id='placeOfPublication']/a/img
assertTitle Edit
type tinymce New York
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //h3[@id='status']/a/img
assertTitle Edit
select objectVar label=in press
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //h3[@id='dateTimeValue']/a/img
assertTitle Edit
type dateTimeField.year 2010
clickAndWait submit
assertTitle Nintendo: Good or Bad for Kids?
clickAndWait //h3[@id='hasSubjectArea']/a/img
assertTitle Edit
clickAndWait submit
assertTitle Edit
type name Child Development
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //h3[@id='freetextKeyword']/a/img
assertTitle Edit
type tinymce Children
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //h3[@id='freetextKeyword']/a/img
assertTitle Edit
type tinymce Games
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //h3[@id='isbn10']/a/img
assertTitle Edit
type tinymce 5555555555
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //h3[@id='isbn13']/a/img
assertTitle Edit
type tinymce 7777777777777
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
clickAndWait //h3[@id='numPages']/a/img
assertTitle Edit
type tinymce 258
clickAndWait submit
assertTitle exact:Nintendo: Good or Bad for Kids?
comment Naviage back to Index
clickAndWait link=Index
assertTitle Index to VIVO Contents
comment Verify Book link now appears
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
verifyTextPresent research
verifyElementPresent link=Book
verifyTextPresent Book (1)
comment Verify Book shows up for Frank Furter
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Furter, Frank
assertTitle Furter, Frank
verifyElementPresent link=Nintendo: Good or Bad for Kids?
verifyTextPresent book
verifyTextPresent Nintendo: Good or Bad for Kids?
comment Verify book details
clickAndWait link=exact:Nintendo: Good or Bad for Kids?
assertTitle exact:Nintendo: Good or Bad for Kids?
verifyElementPresent link=Furter, Frank
verifyTextPresent Putnam
verifyTextPresent Putnam
verifyTextPresent New York
verifyElementPresent link=in press
verifyTextPresent in press
verifyTextPresent 2010
verifyTextPresent 258
verifyElementPresent link=Child Development
verifyTextPresent Child Development
verifyTextPresent 5555555555
verifyTextPresent 7777777777777
verifyTextPresent Children
verifyTextPresent Games
comment Log out
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO