1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 01:54:00 +02:00

Test Editor

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@904 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-07-24 12:10:09 +00:00
parent e933baa29b
commit d1325f8673
7 changed files with 120 additions and 5 deletions

77
tests/23-editor.html Normal file
View File

@@ -0,0 +1,77 @@
<?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>Editor</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Editor</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/adminer/examples/editor-cds/?lang=en&amp;username=admin</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Interprets</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=New item</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>fields[interpret]</td>
<td>Michael Jackson</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//div[@id='content']/form[2]/table/tbody/tr[1]/td[3]/a</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=New item</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>fields[interpret]</td>
<td>label=Michael Jackson</td>
</tr>
<tr>
<td>type</td>
<td>fields[album]</td>
<td>Dangerous</td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Save']</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Item has been inserted.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>logout</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>