what-did-they-say/test/selenium/TestMetaboxApprovedTranscri...

98 lines
2.5 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="http://comicpress.local/" />
<title>TestMetaboxApprovedTranscriptEditing</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestMetaboxApprovedTranscriptEditing</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/wp-admin/post.php?action=edit&amp;post=${post_id}</td>
<td></td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>//select[@name=&quot;wdts[language]&quot;]</td>
<td>English</td>
</tr>
<tr>
<td>assertVisible</td>
<td>//textarea[@name=&quot;wdts[transcripts][en][transcript]&quot;]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//textarea[@name=&quot;wdts[transcripts][en][transcript]&quot;]</td>
<td>This is a test transcript.</td>
</tr>
<tr>
<td>select</td>
<td>//select[@name=&quot;wdts[transcripts][en][user_id]&quot;]</td>
<td>index=1</td>
</tr>
<tr>
<td>select</td>
<td>//select[@name=&quot;wdts[language]&quot;]</td>
<td>label=German</td>
</tr>
<tr>
<td>assertVisible</td>
<td>//textarea[@name=&quot;wdts[transcripts][de][transcript]&quot;]</td>
<td></td>
</tr>
<tr>
<td>assertNotVisible</td>
<td>//textarea[@name=&quot;wdts[transcripts][en][transcript]&quot;]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//textarea[@name=&quot;wdts[transcripts][de][transcript]&quot;]</td>
<td>Dies ist ein Test transcript.</td>
</tr>
<tr>
<td>select</td>
<td>//select[@name=&quot;wdts[transcripts][de][user_id]&quot;]</td>
<td>index=2</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>//textarea[@name=&quot;wdts[transcripts][en][transcript]&quot;]</td>
<td>This is a test transcript.</td>
</tr>
<tr>
<td>assertValue</td>
<td>//textarea[@name=&quot;wdts[transcripts][de][transcript]&quot;]</td>
<td>Dies ist ein Test transcript.</td>
</tr>
<tr>
<td>assertSelectedIndex</td>
<td>//select[@name=&quot;wdts[transcripts][en][user_id]&quot;]</td>
<td>1</td>
</tr>
<tr>
<td>assertSelectedIndex</td>
<td>//select[@name=&quot;wdts[transcripts][de][user_id]&quot;]</td>
<td>2</td>
</tr>
</tbody></table>
</body>
</html>