Commit d40b4917 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Adding selenium test for Content -> files page



Tests:
 - to make sure that drop zone is present.
 - that a folder can be made
 - that a folder can be edited and tag created
 - that a folder can be deleted

Change-Id: Iac71241b82ee1b0e1cabcdcb0730a3e7ccc8c0de
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent e9a23d53
<?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>Add Folder</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Add Folder</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td></td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Content</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Files</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>files_filebrowser_createfolder_name</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>id=fileDropzone</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>files_filebrowser_createfolder_name</td>
<td>subfolder</td>
</tr>
<tr>
<td>click</td>
<td>files_filebrowser_createfolder</td>
<td></td>
</tr>
<tr>
<td>setSpeed</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[contains(@name,'files_filebrowser_edit')]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=files_filebrowser_edit_description</td>
<td>This is a subdirectory</td>
</tr>
<tr>
<td>type</td>
<td>id=files_filebrowser_edit_tags</td>
<td>folder</td>
</tr>
<tr>
<td>click</td>
<td>id=files_filebrowser_edit_artefact</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>link=folder</td>
<td>folder</td>
</tr>
<tr>
<td>setSpeed</td>
<td>0</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[contains(@title,'Go to subfolder')]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>files_filebrowser_createfolder_name</td>
<td>subsubfolder</td>
</tr>
<tr>
<td>click</td>
<td>id=files_filebrowser_createfolder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[contains(@name,'files_filebrowser_delete')]</td>
<td></td>
</tr>
<tr>
<td>verifyText</td>
<td>//div</td>
<td>Folder subsubfolder deleted</td>
</tr>
<tr>
<td>click</td>
<td>link=Home</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
Supports Markdown
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