113 lines
2.2 KiB
HTML
113 lines
2.2 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>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>{ "options": { "post-fixtures-selenium": "yes!" }}<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>{ "options": { "post-fixtures-selenium": 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>
|