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>
|
|
|
|
<tr>
|
|
|
|
<td>open</td>
|
|
|
|
<td>/wp-admin/</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>link=Installed</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTextPresent</td>
|
|
|
|
<td>What Did They Say?!?</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>//a[contains(@href,'what-did-they-say') and contains(@href,'activate')]</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTextPresent</td>
|
|
|
|
<td>Plugin activated.</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertElementPresent</td>
|
|
|
|
<td>//a[contains(text(), "What Did They Say?!?")]</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-08-20 02:40:50 +00:00
|
|
|
<td>clickAndWait</td>
|
2009-08-20 01:40:28 +00:00
|
|
|
<td>link=exact:What Did They Say?!?</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<!--Reset-->
|
|
|
|
<tr>
|
|
|
|
<td>assertTextPresent</td>
|
|
|
|
<td>Reset Settings to Default</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>click</td>
|
|
|
|
<td>//input[@value='Reset What Did They Say?!?']</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertConfirmation</td>
|
|
|
|
<td>Are you sure? You could leave transcriptions inaccessible.</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2009-08-20 02:40:50 +00:00
|
|
|
<tr>
|
|
|
|
<td>waitForPageToLoad</td>
|
|
|
|
<td>30000</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2009-08-20 01:40:28 +00:00
|
|
|
<tr>
|
|
|
|
<td>assertTextPresent</td>
|
|
|
|
<td>What Did They Say?!? options reset</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<!--Capabilities-->
|
|
|
|
<tr>
|
|
|
|
<td>select</td>
|
|
|
|
<td>wdts[capabilities][submit_transcriptions]</td>
|
|
|
|
<td>label=Editor</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>select</td>
|
|
|
|
<td>wdts[capabilities][approve_transcriptions]</td>
|
|
|
|
<td>label=Editor</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>select</td>
|
|
|
|
<td>wdts[capabilities][change_languages]</td>
|
|
|
|
<td>label=Editor</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>//input[@value='Change capabilities']</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTextPresent</td>
|
|
|
|
<td>User capabilities updated.</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertSelectedLabel</td>
|
|
|
|
<td>wdts[capabilities][submit_transcriptions]</td>
|
|
|
|
<td>Editor</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertSelectedLabel</td>
|
|
|
|
<td>wdts[capabilities][approve_transcriptions]</td>
|
|
|
|
<td>Editor</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertSelectedLabel</td>
|
|
|
|
<td>wdts[capabilities][change_languages]</td>
|
|
|
|
<td>Editor</td>
|
|
|
|
</tr>
|
|
|
|
<!--Make new language default-->
|
|
|
|
<tr>
|
|
|
|
<td>assertText</td>
|
|
|
|
<td>//th/span[contains(text(), "English")]/../../td[1]</td>
|
|
|
|
<td>(yes)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>//th/span[contains(text(), "German")]/../..//input[@value="Default"]</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTextPresent</td>
|
|
|
|
<td>German set as default.</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertNotText</td>
|
|
|
|
<td>//th/span[contains(text(), "English")]/../../td[1]</td>
|
|
|
|
<td>(yes)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertText</td>
|
|
|
|
<td>//th/span[contains(text(), "German")]/../../td[1]</td>
|
|
|
|
<td>(yes)</td>
|
|
|
|
</tr>
|
|
|
|
<!--Add a new language-->
|
2009-08-20 02:40:50 +00:00
|
|
|
<tr>
|
|
|
|
<td>select</td>
|
|
|
|
<td>//select[@name='wdts[code]']</td>
|
|
|
|
<td>label=Danish</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>//input[@value='Add New Language']</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTextPresent</td>
|
|
|
|
<td>Danish added.</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<!--Delete a language-->
|
|
|
|
<tr>
|
|
|
|
<td>click</td>
|
|
|
|
<td>//input[@value='Delete']</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertConfirmation</td>
|
|
|
|
<td>You are about to delete this language from the available list. Continue?</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>waitForPageToLoad</td>
|
|
|
|
<td>30000</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTextPresent</td>
|
|
|
|
<td>Danish deleted.</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<!--Rename a language-->
|
|
|
|
<tr>
|
|
|
|
<td>assertVisible</td>
|
|
|
|
<td>//span[contains(text(), "German")]</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>click</td>
|
|
|
|
<td>//span[contains(text(), "German")]/../..//a[contains(text(), "Rename")]</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertNotVisible</td>
|
|
|
|
<td>//span[contains(text(), "German")]</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
|
|
|
<td>//span[contains(text(), "German")]/..//input[@name="wdts[name]"]</td>
|
|
|
|
<td>Deutsch</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>clickAndWait</td>
|
|
|
|
<td>//span[contains(text(), "German")]/..//input[@type="submit"]</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTextPresent</td>
|
|
|
|
<td>German renamed to Deutsch.</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<!--Reset Settings-->
|
|
|
|
<tr>
|
|
|
|
<td>assertTextPresent</td>
|
|
|
|
<td>Reset Settings to Default</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>click</td>
|
|
|
|
<td>//input[@value='Reset What Did They Say?!?']</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertConfirmation</td>
|
|
|
|
<td>Are you sure? You could leave transcriptions inaccessible.</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>waitForPageToLoad</td>
|
|
|
|
<td>30000</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>assertTextPresent</td>
|
|
|
|
<td>What Did They Say?!? options reset</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<!--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 /> '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>
|