More script cleanup
[mediagoblin-automation:mediagoblin-selenium.git] / tests / src / test_AddComment.html
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head profile="http://selenium-ide.openqa.org/profiles/test-case">
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <link rel="selenium.base" href="http://127.0.0.1:6543" />
7 <title>Add a Comment</title>
8 </head>
9 <body>
10 <table cellpadding="1" cellspacing="1" border="1">
11 <thead>
12 <tr><td rowspan="1" colspan="3">Add a Comment</td></tr>
13 </thead><tbody>
14 <tr>
15         <td>open</td>
16         <td>/</td>
17         <td></td>
18 </tr>
19 <tr>
20         <td>assertElementPresent</td>
21         <td>link=Gavroche Test</td>
22         <td></td>
23 </tr>
24 <tr>
25         <td>clickAndWait</td>
26         <td>link=Gavroche Test</td>
27         <td></td>
28 </tr>
29 <tr>
30         <td>assertElementPresent</td>
31         <td>id=button_addcomment</td>
32         <td></td>
33 </tr>
34 <tr>
35         <td>click</td>
36         <td>id=button_addcomment</td>
37         <td></td>
38 </tr>
39 <tr>
40         <td>assertElementPresent</td>
41         <td>id=comment_content</td>
42         <td></td>
43 </tr>
44 <tr>
45         <td>type</td>
46         <td>id=comment_content</td>
47         <td>This is a test comment.</td>
48 </tr>
49 <tr>
50         <td>verifyText</td>
51         <td>css=h3</td>
52         <td>Comment Preview</td>
53 </tr>
54 <tr>
55         <td>assertElementPresent</td>
56         <td>css=input.button_action</td>
57         <td></td>
58 </tr>
59 <tr>
60         <td>clickAndWait</td>
61         <td>css=input.button_action</td>
62         <td></td>
63 </tr>
64 <tr>
65         <td>verifyText</td>
66         <td>css=div.comment_content &gt; p</td>
67         <td>This is a test comment.</td>
68 </tr>
69 <tr>
70         <td>verifyText</td>
71         <td>css=a.comment_authorlink</td>
72         <td>testuser</td>
73 </tr>
74
75 </tbody></table>
76 </body>
77 </html>