finally add the selenium tests

This commit is contained in:
John Bintz 2010-04-02 19:03:58 -04:00
parent 6d49fbc513
commit f0218fedcf
130 changed files with 11397 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -0,0 +1 @@

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -0,0 +1 @@

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -0,0 +1,207 @@
<?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://comicpress.local/" />
<title>DoTeardown</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">DoTeardown</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=Bulk Edit</td>
<td></td>
</tr>
<tr>
<td>label</td>
<td>keep_tearing_down</td>
<td></td>
</tr>
<tr>
<td>storeText</td>
<td>//select[@id='dates']/option[last()]</td>
<td>last_date</td>
</tr>
<tr>
<td>getEval</td>
<td>&quot;${last_date}&quot;</td>
<td></td>
</tr>
<tr>
<td>gotoIf</td>
<td>&quot;${last_date}&quot; != &quot;January 1990&quot;</td>
<td>skip_teardown</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>
<tr>
<td>goto</td>
<td>keep_tearing_down</td>
<td></td>
</tr>
<tr>
<td>label</td>
<td>skip_teardown</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-edit-post-integrate</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-override-title</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-tags</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>comic_folder</td>
<td>label=comics</td>
</tr>
<tr>
<td>select</td>
<td>archive_comic_folder</td>
<td>label=comics-archive</td>
</tr>
<tr>
<td>select</td>
<td>rss_comic_folder</td>
<td>label=comics-rss</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>comic</td>
<td>label=A Moment of Clarity (default)</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Submit']</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Comics folder: comics/guild-of-thieves</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Archive folder: comics-archive/guild-of-thieves</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>RSS feed folder: comics-rss/guild-of-thieves</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Comics folder: comics/comics</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Archive folder: comics-archive/comics</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>RSS feed folder: comics-rss/comics</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Comics folder: comics</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Archive folder: comics-archive</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>RSS feed folder: comics</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

Binary file not shown.

View File

@ -0,0 +1,106 @@
<?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>TestChangeComicPressConfigNoDeleteLatestComic</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestChangeComicPressConfigNoDeleteLatestComic</td></tr>
</thead><tbody>
<!--Upload a comic for today-->
<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>getEval</td>
<td>n = new Date(); storedVars['upload_date'] = n.getFullYear() + &quot;-&quot; + (n.getMonth() + 1) + &quot;-&quot; + n.getDate();</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>override-date</td>
<td>${upload_date}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>top-submit</td>
<td></td>
</tr>
<!--Ensure Comic is Uploaded-->
<tr>
<td>clickAndWait</td>
<td>link=Edit post</td>
<td></td>
</tr>
<tr>
<td>storeLocation</td>
<td>post_location</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>preview-comic</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>sample-comic.jpeg</td>
<td></td>
</tr>
<!--Change the Config-->
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<!--Ensure Comic is Still Uploaded-->
<tr>
<td>open</td>
<td>${post_location}</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>preview-comic</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>sample-comic.jpeg</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Move to Trash</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Post moved to the trash.</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,167 @@
<?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>

View File

