diff --git a/utilities/acceptance-tests/suites/InitialSetup/AddCollectionTabs.html b/utilities/acceptance-tests/suites/InitialSetup/AddCollectionTabs.html new file mode 100644 index 00000000..aab8170d --- /dev/null +++ b/utilities/acceptance-tests/suites/InitialSetup/AddCollectionTabs.html @@ -0,0 +1,320 @@ + + + +
+ + +AddCollectionTabs | ||
comment | +Add new Collection Tabs of Librarians and Research Associate | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Must log in as site admin | ++ |
type | +username | +testAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigare to Tab Management | ++ |
clickAndWait | +link=Tab management | ++ |
assertTitle | +Tabs | ++ |
comment | +Verify two Collections to be added don't exist | ++ |
verifyTextNotPresent | +Librarians | ++ |
verifyTextNotPresent | +Research Associates | ++ |
clickAndWait | +//input[@value='Add new tab'] | ++ |
assertTitle | +Tab Editing Form | ++ |
comment | +Add new Librarians Collection Tab | ++ |
type | +Title | +Librarians | +
select | +TabtypeId | +label=collection | +
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
comment | +Verify Librarians Collection has been added | ++ |
verifyTextPresent | +Librarians | ++ |
verifyTextPresent | +collection | ++ |
clickAndWait | +//input[@value='Add existing tab as parent tab'] | ++ |
assertTitle | +Super/Subtab Editing Form | ++ |
comment | +Make Faculty the Parent of new Librarians Collection | ++ |
select | +ParentId | +label=Faculty | +
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +//input[@value='Add New Tab'] | ++ |
assertTitle | +Tab Editing Form | ++ |
comment | +Add new Research Associates Collection Tab | ++ |
type | +Title | +Research Associates | +
select | +TabtypeId | +label=collection | +
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
verifyTextPresent | +Research Associates | ++ |
verifyTextPresent | +collection | ++ |
clickAndWait | +//input[@value='Add existing tab as parent tab'] | ++ |
assertTitle | +Super/Subtab Editing Form | ++ |
comment | +Make Faculty the Parent of new Research Associates Collection | ++ |
select | +ParentId | +label=Faculty | +
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +link=People | ++ |
assertTitle | +People | ++ |
verifyTextPresent | +Faculty | ++ |
comment | +Verify two new Collection Tabs appear within Faculty | ++ |
verifyTextPresent | +Research Associates | ++ |
verifyTextPresent | +Librarians | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
AddPrimaryTabs | ||
comment | +Add Primary Tabs People and Academic Units | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must be logged out to start | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Must login as site admin | ++ |
type | +username | +testAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to Tab Management | ++ |
clickAndWait | +link=Tab management | ++ |
assertTitle | +Tabs | ++ |
clickAndWait | +//input[@value='Add new tab'] | ++ |
assertTitle | +Tab Editing Form | ++ |
comment | +Add Primary Tab of People | ++ |
type | +Title | +People | +
select | +TabtypeId | +label=primary tab | +
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
comment | +Verify People Primary Tab was added | ++ |
verifyTextPresent | +People | ++ |
verifyTextPresent | +primary tab | ++ |
clickAndWait | +//input[@value='Add New Tab'] | ++ |
assertTitle | +Tab Editing Form | ++ |
comment | +Add Primary Tab of Academic Units | ++ |
type | +Title | +Academic Units | +
select | +TabtypeId | +label=primary tab | +
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
comment | +Verify Academic Units Primary Tab was added | ++ |
verifyTextPresent | +Academic Units | ++ |
verifyTextPresent | +primary tab | ++ |
clickAndWait | +//input[@value='See All Tabs'] | ++ |
assertTitle | +Tabs | ++ |
comment | +Verify that two new Tabs are listed on the Tabs page | ++ |
verifyTextPresent | +Home | ++ |
verifyTextPresent | +People | ++ |
verifyTextPresent | +Academic Units | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
AddSecondaryTabs | ||
comment | +Add Secondary Tabs Faculty and Academic Staff to People Tab | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must be logged out to start | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Must log in as site admin | ++ |
type | +username | +testAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to Tab Management | ++ |
clickAndWait | +link=Tab management | ++ |
assertTitle | +Tabs | ++ |
verifyTextPresent | +People | ++ |
comment | +Verify Tabs to be added don't already exist | ++ |
verifyTextNotPresent | +Faculty | ++ |
verifyTextNotPresent | +Academic Staff | ++ |
clickAndWait | +//input[@value='Add new tab'] | ++ |
assertTitle | +Tab Editing Form | ++ |
comment | +Add Faculty Secondtary Tab | ++ |
type | +Title | +Faculty | +
select | +TabtypeId | +label=secondary tab | +
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
comment | +Verify Faculty Tab exists and is Secondtary | ++ |
verifyTextPresent | +Faculty | ++ |
verifyTextPresent | +secondary tab | ++ |
clickAndWait | +//input[@value='Add existing tab as parent tab'] | ++ |
assertTitle | +Super/Subtab Editing Form | ++ |
comment | +Make People the parent of Faculty | ++ |
select | +ParentId | +label=People | +
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +//input[@value='Add New Tab'] | ++ |
assertTitle | +Tab Editing Form | ++ |
comment | +Add Academic Staff Secondary Tab | ++ |
type | +Title | +Academic Staff | +
select | +TabtypeId | +label=secondary tab | +
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
comment | +Verify Academic Staff Tab exists and is Secondtary | ++ |
verifyTextPresent | +Academic Staff | ++ |
verifyTextPresent | +secondary tab | ++ |
clickAndWait | +//input[@value='Add existing tab as parent tab'] | ++ |
assertTitle | +Super/Subtab Editing Form | ++ |
comment | +Make People the parent of Academic Staff | ++ |
select | +ParentId | +label=People | +
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +link=People | ++ |
assertTitle | +People | ++ |
comment | +Verify 2 new Secondary Tabs are associated with People | ++ |
verifyTextPresent | +Academic Staff | ++ |
verifyTextPresent | +Faculty | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
DeleteNewTabs | ||
comment | +Delete all Tabs created for this test | ++ |
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 | +username | +testAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to Tab Management | ++ |
clickAndWait | +link=Tab management | ++ |
assertTitle | +Tabs | ++ |
verifyTextPresent | +Home | ++ |
comment | +Verify the Tabs to be deleted all exist | ++ |
verifyTextPresent | +Faculty | ++ |
verifyTextPresent | +People | ++ |
verifyTextPresent | +Librarians | ++ |
verifyTextPresent | +Academic Staff | ++ |
verifyTextPresent | +Research Associates | ++ |
verifyTextPresent | +Academic Units | ++ |
comment | +Delete the Tabs one by one | ++ |
clickAndWait | +link=Faculty | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +//input[@value='Edit Tab Details'] | ++ |
assertTitle | +Tab Editing Form | ++ |
click | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this record? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +Tabs | ++ |
clickAndWait | +link=Academic Staff | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +//input[@value='Edit Tab Details'] | ++ |
assertTitle | +Tab Editing Form | ++ |
click | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this record? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +Tabs | ++ |
clickAndWait | +//div[@id='contentwrap']/div/table/tbody/tr[3]/td[2]/a | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +//input[@value='Edit Tab Details'] | ++ |
assertTitle | +Tab Editing Form | ++ |
click | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this record? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +Tabs | ++ |
clickAndWait | +link=Librarians | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +//input[@value='Edit Tab Details'] | ++ |
assertTitle | +Tab Editing Form | ++ |
click | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this record? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +Tabs | ++ |
clickAndWait | +link=Research Associates | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +//input[@value='Edit Tab Details'] | ++ |
assertTitle | +Tab Editing Form | ++ |
click | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this record? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +Tabs | ++ |
clickAndWait | +//div[@id='contentwrap']/div/table/tbody/tr[3]/td[2]/a | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +//input[@value='Edit Tab Details'] | ++ |
assertTitle | +Tab Editing Form | ++ |
click | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this record? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +Tabs | ++ |
verifyTextPresent | +Home | ++ |
verifyTextNotPresent | +Faculty | ++ |
verifyTextNotPresent | +People | ++ |
verifyTextNotPresent | +Librarians | ++ |
verifyTextNotPresent | +Academic Staff | ++ |
verifyTextNotPresent | +Research Associates | ++ |
verifyTextNotPresent | +Academic Units | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
EditHomeTab | ||
comment | +Edit Home Tab Body (then reset it to default) | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must be logged out | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Must login as site admin | ++ |
type | +username | +testAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to Tab Management | ++ |
verifyTextPresent | +Site Configuration | ++ |
clickAndWait | +link=Tab management | ++ |
assertTitle | +Tabs | ++ |
verifyTextPresent | +Home | ++ |
clickAndWait | +//div[@id='contentwrap']/div/table/tbody/tr[2]/td[2]/a | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +//input[@value='Edit Tab Details'] | ++ |
assertTitle | +Tab Editing Form | ++ |
comment | +Edit Home Tab body to add the word "test" between VIVO and ! | ++ |
type | +Body | +<h3>Welcome! You have successfully installed VIVO test!</h3> <p>Your next step is to <a href="siteAdmin?home=1&login=block">login</a> and change your password. You can find the login link in the header on the right above.</p> <p>Please see the <a href="http://vivoweb.org/support/user-guide" target="_blank">VIVO User Guide</a> for help. The user guide includes information on <a href="siteAdmin?home=1">Site Administration</a>. You may want to read about the <a href="http://vivoweb.org/support/user-guide/site-configuration" target="_blank">Site Configuration</a> topics next:</p> <ul> <li><a href="http://vivoweb.org/support/user-guide/site-information" target="_blank">Edit site information</a></li> <li><a href="http://vivoweb.org/support/user-guide/tab-management" target="_blank">Manage tabs</a></li> <li><a href="http://vivoweb.org/support/user-guide/managing-user-accounts" target="_blank">Manage user accounts</a></li> </ul> |
+
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +link=Home | ++ |
assertTitle | +VIVO | ++ |
comment | +Verify that Home Tab body text has changed | ++ |
verifyTextPresent | +Welcome! You have successfully installed VIVO test! | ++ |
clickAndWait | +link=Site Administration | ++ |
assertTitle | +VIVO Site Administration | ++ |
verifyTextPresent | +Site Configuration | ++ |
clickAndWait | +link=Tab management | ++ |
assertTitle | +Tabs | ++ |
verifyTextPresent | +Home | ++ |
clickAndWait | +//div[@id='contentwrap']/div/table/tbody/tr[2]/td[2]/a | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +//input[@value='Edit Tab Details'] | ++ |
assertTitle | +Tab Editing Form | ++ |
comment | +Reset Home Tab body to installation default | ++ |
type | +Body | +<h3>Welcome! You have successfully installed VIVO!</h3> <p>Your next step is to <a href="siteAdmin?home=1&login=block">login</a> and change your password. You can find the login link in the header on the right above.</p> <p>Please see the <a href="http://vivoweb.org/support/user-guide" target="_blank">VIVO User Guide</a> for help. The user guide includes information on <a href="siteAdmin?home=1">Site Administration</a>. You may want to read about the <a href="http://vivoweb.org/support/user-guide/site-configuration" target="_blank">Site Configuration</a> topics next:</p> <ul> <li><a href="http://vivoweb.org/support/user-guide/site-information" target="_blank">Edit site information</a></li> <li><a href="http://vivoweb.org/support/user-guide/tab-management" target="_blank">Manage tabs</a></li> <li><a href="http://vivoweb.org/support/user-guide/managing-user-accounts" target="_blank">Manage user accounts</a></li> </ul> |
+
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +link=Home | ++ |
assertTitle | +VIVO | ++ |
comment | +Verify Home Tab body is back to default | ++ |
verifyTextPresent | +Welcome! You have successfully installed VIVO! | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
EditSiteInfo | ||
comment | +Change site name, tagline, and copyright (then reset it to default) | ++ |
open | +/vivo/siteAdmin?home=1&login=block | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Must be logged out | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Must login as site admin | ++ |
type | +username | +testAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to Site Configuraton page | ++ |
verifyTextPresent | +Site Configuration | ++ |
clickAndWait | +link=Site information | ++ |
assertTitle | +Site Information Editing Form | ++ |
comment | +Change site information fields | ++ |
type | +AppName | +VIVO Test Site | +
type | +ShortHand | +enabling national testing | +
type | +CopyrightAnchor | +VIVO Project 2010 | +
clickAndWait | +primaryAction | ++ |
assertTitle | +VIVO Test Site Site Administration | ++ |
verifyTextPresent | +Site Configuration | ++ |
clickAndWait | +link=Home | ++ |
assertTitle | +VIVO Test Site | ++ |
comment | +Verify that changes were made (cannot test site name) | ++ |
verifyTextPresent | +enabling national testing | ++ |
verifyTextPresent | +©2010 VIVO Project 2010 | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Test Site Site Administration | ++ |
clickAndWait | +link=Site information | ++ |
assertTitle | +Site Information Editing Form | ++ |
comment | +Set site information back to default | ++ |
type | +AppName | +VIVO | +
type | +ShortHand | +enabling national network of scientists | +
type | +CopyrightAnchor | +VIVO Project | +
clickAndWait | +primaryAction | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Verify that changes were set back to the default | ++ |
verifyTextPresent | +enabling national network of scientists | ++ |
verifyTextPresent | +©2010 VIVO Project | ++ |
open | +/vivo/siteAdmin?home=1 | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
verifyTextPresent | +Log in | ++ |
ReorderPrimaryTabs | ||
comment | +Reorder 2 new Primary Tabs | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must be logged out to start | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Must login as site admin | ++ |
type | +username | +testAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
verifyTextPresent | +People | ++ |
comment | +Select People Tab and edit it | ++ |
clickAndWait | +link=People | ++ |
assertTitle | +People | ++ |
verifyTextPresent | +edit tab: People | ++ |
clickAndWait | +//div[@id='contents']/div[2]/a/em | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +//input[@value='Edit Tab Details'] | ++ |
assertTitle | +Tab Editing Form | ++ |
type | +DisplayRank | +2 | +
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
verifyTextPresent | +2 | ++ |
comment | +Select Academic Units Tab and edit it | ++ |
clickAndWait | +link=Academic Units | ++ |
assertTitle | +Academic Units | ++ |
verifyTextPresent | +Academic Units | ++ |
clickAndWait | +//div[@id='contents']/div[2]/a/em | ++ |
assertTitle | +Tab Control Panel | ++ |
clickAndWait | +//input[@value='Edit Tab Details'] | ++ |
assertTitle | +Tab Editing Form | ++ |
type | +DisplayRank | +3 | +
clickAndWait | +primaryAction | ++ |
assertTitle | +Tab Control Panel | ++ |
verifyTextPresent | +3 | ++ |
comment | +Need to verify Tab order has changed | ++ |
verifyElementPresent | +//li[2]/a[contains(text(),'People')] | ++ |
verifyElementPresent | +//li[3]/a[contains(text(),'Academic Units')] | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
Test Suite |
EditSiteInfo |
EditHomeTab |
AddPrimaryTabs |
ReorderPrimaryTabs |
AddSecondaryTabs |
AddCollectionTabs |
DeleteNewTabs |