<commit_before><?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>Check User Privileges</title>
<style type="text/css">
.testName {
  color: blue;
  background: rgb(80%, 80%, 80%);
  font-family: sans-serif;
  font-weight: bold;
  font-size: larger;
  text-align: center;
}
.comment {
  color: blue;
  background: rgb(80%, 80%, 80%);
  font-family: sans-serif;
  font-weight: bold;
  font-size: larger;
  text-align: center;
}
</style>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3" class="testName">Check User Privileges</td></tr>
</thead><tbody>
<tr>
	<td>comment</td>
	<td class="comment">This tests if a User can be associated with an Individual and if the User can then do profile editing.</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>/vivo/siteAdmin?home=1&amp;login=block</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>VIVO Site Administration</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Log in</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>VIVO Site Administration</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>testAdmin</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>Password</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>loginSubmitMode</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>VIVO Site Administration</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Class hierarchy</td>
	<td></td>
</tr>
<tr>
	<td>comment</td>
	<td class="comment">add a person to associate Joe User with.</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Class Hierarchy</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=exact:foaf:Agent</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Class Control Panel</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Add New Individual in This Class']</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Individual Editing Form</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>Name</td>
	<td>UserJoe</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>primaryAction</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Individual Control Panel</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Add Type']</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Individual Type Editing Form</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>TypeURI</td>
	<td>label=core:Faculty Member</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>primaryAction</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Individual Control Panel</td>
	<td></td>
</tr>
<tr>
	<td>comment</td>
	<td class="comment">comment pause for class inference</td>
	<td></td>
</tr>
<tr>
	<td>pause</td>
	<td>500</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Site Admin</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>VIVO Site Administration</td>
	<td></td>
</tr>
<tr>
	<td>comment</td>
	<td class="comment">Associate Joe User and individual UserJoe.</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=User accounts</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>User Accounts</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Joe User</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>User Account Control Panel</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=add</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Edit</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>objectVar</td>
	<td>label=UserJoe</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>User Account Control Panel</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>delete</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>exact:http://vivo.mydomain.edu/individual/UserJoe</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>
<tr>
	<td>comment</td>
	<td class="comment">Log in as Joe User.</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Log in</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>VIVO Site Administration</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>Joe User</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>firstTime</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>loginSubmitMode</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>VIVO Site Administration</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Index</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Index to VIVO Contents</td>
	<td></td>
</tr>
<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=UserJoe</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>UserJoe</td>
	<td></td>
</tr>
<tr>
	<td>comment</td>
	<td class="comment">Check if there are edit links.</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>link=add</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Index</td>
	<td></td>
</tr>
<tr>
	<td>pause</td>
	<td>3000</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Index to VIVO Contents</td>
	<td></td>
</tr>
<tr>
	<td>comment</td>
	<td class="comment">Check that Joe User cannot edit other individuals.</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Country</td>
	<td></td><commit_msg>NIHVIVO-121 Remove the unnecessary pause.<commit_after><?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>Check User Privileges</title>
<style type="text/css">
.testName {
  color: blue;
  background: rgb(80%, 80%, 80%);
  font-family: sans-serif;
  font-weight: bold;
  font-size: larger;
  text-align: center;
}
.comment {
  color: blue;
  background: rgb(80%, 80%, 80%);
  font-family: sans-serif;
  font-weight: bold;
  font-size: larger;
  text-align: center;
}
</style>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3" class="testName">Check User Privileges</td></tr>
</thead><tbody>
<tr>
	<td>comment</td>
	<td class="comment">This tests if a User can be associated with an Individual and if the User can then do profile editing.</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>/vivo/siteAdmin?home=1&amp;login=block</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>VIVO Site Administration</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Log in</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>VIVO Site Administration</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>testAdmin</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>Password</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>loginSubmitMode</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>VIVO Site Administration</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Class hierarchy</td>
	<td></td>
</tr>
<tr>
	<td>comment</td>
	<td class="comment">add a person to associate Joe User with.</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Class Hierarchy</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=exact:foaf:Agent</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Class Control Panel</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Add New Individual in This Class']</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Individual Editing Form</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>Name</td>
	<td>UserJoe</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>primaryAction</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Individual Control Panel</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Add Type']</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Individual Type Editing Form</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>TypeURI</td>
	<td>label=core:Faculty Member</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>primaryAction</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Individual Control Panel</td>
	<td></td>
</tr>
<tr>
	<td>comment</td>
	<td class="comment">comment pause for class inference</td>
	<td></td>
</tr>
<tr>
	<td>pause</td>
	<td>500</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Site Admin</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>VIVO Site Administration</td>
	<td></td>
</tr>
<tr>
	<td>comment</td>
	<td class="comment">Associate Joe User and individual UserJoe.</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=User accounts</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>User Accounts</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Joe User</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>User Account Control Panel</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=add</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Edit</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>objectVar</td>
	<td>label=UserJoe</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>User Account Control Panel</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>delete</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>exact:http://vivo.mydomain.edu/individual/UserJoe</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>
<tr>
	<td>comment</td>
	<td class="comment">Log in as Joe User.</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Log in</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>VIVO Site Administration</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>Joe User</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>firstTime</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>loginSubmitMode</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>VIVO Site Administration</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Index</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Index to VIVO Contents</td>
	<td></td>
</tr>
<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=UserJoe</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>UserJoe</td>
	<td></td>
</tr>
<tr>
	<td>comment</td>
	<td class="comment">Check if there are edit links.</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>link=add</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Index</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Index to VIVO Contents</td>
	<td></td>
</tr>
<tr>
	<td>comment</td>
	<td class="comment">Check that Joe User cannot edit other individuals.</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Country</td>
	<td></td>
{'fraction_non_alphanumeric': 0.26492961440937307, 'fraction_numerical': 0.006907405788231179, 'mean_word_length': 4.538983050847458, 'pattern_counts': {'":': 0, '<': 1025, '<?xml version=': 2, '>': 1025, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4943421', 'n_tokens_mistral': 5584, 'n_tokens_neox': 5449, 'n_words': 990}