start adding selenium tests

This commit is contained in:
John Bintz 2010-01-14 15:42:32 -05:00
parent c06616dd73
commit 169690082b

View File

@ -0,0 +1,112 @@
<?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>PostFixturesTest</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">PostFixturesTest</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=Post Fixtures</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Load Provided Data']</td>
<td></td>
</tr>
<tr>
<td>assertAlert</td>
<td>You must check the checkbox to approve this operation.</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>pf[is_ok]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>pf[data]</td>
<td>{]</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Load Provided Data']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Data is not valid JSON.</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>pf[data]</td>
<td>{ &quot;options&quot;: { &quot;post-fixtures-selenium&quot;: &quot;yes!&quot; }}<br /></td>
</tr>
<tr>
<td>click</td>
<td>pf[is_ok]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Load Provided Data']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>New data set loaded into WordPress.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/wp-admin/options.php</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>post-fixtures-selenium</td>
<td>yes!</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Post Fixtures</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>pf[data]</td>
<td>{ &quot;options&quot;: { &quot;post-fixtures-selenium&quot;: false }}<br /></td>
</tr>
<tr>
<td>click</td>
<td>pf[is_ok]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Load Provided Data']</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/wp-admin/options.php</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>post-fixtures-selenium</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>