@ -0,0 +1,970 @@
<?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>TestComicPressManagerConfig</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestComicPressManagerConfig</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<!--Post Settings-->
<tr>
<td>storeValue</td>
<td>cpm-default-post-time</td>
<td>original_time</td>
</tr>
<tr>
<td>storeValue</td>
<td>cpm-default-override-title</td>
<td>original_title</td>
</tr>
<tr>
<td>storeValue</td>
<td>cpm-default-post-tags</td>
<td>original_tags</td>
</tr>
<tr>
<td>store</td>
<td>Selenium Title</td>
<td>title</td>
</tr>
<tr>
<td>store</td>
<td>Selenium Tags</td>
<td>tags</td>
</tr>
<tr>
<td>store</td>
<td>7:38am</td>
<td>time</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>${time}</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-override-title</td>
<td>${title}</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-tags</td>
<td>${tags}</td>
</tr>
<tr>
<td>check</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>cpm-default-post-time</td>
<td>${time}</td>
</tr>
<tr>
<td>assertValue</td>
<td>cpm-default-override-title</td>
<td>${title}</td>
</tr>
<tr>
<td>assertValue</td>
<td>cpm-default-post-tags</td>
<td>${tags}</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>${original_time}</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-override-title</td>
<td>${original_title}</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-tags</td>
<td>${original_tags}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>meow123</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-override-title</td>
<td>${title}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertNotValue</td>
<td>cpm-default-post-time</td>
<td>meow123</td>
</tr>
<tr>
<td>assertNotValue</td>
<td>cpm-default-post-time</td>
<td>${title}</td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>You entered invalid data into your configuration.</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[1]//input</td>
<td></td>
</tr>
<tr>
<td>assertNotChecked</td>
<td>//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[last()]//input</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<!--Storyline-->
<tr>
<td>check</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertNotChecked</td>
<td>//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[1]//input</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[last()]//input</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>//input[@name='cpm-default-additional-categories[]'][1]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//input[@name='additional-categories[]'][1]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>//input[@name='cpm-default-additional-categories[]'][1]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertNotChecked</td>
<td>//input[@name='additional-categories[]'][1]</td>
<td></td>
</tr>
<!--Sidebars-->
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>cpm-sidebar-type</td>
<td>label=ComicPress Status and Help</td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-edit-post-integrate</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<!--Edit Post Integration-->
<tr>
<td>clickAndWait</td>
<td>//a[@href='post-new.php']</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>ComicPress Manager Edit Post file management is enabled.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-edit-post-integrate</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[@href='post-new.php']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager Edit Post file management is enabled.</td>
<td></td>
</tr>
<!--GD Checks-->
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-perform-gd-check</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</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-not-jpeg.jpeg</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@id='top-submit']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>According to GD, the following files were invalid image files</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-perform-gd-check</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</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-not-jpeg.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</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>
<tr>
<td>assertTextPresent</td>
<td>1990-01-01-sample-comic-not-jpeg.jpeg</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-perform-gd-check</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<!--Generate Thumbnails-->
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicpress-details']//li[3]//em[@title='Generation disabled']</td>
<td>not generating</td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>rss thumbnails that are</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>archive thumbnails that are</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>If enabled, you'll be writing thumbnails to: rss</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>(thumbnails will be generated)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='comicpress-details']//li[3]//em[@title='Generation disabled']</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled']</td>
<td>not generating</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>rss thumbnails that are</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>archive thumbnails that are</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>If enabled, you'll be writing thumbnails to: archive</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>(thumbnails will be generated)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicpress-details']//li[3]//em[@title='Generation disabled']</td>
<td>not generating</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled']</td>
<td>not generating</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>rss thumbnails that are</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>archive thumbnails that are</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Generate thumbnails:</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>(thumbnails will be generated)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='comicpress-details']//li[3]//em[@title='Generation disabled']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled']</td>
<td></td>
</tr>
<!--Time 'now'-->
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>now</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>time</td>
<td>now</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>top-submit</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>New posts created. View them from the links below:</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>regexp:Sample Comic \(1990-01-01 [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Your post will be going live now</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>type</td>
<td>override-date</td>
<td>1990-01-02</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>regexp:Publish on: Jan 2, 1990 @ [0-9]{1,2}:[0-9][0-9]</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>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>${original_time}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<!--Strip ICC Profiles-->
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-strip-icc-profiles</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</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-profile.jpg</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The following files were uploaded: 1990-01-01-sample-comic-profile.jpg</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-sample-comic-profile.jpg</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>assertAttribute</td>
<td>//img[@id='comic-icon-0']@src</td>
<td>*1990-01-01-sample-comic-profile.jpg</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>
<tr>
<td>assertTextPresent</td>
<td>The following comic files and their associated thumbnails were deleted: 1990-01-01-sample-comic-profile.jpg</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-strip-icc-profiles</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,162 @@
<?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>TestDashboardWidgets</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestDashboardWidgets</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='menu-dashboard']/a[1]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-enable-dashboard-rss-feed</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='menu-dashboard']/a[1]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='dashboard_cpm']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-enable-dashboard-rss-feed</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='menu-dashboard']/a[1]</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='dashboard_cpm']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-enable-quomicpress</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='menu-dashboard']/a[1]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='dashboard_quomicpress']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-enable-quomicpress</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='menu-dashboard']/a[1]</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='dashboard_quomicpress']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-enable-quomicpress</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-enable-dashboard-rss-feed</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Widgets</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//li[contains(@id, 'dashboard_cpm')]</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//li[contains(@id, 'dashboard_quomicpress')]</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,47 @@
<?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>TestEditPage</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestEditPage</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Pages</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[@title=&quot;Edit this page&quot;]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>edButtonHTML</td>
<td></td>
</tr>
<tr>
<td>typeKeys</td>
<td>content</td>
<td>test</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>publish</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,192 @@
<?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://comicpress.local" />
<title>TestEditPost</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestEditPost</td></tr>
</thead><tbody>
<!--Ensure CPM doesn't interfere with posting-->
<tr>
<td>open</td>
<td>/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//script[contains(@src, 'prototype')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//script[contains(@src, 'effects')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//script[contains(@src, 'builder')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='comic-for-this-post']//input[@type=&quot;radio&quot;][1]</td>
<td></td>
</tr>
<tr>
<td>storeAttribute</td>
<td>//div[@id='comic-for-this-post']//input[@type=&quot;radio&quot;][1]@value</td>
<td>category</td>
</tr>
<tr>
<td>assertNotChecked</td>
<td>//div[@id='categories-all']//input[@value='1']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>title</td>
<td>Selenium Test</td>
</tr>
<tr>
<td>click</td>
<td>save-post</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>50000</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[@id='categories-all']//input[@value='${category}']</td>
<td></td>
</tr>
<tr>
<td>assertNotChecked</td>
<td>//div[@id='categories-all']//input[@value='1']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Move to Trash</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td></td>
<td>Post moved to the trash.</td>
</tr>
<!--Make Sure Dates Don't Change-->
<!--and Make Sure Uploading a Comic To A New Post Sets a Comic Category-->
<tr>
<td>clickAndWait</td>
<td>//a[@href='post-new.php']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>title</td>
<td>Selenium Test</td>
</tr>
<tr>
<td>type</td>
<td>comicpress-replace-image</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>fireEvent</td>
<td>comicpress-replace-image</td>
<td>click</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>publish</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Post published. View post</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>title</td>
<td>Selenium Test</td>
</tr>
<tr>
<td>assertChecked</td>
<td>post_category-3</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>sample-comic.jpeg</td>
<td></td>
</tr>
<!--Edit Permalink-->
<tr>
<td>click</td>
<td>//a[contains(@class, 'edit-slug')]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>new-post-slug</td>
<td>my-test-permalink</td>
</tr>
<tr>
<td>click</td>
<td>link=OK</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>publish</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>title</td>
<td>Selenium Test</td>
</tr>
<tr>
<td>assertChecked</td>
<td>post_category-3</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>sample-comic.jpeg</td>
<td></td>
</tr>
<!--Clean Up-->
<tr>
<td>click</td>
<td>link=Move to Trash</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>moved to the trash.</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,337 @@
<?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>TestFirstRun</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestFirstRun</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-e-comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-comic_folder</td>
<td>bad1</td>
</tr>
<tr>
<td>click</td>
<td>folder-e-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-rss_comic_folder</td>
<td>bad2</td>
</tr>
<tr>
<td>click</td>
<td>folder-e-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-archive_comic_folder</td>
<td>bad3</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Create your comics, archive, or RSS folders first</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Create your comics, archive, or RSS folders first, then reload this page and use the dropdowns to select the target folder.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/wp-admin/options.php</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>comicpress-manager-cpm-did-first-run</td>
<td>0</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>Update</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>ComicPress Manager First Run</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-e-comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-comic_folder</td>
<td>bad1</td>
</tr>
<tr>
<td>click</td>
<td>folder-e-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-rss_comic_folder</td>
<td>bad2</td>
</tr>
<tr>
<td>click</td>
<td>folder-e-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-archive_comic_folder</td>
<td>bad3</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/wp-admin/options.php</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>comicpress-manager-cpm-did-first-run</td>
<td>0</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>Update</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager First Run</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value=&quot;No, I'll make them myself&quot;]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/wp-admin/options.php</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>comicpress-manager-cpm-did-first-run</td>
<td>0</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>Update</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>ComicPress Manager First Run</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-e-comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-comic_folder</td>
<td>bad1</td>
</tr>
<tr>
<td>click</td>
<td>folder-e-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-rss_comic_folder</td>
<td>bad2</td>
</tr>
<tr>
<td>click</td>
<td>folder-e-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-archive_comic_folder</td>
<td>bad3</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/wp-admin/options.php</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>comicpress-manager-cpm-did-first-run</td>
<td>0</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>Update</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager First Run</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>ComicPress Manager First Run</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>select-comic_folder</td>
<td>comics</td>
</tr>
<tr>
<td>select</td>
<td>select-rss_comic_folder</td>
<td>comics-rss</td>
</tr>
<tr>
<td>select</td>
<td>select-archive_comic_folder</td>
<td>comics-archive</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,572 @@
<?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>TestImportComic</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestImportComic</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>store</td>
<td>Selenium Hovertext</td>
<td>hovertext</td>
</tr>
<tr>
<td>store</td>
<td>Selenium Transcript</td>
<td>transcript</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>select-comic_folder</td>
<td>comics</td>
</tr>
<tr>
<td>select</td>
<td>select-rss_comic_folder</td>
<td>comics-rss</td>
</tr>
<tr>
<td>select</td>
<td>select-archive_comic_folder</td>
<td>comics-archive</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-edit-post-integrate</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-override-title</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-tags</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</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>uncheck</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>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>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>No new posts created.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>duplicate-check</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>count-missing-posts-clicker</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>2000</td>
<td></td>
</tr>
<tr>
<td>waitForText</td>
<td>//span[@id='missing-posts-display']</td>
<td>1</td>
</tr>
<tr>
<td>assertText</td>
<td>//span[@id='missing-posts-display']</td>
<td>1</td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[@id='create-missing-posts-holder']//div[1]//input</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>time</td>
<td>12:00am</td>
</tr>
<tr>
<td>type</td>
<td>hovertext-to-use</td>
<td>${hovertext}</td>
</tr>
<tr>
<td>type</td>
<td>transcript-to-use</td>
<td>${transcript}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>New thumbnails were not needed for the following files: 1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>New posts created. View them from the links below:</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Sample Comic (1990-01-01 00:00:00)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//div[@id='cpm-messages']//a[text()='Edit post']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager Edit Post file management is enabled.</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//span[@id='timestamp']</td>
<td>Published on: Jan 1, 1990 @ 0:00</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comic-for-this-post']/div[@class='inside']//strong[1]</td>
<td>1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>assertValue</td>
<td>comicpress-img-title</td>
<td>${hovertext}</td>
</tr>
<tr>
<td>assertValue</td>
<td>comicpress-transcript</td>
<td>${transcript}</td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[@id='comic-for-this-post']//table[@class='form-table']//tr[2]//div[1]//input</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Move to Trash</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]</td>
<td></td>
</tr>
<tr>
<td>storeText</td>
<td>//div[@id='import-count-information']</td>
<td>import_count</td>
</tr>
<tr>
<td>getEval</td>
<td>/safely import ([0-9]+) comics/.test(storedVars['import_count']); storedVars['import_count'] = RegExp.$1</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Bulk Edit page</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class='activity-box']/h2</td>
<td>Bulk Edit</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/good-large-import.zip</td>
</tr>
<tr>
<td>uncheck</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>time</td>
<td>12:00am</td>
</tr>
<tr>
<td>click</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>200000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>count-missing-posts-clicker</td>
<td></td>
</tr>
<tr>
<td>waitForText</td>
<td>//span[@id='missing-posts-display']</td>
<td>30</td>
</tr>
<tr>
<td>assertText</td>
<td>//span[@id='missing-posts-display']</td>
<td>30</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='cpm-messages']/ul/li[1]</td>
<td>Import safely exited before you ran out of execution time. Scroll down to continue creating missing posts.</td>
</tr>
<tr>
<td>getEval</td>
<td>storedVars['index'] = storedVars['import_count']</td>
<td></td>
</tr>
<tr>
<td>while</td>
<td>storedVars['index'] &gt; 0</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='cpm-messages']/ul/li[last()]/ul/li[${index}]/strong</td>
<td>Sample Import Comic</td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>regexp:1990-01-[0-9][0-9]</td>
<td></td>
</tr>
<tr>
<td>getEval</td>
<td>storedVars['index']--</td>
<td></td>
</tr>
<tr>
<td>endWhile</td>
<td></td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Continue Creating Posts']</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='cpm-messages']/ul/li[1]</td>
<td>Import safely exited before you ran out of execution time. Scroll down to continue creating missing posts.</td>
</tr>
<tr>
<td>getEval</td>
<td>storedVars['index'] = storedVars['import_count']</td>
<td></td>
</tr>
<tr>
<td>while</td>
<td>storedVars['index'] &gt; 0</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Sample Import Comic</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>regexp:1990-01-[0-9][0-9] 00:00:00</td>
<td></td>
</tr>
<tr>
<td>getEval</td>
<td>storedVars['index']--</td>
<td></td>
</tr>
<tr>
<td>endWhile</td>
<td></td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Continue Creating Posts']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>No new posts needed to be created.</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>
<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>
<tr>
<td>assertTextPresent</td>
<td>No items to display</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload-0</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-UPPERCASE-COMIC.JPG</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>count-missing-posts-clicker</td>
<td></td>
</tr>
<tr>
<td>waitForText</td>
<td>//span[@id='missing-posts-display']</td>
<td>1</td>
</tr>
<tr>
<td>assertText</td>
<td>//span[@id='missing-posts-display']</td>
<td>1</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>

View File

@ -0,0 +1,337 @@
<?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>TestQuomicPress</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestQuomicPress</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>12:00am</td>
</tr>
<tr>
<td>check</td>
<td>cpm-edit-post-integrate</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-enable-quomicpress</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>50000</td>
<td></td>
</tr>
<tr>
<td>assertSelectedIndex</td>
<td>//select[@id='mm']</td>
<td>0</td>
</tr>
<tr>
<td>assertValue</td>
<td>//input[@id='jj']</td>
<td>01</td>
</tr>
<tr>
<td>assertValue</td>
<td>//input[@id='aa']</td>
<td>1990</td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//span[@id='timestamp']/b[contains(text(), 'Jan 1, 1990')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Move to Trash</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>cpm-default-post-time</td>
<td>original_post_time</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>7:35am</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>verifyText</td>
<td>//span[@id='timestamp']/b</td>
<td>Jan 1, 1990 @ 7:35</td>
</tr>
<tr>
<td>click</td>
<td>link=Move to Trash</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>${original_post_time}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</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>storeValue</td>
<td>//div[@id='storyline-holder']/div[1]/input</td>
<td>chosen_storyline</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//strong[text()='${chosen_storyline}']</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>//input[@name='in-comic-category[]']</td>
<td>category_id</td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[@id='comic-for-this-post']//input[@name='post_category[]'][@value='${category_id}']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Move to Trash</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>//div[@id='storyline-holder']/div[last()]/input</td>
<td>chosen_storyline</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//strong[text()='${chosen_storyline}']</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>//input[@name='in-comic-category[]']</td>
<td>category_id</td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[@id='comic-for-this-post']//input[@name='post_category[]'][@value='${category_id}']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Move to Trash</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>type</td>
<td>override-date</td>
<td>1990-01-02</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//span[@id='timestamp']/b[contains(text(), 'Jan 2, 1990')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Move to Trash</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,267 @@
<?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>TestReplaceComicFile</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestReplaceComicFile</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>50000</td>
<td></td>
</tr>
<tr>
<td>storeElementWidth</td>
<td>//img[@id='comic-icon']</td>
<td>width</td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='comic-for-this-post']//strong/a[contains(@href, 'sample-comic.jpeg')]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>comicpress-replace-image</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-wider-than-longer.png</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@id='save-post']</td>
<td></td>
</tr>
<tr>
<td>assertNotElementWidth</td>
<td>//img[@id='comic-icon']</td>
<td>${width}</td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='comic-for-this-post']//strong/a[contains(@href, 'sample-comic.png')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Move to Trash</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertNotVisible</td>
<td>//tr[@id='rebuild-thumbnails']</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>click</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>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>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>No new posts created.</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>storeElementWidth</td>
<td>//td[@class='comic']//img</td>
<td>width</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-wider-than-longer.png</td>
</tr>
<tr>
<td>click</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>overwrite-existing-file-choice</td>
<td>label=1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>click</td>
<td>//option[@value='1990-01-01-sample-comic.jpeg']</td>
<td></td>
</tr>
<tr>
<td>assertVisible</td>
<td>//tr[@id='rebuild-thumbnails']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>upload-destination</td>
<td>label=Archive folder</td>
</tr>
<tr>
<td>click</td>
<td>//option[@value='archive_comic']</td>
<td></td>
</tr>
<tr>
<td>assertNotVisible</td>
<td>//tr[@id='rebuild-thumbnails']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>upload-destination</td>
<td>label=Comics folder</td>
</tr>
<tr>
<td>click</td>
<td>//option[@value='comic']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>No new posts created.</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Uploaded file 1990-01-01-wider-than-longer.png renamed to 1990-01-01-sample-comic.png.</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The following files were uploaded: 1990-01-01-sample-comic.png</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-sample-comic.png</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>verifyNotElementWidth</td>
<td>//td[@class='comic']//img</td>
<td>${width}</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>clickAndWait</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>

View File

@ -0,0 +1,187 @@
<?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://comicpress.local/" />
<title>TestSidebars</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestSidebars</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//img[contains(@src, 'comicpress-icon.png')]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>cpm-sidebar-type</td>
<td>label=ComicPress Status and Help</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='cpm-activity-column'][@class='no-sidebar']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='comicpress-details']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='comicpress-details']//a[text()='comicpress-config.php']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//div[@id='comicpress-details']//a[text()='comicpress-config.php']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//h2[text()='Edit ComicPress Config']</td>
<td></td>
</tr>
<tr>
<td>storeSelectedLabel</td>
<td>comiccat</td>
<td>comiccat</td>
</tr>
<tr>
<td>storeSelectedLabel</td>
<td>blogcat</td>
<td>blogcat</td>
</tr>
<tr>
<td>storeSelectedValue</td>
<td>select-comic_folder</td>
<td>comic_folder</td>
</tr>
<tr>
<td>storeSelectedValue</td>
<td>select-rss_comic_folder</td>
<td>rss_comic_folder</td>
</tr>
<tr>
<td>storeSelectedValue</td>
<td>select-archive_comic_folder</td>
<td>archive_comic_folder</td>
</tr>
<tr>
<td>storeSelectedValue</td>
<td>select-mini_comic_folder</td>
<td>mini_comic_folder</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicpress-details']//li[6]/a</td>
<td>${comiccat}</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicpress-details']//li[7]/a</td>
<td>${blogcat}</td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Comics folder:</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Archive folder: ${archive_comic_folder}</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>RSS feed folder: ${rss_comic_folder}</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Minithumb folder: ${mini_comic_folder}</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[text()='Show debug info']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>cpm-sidebar-type</td>
<td>label=Latest Comic Posts</td>
</tr>
<tr>
<td>assertVisible</td>
<td>//span[@id='debug-info']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='cpm-activity-column'][@class='no-sidebar']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='comicpress-latest-posts']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>cpm-sidebar-type</td>
<td>label=No Sidebar</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='cpm-activity-column'][@class='no-sidebar']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>cpm-sidebar-type</td>
<td>label=ComicPress Status and Help</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,853 @@
<?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://comicpress.local" />
<title>TestStorylineStructure</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestStorylineStructure</td></tr>
</thead><tbody>
<!--Basics-->
<tr>
<td>open</td>
<td>/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//input[@name='original-categories']</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>
<!--New Categories-->
<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>
<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>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='comic-for-this-post']//*[text()=&quot;Storyline&quot;]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></td>
</tr>
<tr>
<td>check</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>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='comic-for-this-post']//th[contains(text(),&quot;Storyline&quot;)]</td>
<td></td>
</tr>
<!--Modifying Categories in WordPress-->
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></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>Selenium Test</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Category Selenium Test created.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comic-for-this-post']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='categories-all']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='multiple-new-post-holder']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='create-missing-posts-holder']</td>
<td>*Selenium Test*</td>
</tr>
<!--Change Slug-->
<tr>
<td>clickAndWait</td>
<td>link=Categories</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Selenium Test</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//td[contains(@class, 'slug') and contains(text(), 'selenium-test')]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(text(),'Selenium Test')]</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>cat_name</td>
<td>Selenium Test</td>
</tr>
<tr>
<td>assertValue</td>
<td>category_nicename</td>
<td>selenium-test</td>
</tr>
<tr>
<td>type</td>
<td>category_nicename</td>
<td>selenium-test2</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//td[contains(@class, 'slug') and contains(text(), 'selenium-test2')]</td>
<td></td>
</tr>
<!--Check After Slug Change-->
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//input[@value='Selenium Test']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comic-for-this-post']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='categories-all']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='multiple-new-post-holder']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='create-missing-posts-holder']</td>
<td>*Selenium Test*</td>
</tr>
<!--Change Slug Again-->
<tr>
<td>clickAndWait</td>
<td>link=Categories</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//td[contains(@class, 'slug') and contains(text(), 'selenium-test')]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(text(),'Selenium Test')]</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>cat_name</td>
<td>Selenium Test</td>
</tr>
<tr>
<td>assertValue</td>
<td>category_nicename</td>
<td>selenium-test2</td>
</tr>
<tr>
<td>type</td>
<td>category_nicename</td>
<td>selenium-test3</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//td[contains(@class, 'slug') and contains(text(), 'selenium-test3')]</td>
<td></td>
</tr>
<!--Check After Slug Change-->
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//input[@value='Selenium Test']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comic-for-this-post']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='categories-all']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='multiple-new-post-holder']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='create-missing-posts-holder']</td>
<td>*Selenium Test*</td>
</tr>
<!--Add Another Storyline Category-->
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='storyline-holder']/div[2]/div/a[1]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//div[@id='storyline-holder']/div[3]/input</td>
<td>Selenium Two</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Category Selenium Two created.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Categories</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Selenium Test</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Selenium Two</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//td[contains(@class, 'slug') and contains(text(), 'selenium-test3')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//td[contains(@class, 'slug') and contains(text(), 'selenium-two')]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(text(),'Selenium Two')]</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>cat_name</td>
<td>Selenium Two</td>
</tr>
<tr>
<td>assertValue</td>
<td>category_nicename</td>
<td>selenium-two</td>
</tr>
<tr>
<td>type</td>
<td>category_nicename</td>
<td>selenium-two2</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//td[contains(@class, 'slug') and contains(text(), 'selenium-test3')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//td[contains(@class, 'slug') and contains(text(), 'selenium-two2')]</td>
<td></td>
</tr>
<!--Check After Slug Change-->
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//input[@value='Selenium Test']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//input[@value='Selenium Two']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comic-for-this-post']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='categories-all']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comic-for-this-post']</td>
<td>*Selenium Two*</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='categories-all']</td>
<td>*Selenium Two*</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='multiple-new-post-holder']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='multiple-new-post-holder']</td>
<td>*Selenium Two*</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='create-missing-posts-holder']</td>
<td>*Selenium Test*</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='create-missing-posts-holder']</td>
<td>*Selenium Two*</td>
</tr>
<!--Cleanup-->
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></td>
</tr>
<tr>
<td>waitForVisible</td>
<td>storyline-holder</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//input[@value='Selenium Test']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//input[@value='Selenium Two']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='storyline-holder']/div[2]/div/a[5]</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//input[@value='Selenium Test']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='storyline-holder']/div[2]/div/a[5]</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//input[@value='Selenium Two']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Category Selenium Test deleted.</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Category Selenium Two deleted.</td>
<td></td>
</tr>
<!--Add Comic to New Category, Delete Category, Intelligently Reassign To Parent Category-->
<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>Selenium Test</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Category Selenium Test created.</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='storyline-holder']/div[2]//a[2]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//div[@id='storyline-holder']/div[3]/input</td>
<td>Selenium Test Child</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Category Selenium Test Child created.</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>uncheck</td>
<td>//th[contains(text(), &quot;Storyline:&quot;)]/..//div[1]//input</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>//th[contains(text(), &quot;Storyline:&quot;)]/..//div[3]//input</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Edit post</td>
<td></td>
</tr>
<tr>
<td>storeLocation</td>
<td>edit_post</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//th[contains(text(), &quot;Storyline&quot;)]/..//div[3]//input</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='storyline-holder']/div[3]/div/a[5]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Category Selenium Test Child deleted.</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The following orphaned comic posts were placed into their original category's parent:</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Storyline structure saved.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Edit</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>m</td>
<td>label=January 1990</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>post-query-submit</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//table[contains(@class, 'widefat')]//span[@class='edit']/a</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//th[contains(text(), &quot;Storyline&quot;)]/..//div[2]//input</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>*Sample Comic*</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Post deleted.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='storyline-holder']/div[2]/div/a[5]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Category Selenium Test deleted.</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,545 @@
<?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>TestSubdirectorySupport</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestSubdirectorySupport</td></tr>
</thead><tbody>
<!--Sub Directories-->
<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>clickAndWait</td>
<td>//input[@value='Save Structure and Modify Categories']</td>
<td></td>
</tr>
<!--Sidebar-->
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Comics folder: comics</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Archive folder: comics-archive</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>RSS feed folder: comics</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Comics folder: comics/guild-of-thieves</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Archive folder: comics-archive/guild-of-thieves</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>RSS feed folder: comics-rss/guild-of-thieves</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//select[@name='comic']/option[text()='Guild of Thieves']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>comic</td>
<td>label=Guild of Thieves</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Submit']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Now managing Guild of Thieves</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Comics folder: comics/guild-of-thieves</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Archive folder: comics-archive/guild-of-thieves</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>RSS feed folder: comics-rss/guild-of-thieves</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//select[@name='comic']/option[text()='Guild of Thieves']</td>
<td></td>
</tr>
<!--Switch Twice-->
<tr>
<td>select</td>
<td>comic</td>
<td>label=Volume 2: Candynomics</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Submit']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Now managing Volume 2: Candynomics.</td>
<td></td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>comic</td>
<td>Volume 2: Candynomics</td>
</tr>
<tr>
<td>select</td>
<td>comic</td>
<td>label=Guild of Thieves</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Submit']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Now managing Guild of Thieves.</td>
<td></td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>comic</td>
<td>Guild of Thieves</td>
</tr>
<!--Upload-->
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Reminder: You are managing the Guild of Thieves comic subdirectory.</td>
<td></td>
</tr>
<tr>
<td>assertNotChecked</td>
<td>//div[1]/label/input</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[2]/label/input</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>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>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<!--Bulk Edit Modified-->
<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>assertElementPresent</td>
<td>//img[contains(@src, 'comics-archive/guild-of-thieves/1990-01-01')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//a[contains(@href, 'comics-archive/guild-of-thieves/1990-01')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//a[contains(@href, 'comics-rss/guild-of-thieves/1990-01')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//a[contains(@href, 'comics/guild-of-thieves/1990-01')]</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>
<tr>
<td>assertTextPresent</td>
<td>1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<!--Import-->
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Reminder: You are managing the Guild of Thieves comic subdirectory.</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>click</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>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>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>count-missing-posts-clicker</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>2000</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='cpm-activity-column']/div/table/tbody/tr/td</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>missing-posts-display</td>
<td>1</td>
</tr>
<tr>
<td>assertNotChecked</td>
<td>//div[1]/label/input</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[2]/label/input</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>New thumbnails were not needed for the following files: 1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Sample Comic (1990-01-01 00:00:00)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Edit post</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>title</td>
<td>Sample Comic</td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//a[contains(@href, 'comics/guild-of-thieves/1990-01')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//a[contains(@href, 'comics-rss/guild-of-thieves/1990-01')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//a[contains(@href, 'comics-archive/guild-of-thieves/1990-01')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>*'Sample Comic'*</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Post deleted.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Bulk Edit</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//select[@id='dates']/option[text()='January 1990']</td>
<td></td>
</tr>
<!--QuomicPress-->
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>It looks like this is a new ComicPress install.</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>in the Guild of Thieves category</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>will be uploaded to the Guild of Thieves comic subdirectory</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>title</td>
<td>Sample Comic</td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//a[contains(@href, 'comics/guild-of-thieves/1990-01')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//a[contains(@href, 'comics-rss/guild-of-thieves/1990-01')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//a[contains(@href, 'comics-archive/guild-of-thieves/1990-01')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>will be uploaded to the Guild of Thieves comic subdirectory</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Move to Trash</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>moved to the trash</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Bulk Edit</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//select[@id='dates']/option[text()='January 1990']</td>
<td></td>
</tr>
<!--Tear Down-->
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>comic</td>
<td>label=A Moment of Clarity (default)</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Submit']</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Comics folder: comics/guild-of-thieves</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Archive folder: comics-archive/guild-of-thieves</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>RSS feed folder: comics-rss/guild-of-thieves</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Comics folder: comics/comics</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Archive folder: comics-archive/comics</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>RSS feed folder: comics-rss/comics</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Comics folder: comics</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Archive folder: comics-archive</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>RSS feed folder: comics</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,28 @@
<?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>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>Test Suite</title>
</head>
<body>
<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href="TestEditPost.html">TestEditPost</a></td></tr>
<tr><td><a href="TestDashboardWidgets.html">TestDashboardWidgets</a></td></tr>
<tr><td><a href="TestStorylineStructure.html">TestStorylineStructure</a></td></tr>
<tr><td><a href="TestFirstRun.html">TestFirstRun</a></td></tr>
<tr><td><a href="TestChangeDates.html">TestChangeDates</a></td></tr>
<tr><td><a href="TestUploadComicFile.html">TestUploadComicFile</a></td></tr>
<tr><td><a href="TestComicPressManagerConfig.html">TestComicPressManagerConfig</a></td></tr>
<tr><td><a href="TestSidebars.html">TestSidebars</a></td></tr>
<tr><td><a href="TestQuomicPress.html">TestQuomicPress</a></td></tr>
<tr><td><a href="TestReplaceComicFile.html">TestReplaceComicFile</a></td></tr>
<tr><td><a href="TestImportComic.html">TestImportComic</a></td></tr>
<tr><td><a href="TestEditPage.html">TestEditPage</a></td></tr>
<tr><td><a href="TestSubdirectorySupport.html">TestSubdirectorySupport</a></td></tr>
<tr><td><a href="TestChangeComicPressConfigNoDeleteLatestComic.html">TestChangeComicPressConfigNoDeleteLatestComic</a></td></tr>
<tr><td><a href="DoTeardown.html">DoTeardown</a></td></tr>
</tbody></table>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

BIN
test/selenium/comics.zip Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -0,0 +1,14 @@
<?php
$file = "1990-01-01-sample-comic-cmyk.jpeg";
$target = "1990-01-01-sample-comic-from-cmyk.jpeg";
var_dump(getimagesize($file));
$cmyk_data = imagecreatefromjpeg($file);
imagejpeg($cmyk_data, $target, 80);
var_dump(getimagesize($target));
?>

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -0,0 +1 @@

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -0,0 +1 @@

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -0,0 +1,132 @@
<?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>DoTeardown</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">DoTeardown</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=Bulk Edit</td>
<td></td>
</tr>
<tr>
<td>label</td>
<td>keep_tearing_down</td>
<td></td>
</tr>
<tr>
<td>storeText</td>
<td>//select[@id='dates']/option[last()]</td>
<td>last_date</td>
</tr>
<tr>
<td>getEval</td>
<td>&quot;${last_date}&quot;</td>
<td></td>
</tr>
<tr>
<td>gotoIf</td>
<td>&quot;${last_date}&quot; != &quot;January 1990&quot;</td>
<td>skip_teardown</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>
<tr>
<td>goto</td>
<td>keep_tearing_down</td>
<td></td>
</tr>
<tr>
<td>label</td>
<td>skip_teardown</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-edit-post-integrate</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-override-title</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-tags</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,167 @@
<?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://testcomic.leapingsheepfarm.com" />
<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>/comicpress_manager_mu/wordpress-mu/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>

View File

@ -0,0 +1,707 @@
<?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>TestComicPressManagerConfig</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestComicPressManagerConfig</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=Manager Config</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>cpm-default-post-time</td>
<td>original_time</td>
</tr>
<tr>
<td>storeValue</td>
<td>cpm-default-override-title</td>
<td>original_title</td>
</tr>
<tr>
<td>storeValue</td>
<td>cpm-default-post-tags</td>
<td>original_tags</td>
</tr>
<tr>
<td>store</td>
<td>Selenium Title</td>
<td>title</td>
</tr>
<tr>
<td>store</td>
<td>Selenium Tags</td>
<td>tags</td>
</tr>
<tr>
<td>store</td>
<td>7:38am</td>
<td>time</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>${time}</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-override-title</td>
<td>${title}</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-tags</td>
<td>${tags}</td>
</tr>
<tr>
<td>check</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>cpm-default-post-time</td>
<td>${time}</td>
</tr>
<tr>
<td>assertValue</td>
<td>cpm-default-override-title</td>
<td>${title}</td>
</tr>
<tr>
<td>assertValue</td>
<td>cpm-default-post-tags</td>
<td>${tags}</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>${original_time}</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-override-title</td>
<td>${original_title}</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-tags</td>
<td>${original_tags}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>meow123</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-override-title</td>
<td>${title}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertNotValue</td>
<td>cpm-default-post-time</td>
<td>meow123</td>
</tr>
<tr>
<td>assertNotValue</td>
<td>cpm-default-post-time</td>
<td>${title}</td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>You entered invalid data into your configuration.</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[1]//input</td>
<td></td>
</tr>
<tr>
<td>assertNotChecked</td>
<td>//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[last()]//input</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertNotChecked</td>
<td>//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[1]//input</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[last()]//input</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>//input[@name='cpm-default-additional-categories[]'][1]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//input[@name='additional-categories[]'][1]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>//input[@name='cpm-default-additional-categories[]'][1]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertNotChecked</td>
<td>//input[@name='additional-categories[]'][1]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>cpm-sidebar-type</td>
<td>label=ComicPress Status and Help</td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-edit-post-integrate</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager configuration updated.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[@href='post-new.php']</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>ComicPress Manager Edit Post file management is enabled.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-edit-post-integrate</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[@href='post-new.php']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager Edit Post file management is enabled.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-perform-gd-check</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</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-not-jpeg.jpeg</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@id='top-submit']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>According to GD, the following files were invalid image files</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-perform-gd-check</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</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-not-jpeg.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</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>
<tr>
<td>assertTextPresent</td>
<td>1990-01-01-sample-comic-not-jpeg.jpeg</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-perform-gd-check</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled']</td>
<td>not generating</td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='comicpress-details']//li[5]//em[@title='Generation disabled']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>rss thumbnails that are</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>archive thumbnails that are</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>If enabled, you'll be writing thumbnails to: rss</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>(thumbnails will be generated)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled']</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicpress-details']//li[5]//em[@title='Generation disabled']</td>
<td>not generating</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>rss thumbnails that are</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>archive thumbnails that are</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>If enabled, you'll be writing thumbnails to: archive</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>(thumbnails will be generated)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled']</td>
<td>not generating</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicpress-details']//li[5]//em[@title='Generation disabled']</td>
<td>not generating</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>rss thumbnails that are</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>archive thumbnails that are</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Generate thumbnails:</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>(thumbnails will be generated)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='comicpress-details']//li[5]//em[@title='Generation disabled']</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,162 @@
<?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>TestDashboardWidgets</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestDashboardWidgets</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>//li[@id='menu-dashboard']/a[1]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-enable-dashboard-rss-feed</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='menu-dashboard']/a[1]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='dashboard_cpm']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-enable-dashboard-rss-feed</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='menu-dashboard']/a[1]</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='dashboard_cpm']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-enable-quomicpress</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='menu-dashboard']/a[1]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='dashboard_quomicpress']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-enable-quomicpress</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='menu-dashboard']/a[1]</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='dashboard_quomicpress']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-enable-quomicpress</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-enable-dashboard-rss-feed</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Widgets</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//li[contains(@id, 'dashboard_cpm')]</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//li[contains(@id, 'dashboard_quomicpress')]</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,347 @@
<?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>TestFirstRun</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestFirstRun</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-e-comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-comic_folder</td>
<td>bad1</td>
</tr>
<tr>
<td>click</td>
<td>folder-e-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-rss_comic_folder</td>
<td>bad2</td>
</tr>
<tr>
<td>click</td>
<td>folder-e-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-archive_comic_folder</td>
<td>bad3</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Create your comics, archive, or RSS folders first</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Create your comics, archive, or RSS folders first, then reload this page and use the dropdowns to select the target folder.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/comicpress_manager_mu/wpmu/comic/wp-admin/options.php</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>comicpress-manager-cpm-did-first-run</td>
<td>0</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>Update</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>ComicPress Manager First Run</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-e-comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-comic_folder</td>
<td>bad1</td>
</tr>
<tr>
<td>click</td>
<td>folder-e-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-rss_comic_folder</td>
<td>bad2</td>
</tr>
<tr>
<td>click</td>
<td>folder-e-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-archive_comic_folder</td>
<td>bad3</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/comicpress_manager_mu/wpmu/comic/wp-admin/options.php</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>comicpress-manager-cpm-did-first-run</td>
<td>0</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>Update</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager First Run</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value=&quot;No, I'll make them myself&quot;]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The comic folder bad1 does not exist</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/comicpress_manager_mu/wpmu/comic/wp-admin/options.php</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>comicpress-manager-cpm-did-first-run</td>
<td>0</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>Update</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>ComicPress Manager First Run</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-e-comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-comic_folder</td>
<td>bad1</td>
</tr>
<tr>
<td>click</td>
<td>folder-e-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-rss_comic_folder</td>
<td>bad2</td>
</tr>
<tr>
<td>click</td>
<td>folder-e-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>enter-archive_comic_folder</td>
<td>bad3</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/comicpress_manager_mu/wpmu/comic/wp-admin/options.php</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>comicpress-manager-cpm-did-first-run</td>
<td>0</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>Update</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager First Run</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>ComicPress Manager First Run</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The comic folder bad1 does not exist</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>select-comic_folder</td>
<td>comics</td>
</tr>
<tr>
<td>select</td>
<td>select-rss_comic_folder</td>
<td>comics-rss</td>
</tr>
<tr>
<td>select</td>
<td>select-archive_comic_folder</td>
<td>comics-archive</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,567 @@
<?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>TestImportComic</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestImportComic</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/comicpress_manager_mu/wordpress-mu/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>store</td>
<td>Selenium Hovertext</td>
<td>hovertext</td>
</tr>
<tr>
<td>store</td>
<td>Selenium Transcript</td>
<td>transcript</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-rss_comic_folder</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>folder-s-archive_comic_folder</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>select-comic_folder</td>
<td>comics</td>
</tr>
<tr>
<td>select</td>
<td>select-rss_comic_folder</td>
<td>comics-rss</td>
</tr>
<tr>
<td>select</td>
<td>select-archive_comic_folder</td>
<td>comics-archive</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Update Config']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-edit-post-integrate</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-override-title</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-tags</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</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>uncheck</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>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>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>No new posts created.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[2]/a</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>count-missing-posts-clicker</td>
<td></td>
</tr>
<tr>
<td>waitForText</td>
<td>//span[@id='missing-posts-display']</td>
<td>1</td>
</tr>
<tr>
<td>assertText</td>
<td>//span[@id='missing-posts-display']</td>
<td>1</td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[@id='create-missing-posts-holder']//div[1]//input</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>time</td>
<td>12:00am</td>
</tr>
<tr>
<td>type</td>
<td>hovertext-to-use</td>
<td>${hovertext}</td>
</tr>
<tr>
<td>type</td>
<td>transcript-to-use</td>
<td>${transcript}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>New thumbnails were not needed for the following files: 1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>New posts created. View them from the links below:</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Sample Comic (1990-01-01 00:00:00)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//div[@id='cpm-messages']//a[text()='Edit post']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>ComicPress Manager Edit Post file management is enabled.</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//span[@id='timestamp']</td>
<td>Published on: Jan 1, 1990 @ 0:00</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicdiv']/div[@class='inside']//strong[1]</td>
<td>1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>assertValue</td>
<td>comicpress-img-title</td>
<td>${hovertext}</td>
</tr>
<tr>
<td>assertValue</td>
<td>comicpress-transcript</td>
<td>${transcript}</td>
</tr>
<tr>
<td>assertChecked</td>
<td>//div[@id='comicdiv']//table[@class='form-table']//tr[2]//div[1]//input</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this post 'Sample Comic'<br />&nbsp;&nbsp;'Cancel' to stop, 'OK' to delete.</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[2]/a</td>
<td></td>
</tr>
<tr>
<td>storeText</td>
<td>//div[@id='import-count-information']</td>
<td>import_count</td>
</tr>
<tr>
<td>getEval</td>
<td>/safely import ([0-9]+) comics/.test(storedVars['import_count']); storedVars['import_count'] = RegExp.$1</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Bulk Edit page</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class='activity-box']/h2</td>
<td>Bulk Edit</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/good-large-import.zip</td>
</tr>
<tr>
<td>uncheck</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>time</td>
<td>12:00am</td>
</tr>
<tr>
<td>click</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>200000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[2]/a</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>count-missing-posts-clicker</td>
<td></td>
</tr>
<tr>
<td>waitForText</td>
<td>//span[@id='missing-posts-display']</td>
<td>30</td>
</tr>
<tr>
<td>assertText</td>
<td>//span[@id='missing-posts-display']</td>
<td>30</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='cpm-messages']/ul/li[1]</td>
<td>Import safely exited before you ran out of execution time. Scroll down to continue creating missing posts.</td>
</tr>
<tr>
<td>getEval</td>
<td>storedVars['index'] = storedVars['import_count']</td>
<td></td>
</tr>
<tr>
<td>while</td>
<td>storedVars['index'] &gt; 0</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='cpm-messages']/ul/li[last()]/ul/li[${index}]/strong</td>
<td>Sample Import Comic</td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>regexp:1990-01-[0-9][0-9]</td>
<td></td>
</tr>
<tr>
<td>getEval</td>
<td>storedVars['index']--</td>
<td></td>
</tr>
<tr>
<td>endWhile</td>
<td></td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Continue Creating Posts']</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='cpm-messages']/ul/li[1]</td>
<td>Import safely exited before you ran out of execution time. Scroll down to continue creating missing posts.</td>
</tr>
<tr>
<td>getEval</td>
<td>storedVars['index'] = storedVars['import_count']</td>
<td></td>
</tr>
<tr>
<td>while</td>
<td>storedVars['index'] &gt; 0</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Sample Import Comic</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>regexp:1990-01-[0-9][0-9] 00:00:00</td>
<td></td>
</tr>
<tr>
<td>getEval</td>
<td>storedVars['index']--</td>
<td></td>
</tr>
<tr>
<td>endWhile</td>
<td></td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Continue Creating Posts']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>No new posts needed to be created.</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>
<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>
<tr>
<td>assertTextPresent</td>
<td>No items to display</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload-0</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-UPPERCASE-COMIC.JPG</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[2]/a</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>count-missing-posts-clicker</td>
<td></td>
</tr>
<tr>
<td>waitForText</td>
<td>//span[@id='missing-posts-display']</td>
<td>1</td>
</tr>
<tr>
<td>assertText</td>
<td>//span[@id='missing-posts-display']</td>
<td>1</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>

View File

@ -0,0 +1,52 @@
<?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>TestMUSpecificChanges</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestMUSpecificChanges</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/comicpress_manager_mu/wordpress-mu/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>You won't be able to automatically update your configuration.</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Comic Folder:</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>RSS Comic Folder:</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Archive Comic Folder:</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Archive Comic Width:</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,362 @@
<?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>TestQuomicPress</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestQuomicPress</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=Manager Config</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>12:00am</td>
</tr>
<tr>
<td>check</td>
<td>cpm-edit-post-integrate</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-enable-quomicpress</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>50000</td>
<td></td>
</tr>
<tr>
<td>assertSelectedIndex</td>
<td>//select[@id='mm']</td>
<td>0</td>
</tr>
<tr>
<td>assertValue</td>
<td>//input[@id='jj']</td>
<td>01</td>
</tr>
<tr>
<td>assertValue</td>
<td>//input[@id='aa']</td>
<td>1990</td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//span[@id='timestamp']/b[contains(text(), 'Jan 1, 1990')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this draft 'Sample Comic'<br />&nbsp;&nbsp;'Cancel' to stop, 'OK' to delete.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>cpm-default-post-time</td>
<td>original_post_time</td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>7:35am</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>verifyText</td>
<td>//span[@id='timestamp']/b</td>
<td>Jan 1, 1990 @ 7:35</td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this draft 'Sample Comic'<br />&nbsp;&nbsp;'Cancel' to stop, 'OK' to delete.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>cpm-default-post-time</td>
<td>${original_post_time}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>uncheck</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</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>storeValue</td>
<td>//div[@id='storyline-holder']/div[1]/input</td>
<td>chosen_storyline</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//strong[text()='${chosen_storyline}']</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>//input[@name='in-comic-category[]']</td>
<td>category_id</td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//input[@name='in-comic-category[]'][@value='${category_id}']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this draft 'Sample Comic'<br />&nbsp;&nbsp;'Cancel' to stop, 'OK' to delete.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-default-comic-category-is-last-storyline</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Storyline Structure</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>//div[@id='storyline-holder']/div[last()]/input</td>
<td>chosen_storyline</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//strong[text()='${chosen_storyline}']</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>//input[@name='in-comic-category[]']</td>
<td>category_id</td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>assertChecked</td>
<td>//input[@name='in-comic-category[]'][@value='${category_id}']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this draft 'Sample Comic'<br />&nbsp;&nbsp;'Cancel' to stop, 'OK' to delete.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>type</td>
<td>override-date</td>
<td>1990-01-02</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//span[@id='timestamp']/b[contains(text(), 'Jan 2, 1990')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this draft 'Sample Comic'<br />&nbsp;&nbsp;'Cancel' to stop, 'OK' to delete.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,267 @@
<?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>TestReplaceComicFile</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestReplaceComicFile</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=Dashboard</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Upload Comic File and Edit Post']</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>50000</td>
<td></td>
</tr>
<tr>
<td>storeElementWidth</td>
<td>//img[@id='comic-icon']</td>
<td>width</td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='comicdiv']//strong/a[contains(@href, 'sample-comic.jpeg')]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>comicpress-replace-image</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-wider-than-longer.png</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@id='upload-new-file-button']</td>
<td></td>
</tr>
<tr>
<td>assertNotElementWidth</td>
<td>//img[@id='comic-icon']</td>
<td>${width}</td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='comicdiv']//strong/a[contains(@href, 'sample-comic.png')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this draft 'Sample Comic'<br />&nbsp;&nbsp;'Cancel' to stop, 'OK' to delete.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</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>click</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>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>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>No new posts created.</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>storeElementWidth</td>
<td>//td[@class='comic']//img</td>
<td>width</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-wider-than-longer.png</td>
</tr>
<tr>
<td>click</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>overwrite-existing-file-choice</td>
<td>label=1990-01-01-sample-comic.jpeg</td>
</tr>
<tr>
<td>click</td>
<td>//option[@value='1990-01-01-sample-comic.jpeg']</td>
<td></td>
</tr>
<tr>
<td>assertVisible</td>
<td>//tr[@id='rebuild-thumbnails']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>upload-destination</td>
<td>label=Archive folder</td>
</tr>
<tr>
<td>click</td>
<td>//option[@value='archive_comic']</td>
<td></td>
</tr>
<tr>
<td>assertNotVisible</td>
<td>//tr[@id='rebuild-thumbnails']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>upload-destination</td>
<td>label=Comics folder</td>
</tr>
<tr>
<td>click</td>
<td>//option[@value='comic']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>No new posts created.</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Uploaded file 1990-01-01-wider-than-longer.png renamed to 1990-01-01-sample-comic.png.</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The following files were uploaded: 1990-01-01-sample-comic.png</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-sample-comic.png</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>verifyNotElementWidth</td>
<td>//td[@class='comic']//img</td>
<td>${width}</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>clickAndWait</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>

