what-did-they-say/test/selenium/TestCreatePost.html
2009-10-25 23:06:20 -04:00

63 lines
1.3 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>TestCreatePost</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestCreatePost</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>title</td>
<td>WDTS Test Post</td>
</tr>
<tr>
<td>type</td>
<td>//textarea[@name=&quot;wdts[transcripts][en][transcript]&quot;]</td>
<td>This is a test transcript inserted on creation.</td>
</tr>
<tr>
<td>fireEvent</td>
<td>title</td>
<td>blur</td>
</tr>
<tr>
<td>pause</td>
<td>2000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>publish</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Post published.</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>//textarea[@name=&quot;wdts[transcripts][en][transcript]&quot;]</td>
<td>This is a test transcript inserted on creation.</td>
</tr>
<tr>
<td>storeValue</td>
<td>post_ID</td>
<td>post_id</td>
</tr>
</tbody></table>
</body>
</html>