AddBook
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 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 //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
select typeSelector label=Book
comment Cancel out before entering in title
click link=Cancel
comment Select to add an book again, this time without a title
assertTitle Edit
verifyTextPresent Create a new publication entry for Furter, Frank
verifyTextPresent Publication Type
select typeSelector label=Book
verifyTextPresent Book Title
clickAndWait submit
assertTitle Edit
verifyTextPresent Must specify a publication title.
comment Select to add a Book again, this time do it right
assertTitle Edit
verifyTextPresent Create a new publication entry for Furter, Frank
verifyTextPresent Publication Type
select typeSelector label=Book
type relatedIndLabel Nintendo: Good or Bad for Kids?
clickAndWait submit
assertTitle Nintendo: Good or Bad for Kids?
comment Verify author info is there
verifyElementPresent link=Furter, Frank
comment Add web page for Book
clickAndWait //div[@id='dprop-vitro-links']/a
assertTitle Edit
verifyTextPresent Create a new primary link for Nintendo: Good or Bad for Kids?
verifyTextPresent URL
verifyTextPresent Link anchor text
comment Cancel out
clickAndWait link=Cancel
assertTitle Nintendo: Good or Bad for Kids?
comment Hit add button without entering anything
clickAndWait //div[@id='dprop-vitro-links']/a
assertTitle Edit
verifyTextPresent Create a new primary link for Nintendo: Good or Bad for Kids?
verifyTextPresent URL
verifyTextPresent Link anchor text
clickAndWait submit
assertTitle Edit
verifyTextPresent Create a new primary link for Nintendo: Good or Bad for Kids?
verifyTextPresent URL
verifyTextPresent Link anchor text
verifyTextPresent This field must not be empty.
comment Add with only URL field entered
type url http://www.nintendo.com/
type anchor
clickAndWait submit
assertTitle Edit
verifyTextPresent Create a new primary link for Nintendo: Good or Bad for Kids?
verifyTextPresent URL
verifyTextPresent Link anchor text
verifyTextPresent This field must not be empty.
comment Add with only Link Anchor Text field entered
type url
type anchor Company Homepage
clickAndWait submit
assertTitle Edit
verifyTextPresent Create a new primary link for Nintendo: Good or Bad for Kids?
verifyTextPresent URL
verifyTextPresent Link anchor text
verifyTextPresent This field must not be empty.
comment Now add all required fields for web page
type url http://www.nintendo.com/
type anchor Company Homepage
clickAndWait submit
comment Verify that web page appears properly
assertTitle Nintendo: Good or Bad for Kids?
verifyElementPresent link=Company Homepage
verifyTextPresent (primary link)
verifyElementPresent //div[@id='dprop-vitro-links']/ul/li/span/em
verifyElementPresent link=Furter, Frank
comment Add Editor, 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 Edition, validating field first
comment Add Presented At, validating field first
comment Add Status, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment Add XXXXXX, validating field first
comment
comment Naviage back to Index
clickAndWait link=Index
assertTitle Index to VIVO Contents
comment Verify that an Article link now appears
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
verifyElementPresent link=Academic Article
verifyTextPresent Academic Article (1)
verifyElementPresent link=Article
verifyTextPresent Article (1)
comment Verify article shows up for Frank Furter
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Furter, Frank
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
assertTitle Furter, Frank
verifyTextPresent publication(s) within the last 10 years incomplete data
verifyElementPresent //div[@id='pub_count_short_sparkline_vis']/table/tbody/tr/td[3]
verifyElementPresent link=View all VIVO publications and corresponding co-author network
verifyTextPresent View all VIVO publications and corresponding co-author network.
verifyElementPresent link=Effect of Nintendo on Kids
verifyTextPresent Academic Article
verifyElementPresent //div[@id='authorInAuthorship']/ul/li[1]/span
comment Find article via search
type search nintendo
clickAndWait submit
assertTitle nintendo - VIVO Search Results
verifyElementPresent link=publications
verifyTextPresent Effect of Nintendo on Kids
verifyTextPresent Academic Article
verifyElementPresent //div[@id='content']/div/ul/li
comment Logout
clickAndWait link=Log out
assertTitle VIVO