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

Selenium tests for making tags and verifying they exist



- Add tags test adds in some tags

- Verify tages test checks that they exist and are
correct types

Note: this will need to added to for tags like collection tags
etc and more verification tests will need to be added

Change-Id: Ifd864051723dba47ad7269c6e0e88e08cb56c034
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent d40b4917
<?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_Tags</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Add_Tags</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=Content</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Files</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=files_filebrowser_createfolder_name</td>
<td>folder1</td>
</tr>
<tr>
<td>click</td>
<td>id=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>clickAndWait</td>
<td>link=Journal</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=New entry</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=editpost_title</td>
<td>Journal one</td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>runScript</td>
<td>tinyMCE.activeEditor.setContent('This is a test')</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=editpost_tags</td>
<td>journal,test</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=editpost_submitpost</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Plans</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add one</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=addplan_title</td>
<td>Plan 9 from outer space</td>
</tr>
<tr>
<td>type</td>
<td>id=addplan_tags</td>
<td>plan</td>
</tr>
<tr>
<td>click</td>
<td>link=Show my tags</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=test</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=addplan_submit</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add one</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=addtasks_title</td>
<td>Task one</td>
</tr>
<tr>
<td>type</td>
<td>id=addtasks_completiondate</td>
<td>2020/12/31</td>
</tr>
<tr>
<td>type</td>
<td>id=addtasks_tags</td>
<td>task</td>
</tr>
<tr>
<td>click</td>
<td>link=Show my tags</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=test</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=addtasks_submit</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Portfolio</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Pages</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=createview_submit</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=editview_tags</td>
<td>page1,test</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=editview_submit</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Pages</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=createview_submit</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=editview_tags</td>
<td>page2,test</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=editview_submit</td>
<td></td>
</tr>
<tr>
<td>dragAndDropToObject</td>
<td>//img[@title='Add notes to your page']</td>
<td>id=row_1_column_2</td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=instconf_tags</td>
<td>box1,test</td>
</tr>
<tr>
<td>click</td>
<td>//input[@class='submitcancel submit']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Portfolio</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
<?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>Verify_Tags</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Verify_Tags</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=Tags</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Text</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//img[contains(@src,'note.png')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//img[contains(@src,'plantask.png')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//img[contains(@src,'journal_entry.png')]</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
Login_Admin
Add_Tags
Verify_Tags
Logout_User
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