comicpress-manager-1.4/test/selenium/wpmu/TestStorylineStructure.html
2010-04-02 19:03:58 -04:00

168 lines
3.6 KiB
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="http://leapingsheepfarm.com" />
<title>TestStorylineStructure</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestStorylineStructure</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/comicpress_manager_mu/wordpress-mu/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>enable-storyline-support</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>enable-storyline-support</td>
<td></td>
</tr>
<tr>
<td>assertVisible</td>
<td>//div[@id='storyline-holder']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>enable-storyline-support</td>
<td></td>
</tr>
<tr>
<td>assertNotVisible</td>
<td>//div[@id='storyline-holder']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>assertNotVisible</td>
<td>//div[@id='storyline-holder']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>enable-storyline-support</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>assertVisible</td>
<td>//div[@id='storyline-holder']</td>
<td></td>
</tr>
<tr>
<td>store</td>
<td>Selenium Test Category 123</td>
<td>catname1</td>
</tr>
<tr>
<td>store</td>
<td>Selenium Test Category 234</td>
<td>catname2</td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='storyline-holder']/div[1]//a</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//div[@id='storyline-holder']/div[2]/input</td>
<td>${catname1}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='storyline-holder']/div[2]/input[@value='${catname1}']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='storyline-holder']/div[2]//a[1]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//div[@id='storyline-holder']/div[3]/input</td>
<td>${catname2}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='storyline-holder']/div[3]/input[@value='${catname2}']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='storyline-holder']/div[3]//a[@class='up']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='storyline-holder']/div[2]/input[@value='${catname2}']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='storyline-holder']/div[3]/input[@value='${catname1}']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='storyline-holder']/div[3]//a[@class='delete']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='storyline-holder']/div[2]//a[@class='delete']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='storyline-holder']/div[3]/input[@value='${catname1}']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='storyline-holder']/div[2]/input[@value='${catname2}']</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>