vivo/utilities/acceptance-tests/suites/AddRoles/GrantDisplay.html
2015-03-12 17:19:38 -04:00

414 lines
6.9 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>AddArticle</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">AddArticle</td></tr>
</thead><tbody>
<tr>
<td>deleteAllVisibleCookies</td>
<td></td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>100000</td>
<td></td>
</tr>
<!--Change grants to display-->
<tr>
<td>open</td>
<td>/vivo/</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>VIVO</td>
<td></td>
</tr>
<!--Must not be logged in already-->
<tr>
<td>clickAndWait</td>
<td>link=Log in</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Log in to VIVO</td>
<td></td>
</tr>
<!--Must login as site admin-->
<tr>
<td>type</td>
<td>loginName</td>
<td>testAdmin@cornell.edu</td>
</tr>
<tr>
<td>type</td>
<td>loginPassword</td>
<td>Password</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>loginForm</td>
<td></td>
</tr>
<!--Navigate to Index-->
<tr>
<td>clickAndWait</td>
<td>link=Index</td>
<td></td>
</tr>
<!--Navigate to Jane Faculty-->
<tr>
<td>clickAndWait</td>
<td>link=Faculty Member</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Faculty Member</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Faculty, Jane</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Faculty, Jane</td>
<td></td>
</tr>
<!--Verify grants exist-->
<tr>
<td>click</td>
<td>//div[@id='wrapper-content']/ul/li[18]</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>NIH VIVO Too 2010 -</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>NIH VIVO 2009 - 2010</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>VIVO Cornell Grant 2007 - 2009</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>VIVO Cornell Grant Too 2009</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>History of Apes in Africa Consultant 2010 -</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Habitats for Apes Researcher 1980 - 1985</td>
<td></td>
</tr>
<!--Select display none-->
<tr>
<td>verifyTextPresent</td>
<td> manage grants &amp; projects </td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=manageGrantLink</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>VIVO</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>NIH VIVO </td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>VIVO Cornell Grant </td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>VIVO Cornell Grant Too </td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>NIH VIVO Too </td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Habitats for Apes </td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>History of Apes in Africa </td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=input.itemCheckbox</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>xpath=(//input[@type='checkbox'])[2]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>xpath=(//input[@type='checkbox'])[3]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>xpath=(//input[@type='checkbox'])[4]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>xpath=(//input[@type='checkbox'])[5]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>xpath=(//input[@type='checkbox'])[6]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Return to Profile Page</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Faculty, Jane</td>
<td></td>
</tr>
<!--Verify grants are gone-->
<tr>
<td>verifyTextNotPresent</td>
<td>History of Apes in Africa Consultant 2010 -</td>
<td></td>
</tr>
<tr>
<td>verifyTextNotPresent</td>
<td>Habitats for Apes Researcher 1980 - 1985</td>
<td></td>
</tr>
<tr>
<td>verifyTextNotPresent</td>
<td>NIH VIVO Too 2010 -</td>
<td></td>
</tr>
<tr>
<td>verifyTextNotPresent</td>
<td>NIH VIVO 2009 - 2010</td>
<td></td>
</tr>
<tr>
<td>verifyTextNotPresent</td>
<td>VIVO Cornell Grant 2007 - 2009</td>
<td></td>
</tr>
<tr>
<td>verifyTextNotPresent</td>
<td>VIVO Cornell Grant Too 2009</td>
<td></td>
</tr>
<!--Opt to display 3 grants-->
<tr>
<td>verifyElementPresent</td>
<td>link=manage grants &amp; projects</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=manageGrantLink</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>VIVO</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>xpath=(//input[@type='checkbox'])[4]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>xpath=(//input[@type='checkbox'])[2]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=input.itemCheckbox</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Return to Profile Page</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>10000</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Faculty, Jane</td>
<td></td>
</tr>
<!--Verify only 3 grants are showing-->
<tr>
<td>verifyTextNotPresent</td>
<td>History of Apes in Africa Consultant 2010 -</td>
<td></td>
</tr>
<tr>
<td>verifyTextNotPresent</td>
<td>Habitats for Apes Researcher 1980 - 1985</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>NIH VIVO Too 2010 -</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>NIH VIVO 2009 - 2010</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>VIVO Cornell Grant 2007 - 2009</td>
<td></td>
</tr>
<tr>
<td>verifyTextNotPresent</td>
<td>VIVO Cornell Grant Too 2009</td>
<td></td>
</tr>
<!--Now display them all again-->
<tr>
<td>verifyTextPresent</td>
<td>manage grants &amp; projects</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=manageGrantLink</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>VIVO</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>xpath=(//input[@type='checkbox'])[3]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>xpath=(//input[@type='checkbox'])[5]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>xpath=(//input[@type='checkbox'])[6]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Return to Profile Page</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>10000</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Faculty, Jane</td>
<td></td>
</tr>
<!--Verify grants all display again-->
<tr>
<td>verifyTextPresent</td>
<td>History of Apes in Africa Consultant 2010 -</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Habitats for Apes Researcher 1980 - 1985</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>NIH VIVO Too 2010 -</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>NIH VIVO 2009 - 2010</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>VIVO Cornell Grant 2007 - 2009</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>VIVO Cornell Grant Too 2009</td>
<td></td>
</tr>
<!--Log out-->
<tr>
<td>clickAndWait</td>
<td>link=Home</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Log out</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>VIVO</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>