what-did-they-say/test/TestWhatDidTheySay.html

117 lines
2.3 KiB
HTML
Raw Normal View History

2009-08-20 01:40:28 +00:00
<?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" />
2009-08-20 02:40:50 +00:00
<link rel="selenium.base" href="http://comicpress.local/" />
2009-08-20 01:40:28 +00:00
<title>TestWhatDidTheySay</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestWhatDidTheySay</td></tr>
</thead><tbody>
2009-08-20 02:40:50 +00:00
<!--Meta Box-->
<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>clickAndWait</td>
<td>publish</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Post published.</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>post_ID</td>
<td>post_id</td>
</tr>
<!--Edit Two Transcriptions-->
<tr>
<td>assertSelectedLabel</td>
<td>wdts-language</td>
<td>English</td>
</tr>
<tr>
<td>type</td>
<td>wdts-transcripts-en</td>
<td>This is a test transcript.</td>
</tr>
<tr>
<td>select</td>
<td>wdts-language</td>
<td>label=German</td>
</tr>
<tr>
<td>type</td>
<td>wdts-transcripts-de</td>
<td>Dies ist ein Test transcript.</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>publish</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Post updated.</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>wdts-transcripts-en</td>
<td>This is a test transcript.</td>
</tr>
<tr>
<td>assertValue</td>
<td>wdts-transcripts-de</td>
<td>Dies ist ein Test transcript.</td>
</tr>
<!--Delete post-->
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this post 'WDTS Test Post'<br />&nbsp;&nbsp;'Cancel' to stop, 'OK' to delete.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<!--Deactivate Plugin-->
<tr>
<td>clickAndWait</td>
<td>link=Installed</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href,'what-did-they-say') and contains(@href,'deactivate')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Plugin deactivated.</td>
<td></td>
</tr>
2009-08-20 01:40:28 +00:00
</tbody></table>
</body>
</html>