168 lines
3.2 KiB
HTML
168 lines
3.2 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="" />
|
||
|
<title>TestChangeDates</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<table cellpadding="1" cellspacing="1" border="1">
|
||
|
<thead>
|
||
|
<tr><td rowspan="1" colspan="3">TestChangeDates</td></tr>
|
||
|
</thead><tbody>
|
||
|
<tr>
|
||
|
<td>open</td>
|
||
|
<td>/wp-admin/</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>clickAndWait</td>
|
||
|
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>type</td>
|
||
|
<td>upload-0</td>
|
||
|
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>clickAndWait</td>
|
||
|
<td>//input[@id='top-submit']</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>assertTextPresent</td>
|
||
|
<td>The following files were uploaded: 1990-01-01-sample-comic.jpeg</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>clickAndWait</td>
|
||
|
<td>link=Change Dates</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>type</td>
|
||
|
<td>start-date</td>
|
||
|
<td>1989-12-30</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>type</td>
|
||
|
<td>end-date</td>
|
||
|
<td>1990-01-10</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>clickAndWait</td>
|
||
|
<td>//input[@value='Filter']</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>store</td>
|
||
|
<td>1990-01-02</td>
|
||
|
<td>test_date</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>storeValue</td>
|
||
|
<td>//div[@class='activity-box']/form[2]//tr[1]//input[@type='text']</td>
|
||
|
<td>original_date</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>type</td>
|
||
|
<td>//div[@class='activity-box']/form[2]//tr[1]//input[@type='text']</td>
|
||
|
<td>${test_date}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>clickAndWait</td>
|
||
|
<td>submit</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>assertTextNotPresent</td>
|
||
|
<td>Warning: rename</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>assertTextPresent</td>
|
||
|
<td>to ${test_date}</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>assertElementPresent</td>
|
||
|
<td>//div[@class='activity-box']/form[2]//tr[1]/td[contains(text(), '${test_date}')]</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>assertValue</td>
|
||
|
<td>//div[@class='activity-box']/form[2]//tr[1]//input[@type='text']</td>
|
||
|
<td>${test_date}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>type</td>
|
||
|
<td>//div[@class='activity-box']/form[2]//tr[1]//input[@type='text']</td>
|
||
|
<td>${original_date}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>clickAndWait</td>
|
||
|
<td>submit</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>assertTextPresent</td>
|
||
|
<td>to ${original_date}</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>assertTextNotPresent</td>
|
||
|
<td>Warning: rename</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>assertElementPresent</td>
|
||
|
<td>//div[@class='activity-box']/form[2]//tr[1]/td[contains(text(), '${original_date}')]</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>clickAndWait</td>
|
||
|
<td>link=Bulk Edit</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>select</td>
|
||
|
<td>dates</td>
|
||
|
<td>label=January 1990</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>clickAndWait</td>
|
||
|
<td>dofilter</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>click</td>
|
||
|
<td>toggle-all</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>select</td>
|
||
|
<td>bulk-action</td>
|
||
|
<td>label=Delete Selected</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>click</td>
|
||
|
<td>doaction</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>assertConfirmation</td>
|
||
|
<td>You are about to delete the selected posts and comic files. Are you sure?</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>waitForPageToLoad</td>
|
||
|
<td>30000</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
|
||
|
</tbody></table>
|
||
|
</body>
|
||
|
</html>
|