Commit 2248788e authored by Nigel McNie's avatar Nigel McNie
Browse files

Views has changed a lot. Changed the test so it creates a simple view. Not...

Views has changed a lot. Changed the test so it creates a simple view. Not sure how to test making blockinstances tho.
parent a8ea4ddb
......@@ -9,119 +9,79 @@
<tr><td rowspan="1" colspan="3">create_new_view_1</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/</td>
<td></td>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=My Portfolio</td>
<td></td>
<td>clickAndWait</td>
<td>link=My Portfolio</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>createnew</td>
<td></td>
<td>clickAndWait</td>
<td>createnew</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>createview1_title</td>
<td>test view</td>
<td>type</td>
<td>editview_title</td>
<td>Test view</td>
</tr>
<tr>
<td>click</td>
<td>//img[contains(@src,'/theme/default/static/images/calendar.gif')]</td>
<td></td>
<td>clickAndWait</td>
<td>editview_submit</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//tr[6]/td/a/img</td>
<td></td>
<td>assertTitle</td>
<td>Edit blocks - Mahara</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>createview1_startdate</td>
<td>2007/09/01 16:20</td>
<td>assertElementPresent</td>
<td>//input[@value='Back']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>createview1_tags</td>
<td>test</td>
<td>assertElementPresent</td>
<td>//input[@value='Next']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>createview1_ownerformat</td>
<td>label=First name (Admin)</td>
<td>assertElementPresent</td>
<td>link=Change view layout</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>createview1_submit</td>
<td></td>
<td>click</td>
<td>link=General (1)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>document.template_selection.elements[9]</td>
<td></td>
<td>clickAndWait</td>
<td>//input[@value='Next']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>template_submit</td>
<td></td>
<td>click</td>
<td>//button[@type='button']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//button[@type='button']</td>
<td></td>
<td>clickAndWait</td>
<td>editaccess_submit</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//img[contains(@src,'/theme/default/static/images/calendar.gif')]</td>
<td></td>
<td>assertConfirmation</td>
<td>Your view contains no artefacts.&nbsp;&nbsp;Do you really want to give these users access to the view?</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[2]/img</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>document.createview4.elements[2]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table[2]/tbody/tr[2]/td/div/a[1]/img</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table[2]/tbody/tr[2]/td/div/a[2]/img</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>document.createview4.elements[3]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table[3]/tbody/tr[2]/td/div/a[1]/img</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table[3]/tbody/tr[2]/td/div/a[2]/img</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>document.createview4.elements[7]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>createview4_submit</td>
<td></td>
<td>verifyTextPresent</td>
<td>View created successfully</td>
<td></td>
</tr>
</tbody></table>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment