More script cleanup
[mediagoblin-automation:mediagoblin-selenium.git] / tests / src / test_AddMediaToCollection.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 Media to Collection</title>
8 </head>
9 <body>
10 <table cellpadding="1" cellspacing="1" border="1">
11 <thead>
12 <tr><td rowspan="1" colspan="3">Add Media to Collection</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>link=Add to a collection</td>
32         <td></td>
33 </tr>
34 <tr>
35         <td>clickAndWait</td>
36         <td>link=Add to a collection</td>
37         <td></td>
38 </tr>
39 <tr>
40         <td>assertElementPresent</td>
41         <td>id=button_addcollection</td>
42         <td></td>
43 </tr>
44 <tr>
45         <td>click</td>
46         <td>id=button_addcollection</td>
47         <td></td>
48 </tr>
49 <tr>
50         <td>verifyElementPresent</td>
51         <td>id=collection_title</td>
52         <td></td>
53 </tr>
54 <tr>
55         <td>sendKeys</td>
56         <td>id=collection_title</td>
57         <td>Test Collection</td>
58 </tr>
59 <tr>
60         <td>verifyElementPresent</td>
61         <td>id=collection_description</td>
62         <td></td>
63 </tr>
64 <tr>
65         <td>type</td>
66         <td>id=collection_description</td>
67         <td>This is a test of the collections</td>
68 </tr>
69 <tr>
70         <td>verifyElementPresent</td>
71         <td>id=note</td>
72         <td></td>
73 </tr>
74 <tr>
75         <td>type</td>
76         <td>id=note</td>
77         <td>This is a note</td>
78 </tr>
79 <tr>
80         <td>assertElementPresent</td>
81         <td>css=input.button_form</td>
82         <td></td>
83 </tr>
84 <tr>
85         <td>clickAndWait</td>
86         <td>css=input.button_form</td>
87         <td></td>
88 </tr>
89 <tr>
90         <td>verifyText</td>
91         <td>css=li.message_success</td>
92         <td>&quot;Gavroche Test&quot; added to collection &quot;Test Collection&quot;</td>
93 </tr>
94 </tbody></table>
95 </body>
96 </html>