View File

@ -0,0 +1,152 @@
<?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>TestSidebars</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestSidebars</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/comicpress_manager_mu/wordpress-mu/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//img[contains(@src, 'comicpress-icon.png')]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>cpm-sidebar-type</td>
<td>label=ComicPress Status and Help</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='cpm-activity-column'][@class='no-sidebar']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='comicpress-details']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='comicpress-details']//a[text()='comicpress-config.php']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=ComicPress Config</td>
<td></td>
</tr>
<tr>
<td>storeSelectedLabel</td>
<td>comiccat</td>
<td>comiccat</td>
</tr>
<tr>
<td>storeSelectedLabel</td>
<td>blogcat</td>
<td>blogcat</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicpress-details']//li[6]/a</td>
<td>${comiccat}</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@id='comicpress-details']//li[7]/a</td>
<td>${blogcat}</td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Comics folder: comics</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Archive folder: comics-archive</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>RSS feed folder: comics-rss</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>cpm-sidebar-type</td>
<td>label=Latest Comic Posts</td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//span[@id='debug-info']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//div[@id='cpm-activity-column'][@class='no-sidebar']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='comicpress-latest-posts']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>cpm-sidebar-type</td>
<td>label=No Sidebar</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='cpm-activity-column'][@class='no-sidebar']</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>cpm-sidebar-type</td>
<td>label=ComicPress Status and Help</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,167 @@
<?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>

View File

@ -0,0 +1,23 @@
<?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>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>Test Suite</title>
</head>
<body>
<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href="TestMUSpecificChanges.html">TestMUSpecificChanges</a></td></tr>
<tr><td><a href="TestDashboardWidgets.html">TestDashboardWidgets</a></td></tr>
<tr><td><a href="TestStorylineStructure.html">TestStorylineStructure</a></td></tr>
<tr><td><a href="TestChangeDates.html">TestChangeDates</a></td></tr>
<tr><td><a href="TestUploadComicFile.html">TestUploadComicFile</a></td></tr>
<tr><td><a href="TestComicPressManagerConfig.html">TestComicPressManagerConfig</a></td></tr>
<tr><td><a href="TestSidebars.html">TestSidebars</a></td></tr>
<tr><td><a href="TestQuomicPress.html">TestQuomicPress</a></td></tr>
<tr><td><a href="TestReplaceComicFile.html">TestReplaceComicFile</a></td></tr>
<tr><td><a href="DoTeardown.html">DoTeardown</a></td></tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,841 @@
<?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>TestUploadComicFile</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestUploadComicFile</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/comicpress_manager_mu/wordpress-mu/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>store</td>
<td>Selenium Title</td>
<td>title</td>
</tr>
<tr>
<td>store</td>
<td>Selenium Hovertext</td>
<td>hovertext</td>
</tr>
<tr>
<td>store</td>
<td>Selenium Transcript</td>
<td>transcript</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-perform-gd-check</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-archive-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-rss-generate-thumbnails</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>(generating)</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>type</td>
<td>override-title-to-use</td>
<td>${title}</td>
</tr>
<tr>
<td>type</td>
<td>hovertext-to-use</td>
<td>${hovertext}</td>
</tr>
<tr>
<td>type</td>
<td>transcript-to-use</td>
<td>${transcript}</td>
</tr>
<tr>
<td>click</td>
<td>//input[@id='top-submit']</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>60000</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>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${title}</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//div[@id='cpm-messages']//a[text()='Edit post']</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>title</td>
<td>${title}</td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//span[@id='timestamp']/b[contains(text(), 'Jan 1, 1990')]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[@id='comicdiv']//a[text()='1990-01-01-sample-comic.jpeg']</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>comicpress-img-title</td>
<td>${hovertext}</td>
</tr>
<tr>
<td>assertValue</td>
<td>comicpress-transcript</td>
<td>${transcript}</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>assertTextPresent</td>
<td>Displaying 1-1 of 1</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Sample Comic</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${title}</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${hovertext}</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${transcript}</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//td[@class='comic']//a[contains(@href, '1990-01-01-sample-comic.jpeg')][text()='rss']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//td[@class='comic']//a[contains(@href, '1990-01-01-sample-comic.jpeg')][text()='archive']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>regen-1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>doaction</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The following thumbnails were written: 1990-01-01-sample-comic.jpeg</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>
<tr>
<td>assertTextPresent</td>
<td>1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class='tablenav'][1]//span[@class='displaying-num']</td>
<td>No items to display</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@id='top-submit']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>You didn't upload any files!</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload-0</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.txt</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@id='top-submit']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>According to GD, the following files were invalid image files: 1990-01-01-sample-comic.txt</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload-0</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@id='top-submit']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>According to GD, the following files were invalid image files: 1990-01-01-sample-comic-not-jpeg.jpeg</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload-0</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-too-large-file.jpeg</td>
</tr>
<tr>
<td>click</td>
<td>//input[@id='top-submit']</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>300000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Your uploaded files were larger than the post_max_size setting</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload-0</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.zip</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>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg</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>
<tr>
<td>assertTextPresent</td>
<td>1990-01-01-sample-comic.jpeg</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.txt.zip</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@id='top-submit']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>According to GD, the following files were invalid image files: 1990-01-01-sample-comic.txt</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload-0</td>
<td>/home/john/Desktop/comicpress/selenium/comics.zip</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>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg</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>
<tr>
<td>assertTextPresent</td>
<td>1990-01-01-sample-comic.jpeg</td>
<td></td>
</tr>
<!--Assume max_upload_filesize of 2M-->
<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/too-large-import.zip</td>
</tr>
<tr>
<td>click</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>60000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The file too-large-import.zip was too large.</td>
<td></td>
</tr>
<!--Make sure new GIF code is working-->
<tr>
<td>type</td>
<td>upload-0</td>
<td>/home/john/Desktop/comicpress/selenium/1990-01-01-gif_thumbnail.gif</td>
</tr>
<tr>
<td>click</td>
<td>multiple-new-post-checkbox</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The following files were uploaded: 1990-01-01-gif_thumbnail.gif</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Thumbnails were written for the following files: 1990-01-01-gif_thumbnail.gif</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>
<tr>
<td>assertTextPresent</td>
<td>1990-01-01-gif_thumbnail.gif</td>
<td></td>
</tr>
<!--No Extension but GD knows what it is-->
<tr>
<td>clickAndWait</td>
<td>link=Manager Config</td>
<td></td>
</tr>
<tr>
<td>check</td>
<td>cpm-perform-gd-check</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change Configuration']</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-no-extension-jpeg</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>top-submit</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>GD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic-no-extension-jpeg</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The following files were uploaded: 1990-01-01-sample-comic-no-extension-jpeg.jpg</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>
<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-no-extension-jpeg.zip</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>GD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic-no-extension-jpeg</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The following files were uploaded: 1990-01-01-sample-comic-no-extension-jpeg.jpg</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>
<!--Bad extension-->
<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.bad-extension</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>top-submit</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>GD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic.bad-extension</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The following files were uploaded: 1990-01-01-sample-comic.jpg</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>
<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.bad-extension.zip</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>top-submit</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>GD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic.bad-extension</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>The following files were uploaded: 1990-01-01-sample-comic.jpg</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>

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Some files were not shown because too many files have changed in this diff Show More