Commit 670ddc5a authored by Francois Marier's avatar Francois Marier
Browse files

selenium: fix tests to match Richard and Evan's usability changes


Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent 815e41fa
......@@ -4,12 +4,12 @@
<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>Edit Resume</title>
<title>Edit_Resume</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Edit Resume</td></tr>
<tr><td rowspan="1" colspan="3">Edit_Resume</td></tr>
</thead><tbody>
<tr>
<td>open</td>
......@@ -31,6 +31,11 @@
<td>//a[contains(@href,'/artefact/resume/')]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Education &amp; Employment</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>addemploymenthistorybutton</td>
......@@ -106,6 +111,196 @@
<td>addeducationhistory_submit</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Introduction</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Date of birth</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>personalinformation_dateofbirth</td>
<td>1970/01/01</td>
</tr>
<tr>
<td>type</td>
<td>personalinformation_placeofbirth</td>
<td>Wellington</td>
</tr>
<tr>
<td>type</td>
<td>personalinformation_maritalstatus</td>
<td>it's complicated</td>
</tr>
<tr>
<td>click</td>
<td>personalinformation_save</td>
<td></td>
</tr>
<tr>
<td>verifyValue</td>
<td>personalinformation_dateofbirth</td>
<td>1970/01/01</td>
</tr>
<tr>
<td>verifyValue</td>
<td>personalinformation_placeofbirth</td>
<td>Wellington</td>
</tr>
<tr>
<td>verifyValue</td>
<td>personalinformation_maritalstatus</td>
<td>it's complicated</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Achievements</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Add</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>addcertificationbutton</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>addcertification_date</td>
<td>January</td>
</tr>
<tr>
<td>type</td>
<td>addcertification_title</td>
<td>My First Award</td>
</tr>
<tr>
<td>type</td>
<td>addcertification_description</td>
<td>Recognition that I rock</td>
</tr>
<tr>
<td>click</td>
<td>addcertification_submit</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>addbookbutton</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>addbook_date</td>
<td>February</td>
</tr>
<tr>
<td>type</td>
<td>addbook_title</td>
<td>Compilation of my best articles</td>
</tr>
<tr>
<td>type</td>
<td>addbook_contribution</td>
<td>None</td>
</tr>
<tr>
<td>type</td>
<td>addbook_contribution</td>
<td>Main author</td>
</tr>
<tr>
<td>type</td>
<td>addbook_description</td>
<td>I wrote the whole book, w00t!</td>
</tr>
<tr>
<td>click</td>
<td>addbook_submit</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>addmembershipbutton</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>addmembership_startdate</td>
<td>March</td>
</tr>
<tr>
<td>type</td>
<td>addmembership_title</td>
<td>Associate Member of the New Zealand Society</td>
</tr>
<tr>
<td>click</td>
<td>addmembership_submit</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>My First Award</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Associate Member of the New Zealand Society</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Compilation of my best articles (Main author)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Goals</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Personal Goals</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>goalform_submit</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Skills</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Personal Skills</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>skillform_submit</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Interests</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>interests_save</td>
<td></td>
</tr>
</tbody></table>
</body>
......
<?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>Edit_Resume_Defaults</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Edit_Resume_Defaults</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Profile</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=My Resumé</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you sure you want to delete this?</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you sure you want to delete this?</td>
<td></td>
</tr>
<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>Edit_Resume_Defaults</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Edit_Resume_Defaults</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Profile</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=My Résumé</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Introduction</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Date of birth</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>personalinformation_dateofbirth</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>personalinformation_placeofbirth</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>personalinformation_maritalstatus</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>personalinformation_save</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Education &amp; Employment</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Delete</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you sure you want to delete this?</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Education &amp; Employment</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Delete</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you sure you want to delete this?</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Achievements</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Delete</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you sure you want to delete this?</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Achievements</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Delete</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you sure you want to delete this?</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Achievements</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Delete</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you sure you want to delete this?</td>
<td></td>
</tr>
</tbody></table>
</body>
</tbody></table>
</body>
</html>
......@@ -4,12 +4,12 @@
<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>Random Clicking</title>
<title>Random_Clicking</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Random Clicking</td></tr>
<tr><td rowspan="1" colspan="3">Random_Clicking</td></tr>
</thead><tbody>
<tr>
<td>open</td>
......@@ -43,7 +43,7 @@
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Settings</td>
<td>link=admin</td>
<td></td>
</tr>
<tr>
......@@ -51,6 +51,11 @@
<td>link=Notifications</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//img[@alt='Inbox']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>type</td>
......@@ -61,11 +66,6 @@
<td>//input[@value='Mark as read']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Activity preferences</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Home</td>
......
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?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>Change_Password</title>
</head>
<body>
......@@ -15,7 +18,7 @@
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Settings</td>
<td>link=admin</td>
<td></td>
</tr>
<tr>
......
......@@ -4,12 +4,12 @@
<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>Reset Password</title>
<title>Reset_Password</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Reset Password</td></tr>
<tr><td rowspan="1" colspan="3">Reset_Password</td></tr>
</thead><tbody>
<tr>
<td>open</td>
......@@ -18,7 +18,7 @@
</tr>
<tr>
<td>clickAndWait</td>
<td>//div[@id='sb-profile']/div/div[2]/a[2]</td>
<td>link=admin</td>
<td></td>
</tr>
<tr>
......
......@@ -4,12 +4,12 @@
<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>Install Mahara</title>
<title>Install_Mahara</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Install Mahara</td></tr>
<tr><td rowspan="1" colspan="3">Install_Mahara</td></tr>
</thead><tbody>
<tr>
<td>open</td>
......@@ -18,7 +18,7 @@
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='I agree']</td>
<td>//input[@value='Install Mahara']</td>
<td></td>
</tr>
<tr>
......
......@@ -4,12 +4,12 @@
<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>Log Administrator Out</title>
<title>Logout_User</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Log Administrator Out</td></tr>
<tr><td rowspan="1" colspan="3">Logout_User</td></tr>
</thead><tbody>
<tr>
<td>assertText</td>
......
......@@ -4,12 +4,12 @@
<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 Sideblocks</title>
<title>Verify_Sideblocks</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Verify Sideblocks</td></tr>
<tr><td rowspan="1" colspan="3">Verify_Sideblocks</td></tr>
</thead><tbody>
<tr>
<td>open</td>
......@@ -127,16 +127,6 @@
<td></td>
</tr>
<!--needs sideblock checks for My groups and all the other sub-categories under Groups-->
<tr>
<td>clickAndWait</td>
<td>link=Settings</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Preferences</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/user/view.php?id=1</td>
......
......@@ -4,12 +4,12 @@
<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>Create a New View</title>
<title>Create_New_View_1</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Create a New View</td></tr>
<tr><td rowspan="1" colspan="3">Create_New_View_1</td></tr>
</thead><tbody>
<tr>
<td>open</td>
......@@ -48,7 +48,7 @@
</tr>
<tr>
<td>click</td>
<td>link=General (2)</td>
<td>link=General (3)</td>
<td></td>
</tr>
<tr>
......@@ -58,7 +58,7 @@
</tr>