Commit 6b094cf5 authored by tiger's avatar tiger
Browse files

selenium: fix formerly breaking pages (sideblocks, create view, delete view

parent 942049a6
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Verify_Sideblocks</title>
<?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 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>
......@@ -14,14 +17,29 @@
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@class='sidebar sidebar_1']</td>
<td></td>
<td>assertElementPresent</td>
<td>//div[@id='sb-profile' and @class='sideblock sideblock-1']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='sb-onlineusers' and @class='sideblock sideblock-2']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//ul[@id='sitemenu']</td>
<td></td>
<td>assertElementPresent</td>
<td>//div[@id='main-nav']</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='sb-onlineusers']/h3</td>
<td>Online users</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='sb-profile']/h3/a</td>
<td>Admin User</td>
</tr>
<tr>
<td>clickAndWait</td>
......@@ -29,9 +47,34 @@
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//p[@id='quota_message']</td>
<td></td>
<td>assertElementPresent</td>
<td>//div[@id='sb-profile' and @class='sideblock sideblock-1']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='sb-onlineusers' and @class='sideblock sideblock-2']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='main-nav']</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='sb-onlineusers']/h3</td>
<td>Online users</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='sb-profile']/h3/a</td>
<td>Admin User</td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//p[@id='quota_message']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
......@@ -39,14 +82,14 @@
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@class='sidebar sidebar_1']</td>
<td></td>
<td>assertElementPresent</td>
<td>//div[@class='sideblock sideblock-1']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//p[@id='quota_message']</td>
<td></td>
<td>assertElementPresent</td>
<td>//p[@id='quota_message']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
......@@ -54,39 +97,34 @@
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//form[@id='selfsearch']</td>
<td></td>
<td>clickAndWait</td>
<td>link=My Views</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//ul[@id='sitemenu']</td>
<td></td>
<td>assertElementPresent</td>
<td>//form[@id='selfsearch']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//p[@id='quota_message']</td>
<td></td>
<td>assertElementNotPresent</td>
<td>//p[@id='quota_message']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=files</td>
<td>link=My Files</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//form[@id='selfsearch']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//ul[@id='sitemenu']</td>
<td></td>
<td>assertElementPresent</td>
<td>//form[@id='selfsearch']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//p[@id='quota_message']</td>
<td></td>
<td>assertElementPresent</td>
<td>//p[@id='quota_message']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
......@@ -94,29 +132,25 @@
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//ul[@id='sitemenu']</td>
<td></td>
<td>clickAndWait</td>
<td>link=My Groups</td>
<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>assertElementPresent</td>
<td>//ul[@id='sitemenu']</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/user/view.php?id=1</td>
<td></td>
<td>clickAndWait</td>
<td>link=Preferences</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//ul[@id='sitemenu']</td>
<td></td>
<td>open</td>
<td>/user/view.php?id=1</td>
<td></td>
</tr>
</tbody></table>
......
......@@ -11,6 +11,11 @@
<thead>
<tr><td rowspan="1" colspan="3">Create a New View</td></tr>
</thead><tbody>
<tr>
<td>setSpeed</td>
<td>100</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/</td>
......@@ -26,11 +31,51 @@
<td>createview_submit</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='main-column-container']/h1</td>
<td>Create View Step One: Layout</td>
</tr>
<tr>
<td>click</td>
<td>link=Blogs (3)</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=External feeds (1)</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Files, images and video (6)</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=General (1)</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Profile (2)</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Resumé (2)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Next']</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='main-column-container']/h1</td>
<td>Create View Step Two: Details</td>
</tr>
<tr>
<td>type</td>
<td>editview_title</td>
......@@ -67,25 +112,70 @@
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>link=Change view layout</td>
<td>click</td>
<td>//div[@id='potentialpresetitems']/div[1]/button[@type='button']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>startdate_0</td>
<td>1/1/2001</td>
</tr>
<tr>
<td>type</td>
<td>stopdate_0</td>
<td>12/31/2001</td>
</tr>
<tr>
<td>click</td>
<td>link=General (1)</td>
<td>//div[@id='potentialpresetitems']/div[2]/button[@type='button']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Next']</td>
<td>type</td>
<td>startdate_1</td>
<td>1/1/2002</td>
</tr>
<tr>
<td>type</td>
<td>stopdate_1</td>
<td>12/31/2021</td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='potentialpresetitems']/div[3]/button[@type='button']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>startdate_2</td>
<td>1/1/2003</td>
</tr>
<tr>
<td>type</td>
<td>stopdate_2</td>
<td>12/31/2023</td>
</tr>
<tr>
<td>click</td>
<td>//button[@type='button']</td>
<td>//div[@id='potentialpresetitems']/div[4]/button[@type='button']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>startdate_3</td>
<td>1/1/2004</td>
</tr>
<tr>
<td>type</td>
<td>stopdate_3</td>
<td>12/31/2024</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>editaccess_submit</td>
......@@ -93,7 +183,7 @@
</tr>
<tr>
<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>exact:Your View contains no blocks.&nbsp;&nbsp;Do you really want to give these users access to the View?</td>
<td></td>
</tr>
<tr>
......@@ -101,6 +191,11 @@
<td>View created successfully</td>
<td></td>
</tr>
<tr>
<td>setSpeed</td>
<td>0</td>
<td></td>
</tr>
</tbody></table>
</body>
......
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Delete_View</title>
<?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>Delete View</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Delete_View</td></tr>
<tr><td rowspan="1" colspan="3">Delete View</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/view/</td>
<td></td>
<td>open</td>
<td>/view/</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Delete']</td>
<td></td>
<td>clickAndWait</td>
<td>link=Delete this View</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Do you really want to delete this view?</td>
<td></td>
<td>assertTextPresent</td>
<td>Do you really want to delete this View?*</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>View deleted</td>
<td></td>
<td>clickAndWait</td>
<td>deleteview_submit</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>View deleted</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