diff --git a/test/selenium/1990-01-01-UPPERCASE-COMIC.JPG b/test/selenium/1990-01-01-UPPERCASE-COMIC.JPG new file mode 100644 index 0000000..c7f93e8 Binary files /dev/null and b/test/selenium/1990-01-01-UPPERCASE-COMIC.JPG differ diff --git a/test/selenium/1990-01-01-gif_thumbnail.gif b/test/selenium/1990-01-01-gif_thumbnail.gif new file mode 100644 index 0000000..b3f2c2c Binary files /dev/null and b/test/selenium/1990-01-01-gif_thumbnail.gif differ diff --git a/test/selenium/1990-01-01-sample-comic-cmyk.jpeg b/test/selenium/1990-01-01-sample-comic-cmyk.jpeg new file mode 100644 index 0000000..0ad2e20 Binary files /dev/null and b/test/selenium/1990-01-01-sample-comic-cmyk.jpeg differ diff --git a/test/selenium/1990-01-01-sample-comic-from-cmyk.jpeg b/test/selenium/1990-01-01-sample-comic-from-cmyk.jpeg new file mode 100644 index 0000000..2d5c17b Binary files /dev/null and b/test/selenium/1990-01-01-sample-comic-from-cmyk.jpeg differ diff --git a/test/selenium/1990-01-01-sample-comic-no-extension-jpeg b/test/selenium/1990-01-01-sample-comic-no-extension-jpeg new file mode 100644 index 0000000..c7f93e8 Binary files /dev/null and b/test/selenium/1990-01-01-sample-comic-no-extension-jpeg differ diff --git a/test/selenium/1990-01-01-sample-comic-no-extension-jpeg.zip b/test/selenium/1990-01-01-sample-comic-no-extension-jpeg.zip new file mode 100644 index 0000000..0af6e80 Binary files /dev/null and b/test/selenium/1990-01-01-sample-comic-no-extension-jpeg.zip differ diff --git a/test/selenium/1990-01-01-sample-comic-not-jpeg.jpeg b/test/selenium/1990-01-01-sample-comic-not-jpeg.jpeg new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/test/selenium/1990-01-01-sample-comic-not-jpeg.jpeg @@ -0,0 +1 @@ + diff --git a/test/selenium/1990-01-01-sample-comic-profile.jpg b/test/selenium/1990-01-01-sample-comic-profile.jpg new file mode 100644 index 0000000..cf35237 Binary files /dev/null and b/test/selenium/1990-01-01-sample-comic-profile.jpg differ diff --git a/test/selenium/1990-01-01-sample-comic.bad-extension b/test/selenium/1990-01-01-sample-comic.bad-extension new file mode 100644 index 0000000..c7f93e8 Binary files /dev/null and b/test/selenium/1990-01-01-sample-comic.bad-extension differ diff --git a/test/selenium/1990-01-01-sample-comic.bad-extension.zip b/test/selenium/1990-01-01-sample-comic.bad-extension.zip new file mode 100644 index 0000000..c14fbc9 Binary files /dev/null and b/test/selenium/1990-01-01-sample-comic.bad-extension.zip differ diff --git a/test/selenium/1990-01-01-sample-comic.jpeg b/test/selenium/1990-01-01-sample-comic.jpeg new file mode 100644 index 0000000..c7f93e8 Binary files /dev/null and b/test/selenium/1990-01-01-sample-comic.jpeg differ diff --git a/test/selenium/1990-01-01-sample-comic.txt b/test/selenium/1990-01-01-sample-comic.txt new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/test/selenium/1990-01-01-sample-comic.txt @@ -0,0 +1 @@ + diff --git a/test/selenium/1990-01-01-sample-comic.txt.zip b/test/selenium/1990-01-01-sample-comic.txt.zip new file mode 100644 index 0000000..235a69f Binary files /dev/null and b/test/selenium/1990-01-01-sample-comic.txt.zip differ diff --git a/test/selenium/1990-01-01-sample-comic.zip b/test/selenium/1990-01-01-sample-comic.zip new file mode 100644 index 0000000..30762d4 Binary files /dev/null and b/test/selenium/1990-01-01-sample-comic.zip differ diff --git a/test/selenium/1990-01-01-too-large-file.jpeg b/test/selenium/1990-01-01-too-large-file.jpeg new file mode 100644 index 0000000..6c5d403 Binary files /dev/null and b/test/selenium/1990-01-01-too-large-file.jpeg differ diff --git a/test/selenium/1990-01-01-wider-than-longer.png b/test/selenium/1990-01-01-wider-than-longer.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/1990-01-01-wider-than-longer.png differ diff --git a/test/selenium/DoTeardown.html b/test/selenium/DoTeardown.html new file mode 100644 index 0000000..74b10e2 --- /dev/null +++ b/test/selenium/DoTeardown.html @@ -0,0 +1,207 @@ + + + +
+ + +DoTeardown | ||
clickAndWait | +link=Bulk Edit | ++ |
label | +keep_tearing_down | ++ |
storeText | +//select[@id='dates']/option[last()] | +last_date | +
getEval | +"${last_date}" | ++ |
gotoIf | +"${last_date}" != "January 1990" | +skip_teardown | +
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
goto | +keep_tearing_down | ++ |
label | +skip_teardown | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-edit-post-integrate | ++ |
check | +cpm-archive-generate-thumbnails | ++ |
check | +cpm-rss-generate-thumbnails | ++ |
type | +cpm-default-override-title | ++ |
type | +cpm-default-post-tags | ++ |
uncheck | +cpm-default-comic-category-is-last-storyline | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=ComicPress Config | ++ |
select | +comic_folder | +label=comics | +
select | +archive_comic_folder | +label=comics-archive | +
select | +rss_comic_folder | +label=comics-rss | +
clickAndWait | +//input[@value='Update Config'] | ++ |
select | +comic | +label=A Moment of Clarity (default) | +
clickAndWait | +//input[@value='Submit'] | ++ |
assertTextNotPresent | +Comics folder: comics/guild-of-thieves | ++ |
assertTextNotPresent | +Archive folder: comics-archive/guild-of-thieves | ++ |
assertTextNotPresent | +RSS feed folder: comics-rss/guild-of-thieves | ++ |
assertTextNotPresent | +Comics folder: comics/comics | ++ |
assertTextNotPresent | +Archive folder: comics-archive/comics | ++ |
assertTextNotPresent | +RSS feed folder: comics-rss/comics | ++ |
assertTextPresent | +Comics folder: comics | ++ |
assertTextPresent | +Archive folder: comics-archive | ++ |
assertTextPresent | +RSS feed folder: comics | ++ |
TestChangeComicPressConfigNoDeleteLatestComic | ||
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
getEval | +n = new Date(); storedVars['upload_date'] = n.getFullYear() + "-" + (n.getMonth() + 1) + "-" + n.getDate(); | ++ |
type | +override-date | +${upload_date} | +
clickAndWait | +top-submit | ++ |
clickAndWait | +link=Edit post | ++ |
storeLocation | +post_location | ++ |
assertElementPresent | +preview-comic | ++ |
assertTextPresent | +sample-comic.jpeg | ++ |
clickAndWait | +link=ComicPress Config | ++ |
clickAndWait | +//input[@value='Update Config'] | ++ |
open | +${post_location} | ++ |
assertElementPresent | +preview-comic | ++ |
assertTextPresent | +sample-comic.jpeg | ++ |
click | +link=Move to Trash | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +Post moved to the trash. | ++ |
TestChangeDates | ||
open | +/wp-admin/ | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +link=Change Dates | ++ |
type | +start-date | +1989-12-30 | +
type | +end-date | +1990-01-10 | +
clickAndWait | +//input[@value='Filter'] | ++ |
store | +1990-01-02 | +test_date | +
storeValue | +//div[@class='activity-box']/form[2]//tr[1]//input[@type='text'] | +original_date | +
type | +//div[@class='activity-box']/form[2]//tr[1]//input[@type='text'] | +${test_date} | +
clickAndWait | +submit | ++ |
assertTextNotPresent | +Warning: rename | ++ |
assertTextPresent | +to ${test_date} | ++ |
assertElementPresent | +//div[@class='activity-box']/form[2]//tr[1]/td[contains(text(), '${test_date}')] | ++ |
assertValue | +//div[@class='activity-box']/form[2]//tr[1]//input[@type='text'] | +${test_date} | +
type | +//div[@class='activity-box']/form[2]//tr[1]//input[@type='text'] | +${original_date} | +
clickAndWait | +submit | ++ |
assertTextPresent | +to ${original_date} | ++ |
assertTextNotPresent | +Warning: rename | ++ |
assertElementPresent | +//div[@class='activity-box']/form[2]//tr[1]/td[contains(text(), '${original_date}')] | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
TestComicPressManagerConfig | ||
open | +/wp-admin/ | ++ |
clickAndWait | +link=Manager Config | ++ |
storeValue | +cpm-default-post-time | +original_time | +
storeValue | +cpm-default-override-title | +original_title | +
storeValue | +cpm-default-post-tags | +original_tags | +
store | +Selenium Title | +title | +
store | +Selenium Tags | +tags | +
store | +7:38am | +time | +
type | +cpm-default-post-time | +${time} | +
type | +cpm-default-override-title | +${title} | +
type | +cpm-default-post-tags | +${tags} | +
check | +cpm-archive-generate-thumbnails | ++ |
check | +cpm-rss-generate-thumbnails | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
assertValue | +cpm-default-post-time | +${time} | +
assertValue | +cpm-default-override-title | +${title} | +
assertValue | +cpm-default-post-tags | +${tags} | +
type | +cpm-default-post-time | +${original_time} | +
type | +cpm-default-override-title | +${original_title} | +
type | +cpm-default-post-tags | +${original_tags} | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
type | +cpm-default-post-time | +meow123 | +
type | +cpm-default-override-title | +${title} | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertNotValue | +cpm-default-post-time | +meow123 | +
assertNotValue | +cpm-default-post-time | +${title} | +
assertTextPresent | +You entered invalid data into your configuration. | ++ |
uncheck | +cpm-default-comic-category-is-last-storyline | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertChecked | +//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[1]//input | ++ |
assertNotChecked | +//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[last()]//input | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-default-comic-category-is-last-storyline | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertNotChecked | +//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[1]//input | ++ |
assertChecked | +//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[last()]//input | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-default-comic-category-is-last-storyline | ++ |
check | +//input[@name='cpm-default-additional-categories[]'][1] | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertChecked | +//input[@name='additional-categories[]'][1] | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +//input[@name='cpm-default-additional-categories[]'][1] | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertNotChecked | +//input[@name='additional-categories[]'][1] | ++ |
clickAndWait | +link=Manager Config | ++ |
select | +cpm-sidebar-type | +label=ComicPress Status and Help | +
uncheck | +cpm-edit-post-integrate | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +//a[@href='post-new.php'] | ++ |
assertTextNotPresent | +ComicPress Manager Edit Post file management is enabled. | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-edit-post-integrate | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//a[@href='post-new.php'] | ++ |
assertTextPresent | +ComicPress Manager Edit Post file management is enabled. | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-perform-gd-check | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +According to GD, the following files were invalid image files | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-perform-gd-check | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +The following files were uploaded | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +1990-01-01-sample-comic-not-jpeg.jpeg | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-perform-gd-check | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-archive-generate-thumbnails | ++ |
check | +cpm-rss-generate-thumbnails | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertText | +//div[@id='comicpress-details']//li[3]//em[@title='Generation disabled'] | +not generating | +
assertElementNotPresent | +//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] | ++ |
clickAndWait | +link=Dashboard | ++ |
assertTextPresent | +rss thumbnails that are | ++ |
assertTextNotPresent | +archive thumbnails that are | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextPresent | +If enabled, you'll be writing thumbnails to: rss | ++ |
clickAndWait | +link=Add New | ++ |
assertTextPresent | +(thumbnails will be generated) | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-archive-generate-thumbnails | ++ |
uncheck | +cpm-rss-generate-thumbnails | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertElementNotPresent | +//div[@id='comicpress-details']//li[3]//em[@title='Generation disabled'] | ++ |
assertText | +//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] | +not generating | +
clickAndWait | +link=Dashboard | ++ |
assertTextNotPresent | +rss thumbnails that are | ++ |
assertTextPresent | +archive thumbnails that are | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextPresent | +If enabled, you'll be writing thumbnails to: archive | ++ |
clickAndWait | +link=Add New | ++ |
assertTextPresent | +(thumbnails will be generated) | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-archive-generate-thumbnails | ++ |
uncheck | +cpm-rss-generate-thumbnails | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertText | +//div[@id='comicpress-details']//li[3]//em[@title='Generation disabled'] | +not generating | +
assertText | +//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] | +not generating | +
clickAndWait | +link=Dashboard | ++ |
assertTextNotPresent | +rss thumbnails that are | ++ |
assertTextNotPresent | +archive thumbnails that are | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextNotPresent | +Generate thumbnails: | ++ |
clickAndWait | +link=Add New | ++ |
assertTextNotPresent | +(thumbnails will be generated) | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-archive-generate-thumbnails | ++ |
check | +cpm-rss-generate-thumbnails | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertElementNotPresent | +//div[@id='comicpress-details']//li[3]//em[@title='Generation disabled'] | ++ |
assertElementNotPresent | +//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] | ++ |
clickAndWait | +link=Manager Config | ++ |
type | +cpm-default-post-time | +now | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertValue | +time | +now | +
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
clickAndWait | +top-submit | ++ |
assertTextPresent | +New posts created. View them from the links below: | ++ |
assertTextPresent | +regexp:Sample Comic \(1990-01-01 [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\) | ++ |
clickAndWait | +link=Dashboard | ++ |
assertTextPresent | +Your post will be going live now | ++ |
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
type | +override-date | +1990-01-02 | +
clickAndWait | +//input[@value='Upload Comic File and Edit Post'] | ++ |
assertTextPresent | +regexp:Publish on: Jan 2, 1990 @ [0-9]{1,2}:[0-9][0-9] | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +link=Manager Config | ++ |
type | +cpm-default-post-time | +${original_time} | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-strip-icc-profiles | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-profile.jpg | +
clickAndWait | +submit | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic-profile.jpg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic-profile.jpg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
assertAttribute | +//img[@id='comic-icon-0']@src | +*1990-01-01-sample-comic-profile.jpg | +
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +The following comic files and their associated thumbnails were deleted: 1990-01-01-sample-comic-profile.jpg | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-strip-icc-profiles | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
TestDashboardWidgets | ||
open | +/wp-admin/ | ++ |
clickAndWait | +//li[@id='menu-dashboard']/a[1] | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-enable-dashboard-rss-feed | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//li[@id='menu-dashboard']/a[1] | ++ |
assertElementPresent | +//div[@id='dashboard_cpm'] | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-enable-dashboard-rss-feed | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//li[@id='menu-dashboard']/a[1] | ++ |
assertElementNotPresent | +//div[@id='dashboard_cpm'] | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-enable-quomicpress | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//li[@id='menu-dashboard']/a[1] | ++ |
assertElementPresent | +//div[@id='dashboard_quomicpress'] | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-enable-quomicpress | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//li[@id='menu-dashboard']/a[1] | ++ |
assertElementNotPresent | +//div[@id='dashboard_quomicpress'] | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-enable-quomicpress | ++ |
check | +cpm-enable-dashboard-rss-feed | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Widgets | ++ |
assertElementNotPresent | +//li[contains(@id, 'dashboard_cpm')] | ++ |
assertElementNotPresent | +//li[contains(@id, 'dashboard_quomicpress')] | ++ |
TestEditPage | ||
open | +/wp-admin/ | ++ |
clickAndWait | +link=Pages | ++ |
clickAndWait | +//a[@title="Edit this page"] | ++ |
click | +edButtonHTML | ++ |
typeKeys | +content | +test | +
clickAndWait | +publish | ++ |
TestEditPost | ||
open | +/wp-admin/ | ++ |
clickAndWait | +link=Add New | ++ |
assertElementPresent | +//script[contains(@src, 'prototype')] | ++ |
assertElementPresent | +//script[contains(@src, 'effects')] | ++ |
assertElementPresent | +//script[contains(@src, 'builder')] | ++ |
click | +//div[@id='comic-for-this-post']//input[@type="radio"][1] | ++ |
storeAttribute | +//div[@id='comic-for-this-post']//input[@type="radio"][1]@value | +category | +
assertNotChecked | +//div[@id='categories-all']//input[@value='1'] | ++ |
type | +title | +Selenium Test | +
click | +save-post | ++ |
waitForPageToLoad | +50000 | ++ |
assertChecked | +//div[@id='categories-all']//input[@value='${category}'] | ++ |
assertNotChecked | +//div[@id='categories-all']//input[@value='1'] | ++ |
clickAndWait | +link=Move to Trash | ++ |
assertTextPresent | ++ | Post moved to the trash. | +
clickAndWait | +//a[@href='post-new.php'] | ++ |
type | +title | +Selenium Test | +
type | +comicpress-replace-image | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
fireEvent | +comicpress-replace-image | +click | +
clickAndWait | +publish | ++ |
assertTextPresent | +Post published. View post | ++ |
assertValue | +title | +Selenium Test | +
assertChecked | +post_category-3 | ++ |
assertTextPresent | +sample-comic.jpeg | ++ |
click | +//a[contains(@class, 'edit-slug')] | ++ |
type | +new-post-slug | +my-test-permalink | +
click | +link=OK | ++ |
clickAndWait | +publish | ++ |
assertValue | +title | +Selenium Test | +
assertChecked | +post_category-3 | ++ |
assertTextPresent | +sample-comic.jpeg | ++ |
click | +link=Move to Trash | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +moved to the trash. | ++ |
TestFirstRun | ||
clickAndWait | +link=ComicPress Config | ++ |
click | +folder-e-comic_folder | ++ |
type | +enter-comic_folder | +bad1 | +
click | +folder-e-rss_comic_folder | ++ |
type | +enter-rss_comic_folder | +bad2 | +
click | +folder-e-archive_comic_folder | ++ |
type | +enter-archive_comic_folder | +bad3 | +
clickAndWait | +//input[@value='Update Config'] | ++ |
assertTextPresent | +Create your comics, archive, or RSS folders first | ++ |
click | +folder-s-comic_folder | ++ |
click | +folder-s-rss_comic_folder | ++ |
click | +folder-s-archive_comic_folder | ++ |
clickAndWait | +//input[@value='Update Config'] | ++ |
assertTextNotPresent | +Create your comics, archive, or RSS folders first, then reload this page and use the dropdowns to select the target folder. | ++ |
open | +/wp-admin/options.php | ++ |
type | +comicpress-manager-cpm-did-first-run | +0 | +
clickAndWait | +Update | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextNotPresent | +ComicPress Manager First Run | ++ |
clickAndWait | +link=ComicPress Config | ++ |
click | +folder-e-comic_folder | ++ |
type | +enter-comic_folder | +bad1 | +
click | +folder-e-rss_comic_folder | ++ |
type | +enter-rss_comic_folder | +bad2 | +
click | +folder-e-archive_comic_folder | ++ |
type | +enter-archive_comic_folder | +bad3 | +
clickAndWait | +//input[@value='Update Config'] | ++ |
open | +/wp-admin/options.php | ++ |
type | +comicpress-manager-cpm-did-first-run | +0 | +
clickAndWait | +Update | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextPresent | +ComicPress Manager First Run | ++ |
clickAndWait | +//input[@value="No, I'll make them myself"] | ++ |
click | +folder-s-comic_folder | ++ |
click | +folder-s-rss_comic_folder | ++ |
click | +folder-s-archive_comic_folder | ++ |
clickAndWait | +//input[@value='Update Config'] | ++ |
open | +/wp-admin/options.php | ++ |
type | +comicpress-manager-cpm-did-first-run | +0 | +
clickAndWait | +Update | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextNotPresent | +ComicPress Manager First Run | ++ |
clickAndWait | +link=ComicPress Config | ++ |
click | +folder-e-comic_folder | ++ |
type | +enter-comic_folder | +bad1 | +
click | +folder-e-rss_comic_folder | ++ |
type | +enter-rss_comic_folder | +bad2 | +
click | +folder-e-archive_comic_folder | ++ |
type | +enter-archive_comic_folder | +bad3 | +
clickAndWait | +//input[@value='Update Config'] | ++ |
open | +/wp-admin/options.php | ++ |
type | +comicpress-manager-cpm-did-first-run | +0 | +
clickAndWait | +Update | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextPresent | +ComicPress Manager First Run | ++ |
clickAndWait | +link=ComicPress Config | ++ |
assertTextNotPresent | +ComicPress Manager First Run | ++ |
click | +folder-s-comic_folder | ++ |
click | +folder-s-rss_comic_folder | ++ |
click | +folder-s-archive_comic_folder | ++ |
select | +select-comic_folder | +comics | +
select | +select-rss_comic_folder | +comics-rss | +
select | +select-archive_comic_folder | +comics-archive | +
clickAndWait | +//input[@value='Update Config'] | ++ |
TestImportComic | ||
open | +/wp-admin/ | ++ |
store | +Selenium Hovertext | +hovertext | +
store | +Selenium Transcript | +transcript | +
clickAndWait | +link=ComicPress Config | ++ |
click | +folder-s-comic_folder | ++ |
click | +folder-s-rss_comic_folder | ++ |
click | +folder-s-archive_comic_folder | ++ |
select | +select-comic_folder | +comics | +
select | +select-rss_comic_folder | +comics-rss | +
select | +select-archive_comic_folder | +comics-archive | +
clickAndWait | +//input[@value='Update Config'] | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-edit-post-integrate | ++ |
check | +cpm-archive-generate-thumbnails | ++ |
check | +cpm-rss-generate-thumbnails | ++ |
type | +cpm-default-override-title | ++ |
type | +cpm-default-post-tags | ++ |
uncheck | +cpm-default-comic-category-is-last-storyline | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
uncheck | +multiple-new-post-checkbox | ++ |
clickAndWait | +submit | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +No new posts created. | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')] | ++ |
assertElementNotPresent | +duplicate-check | ++ |
click | +count-missing-posts-clicker | ++ |
pause | +2000 | ++ |
waitForText | +//span[@id='missing-posts-display'] | +1 | +
assertText | +//span[@id='missing-posts-display'] | +1 | +
assertChecked | +//div[@id='create-missing-posts-holder']//div[1]//input | ++ |
type | +time | +12:00am | +
type | +hovertext-to-use | +${hovertext} | +
type | +transcript-to-use | +${transcript} | +
clickAndWait | +submit | ++ |
assertTextPresent | +New thumbnails were not needed for the following files: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +New posts created. View them from the links below: | ++ |
assertTextPresent | +Sample Comic (1990-01-01 00:00:00) | ++ |
clickAndWait | +//div[@id='cpm-messages']//a[text()='Edit post'] | ++ |
assertTextPresent | +ComicPress Manager Edit Post file management is enabled. | ++ |
assertText | +//span[@id='timestamp'] | +Published on: Jan 1, 1990 @ 0:00 | +
assertText | +//div[@id='comic-for-this-post']/div[@class='inside']//strong[1] | +1990-01-01-sample-comic.jpeg | +
assertValue | +comicpress-img-title | +${hovertext} | +
assertValue | +comicpress-transcript | +${transcript} | +
assertChecked | +//div[@id='comic-for-this-post']//table[@class='form-table']//tr[2]//div[1]//input | ++ |
click | +link=Move to Trash | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')] | ++ |
storeText | +//div[@id='import-count-information'] | +import_count | +
getEval | +/safely import ([0-9]+) comics/.test(storedVars['import_count']); storedVars['import_count'] = RegExp.$1 | ++ |
clickAndWait | +link=Bulk Edit page | ++ |
assertText | +//div[@class='activity-box']/h2 | +Bulk Edit | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/good-large-import.zip | +
uncheck | +multiple-new-post-checkbox | ++ |
type | +time | +12:00am | +
click | +submit | ++ |
waitForPageToLoad | +200000 | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')] | ++ |
click | +count-missing-posts-clicker | ++ |
waitForText | +//span[@id='missing-posts-display'] | +30 | +
assertText | +//span[@id='missing-posts-display'] | +30 | +
clickAndWait | +submit | ++ |
assertText | +//div[@id='cpm-messages']/ul/li[1] | +Import safely exited before you ran out of execution time. Scroll down to continue creating missing posts. | +
getEval | +storedVars['index'] = storedVars['import_count'] | ++ |
while | +storedVars['index'] > 0 | ++ |
assertText | +//div[@id='cpm-messages']/ul/li[last()]/ul/li[${index}]/strong | +Sample Import Comic | +
assertTextPresent | +regexp:1990-01-[0-9][0-9] | ++ |
getEval | +storedVars['index']-- | ++ |
endWhile | ++ | + |
clickAndWait | +//input[@value='Continue Creating Posts'] | ++ |
assertText | +//div[@id='cpm-messages']/ul/li[1] | +Import safely exited before you ran out of execution time. Scroll down to continue creating missing posts. | +
getEval | +storedVars['index'] = storedVars['import_count'] | ++ |
while | +storedVars['index'] > 0 | ++ |
assertTextPresent | +Sample Import Comic | ++ |
assertTextPresent | +regexp:1990-01-[0-9][0-9] 00:00:00 | ++ |
getEval | +storedVars['index']-- | ++ |
endWhile | ++ | + |
clickAndWait | +//input[@value='Continue Creating Posts'] | ++ |
assertTextPresent | +No new posts needed to be created. | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +No items to display | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
click | +multiple-new-post-checkbox | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-UPPERCASE-COMIC.JPG | +
clickAndWait | +submit | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')] | ++ |
click | +count-missing-posts-clicker | ++ |
waitForText | +//span[@id='missing-posts-display'] | +1 | +
assertText | +//span[@id='missing-posts-display'] | +1 | +
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
TestQuomicPress | ||
open | +/wp-admin/ | ++ |
clickAndWait | +link=Manager Config | ++ |
type | +cpm-default-post-time | +12:00am | +
check | +cpm-edit-post-integrate | ++ |
check | +cpm-enable-quomicpress | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Dashboard | ++ |
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
click | +//input[@value='Upload Comic File and Edit Post'] | ++ |
waitForPageToLoad | +50000 | ++ |
assertSelectedIndex | +//select[@id='mm'] | +0 | +
assertValue | +//input[@id='jj'] | +01 | +
assertValue | +//input[@id='aa'] | +1990 | +
assertElementPresent | +//span[@id='timestamp']/b[contains(text(), 'Jan 1, 1990')] | ++ |
click | +link=Move to Trash | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +link=Manager Config | ++ |
storeValue | +cpm-default-post-time | +original_post_time | +
type | +cpm-default-post-time | +7:35am | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Dashboard | ++ |
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
clickAndWait | +//input[@value='Upload Comic File and Edit Post'] | ++ |
verifyText | +//span[@id='timestamp']/b | +Jan 1, 1990 @ 7:35 | +
click | +link=Move to Trash | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +link=Manager Config | ++ |
type | +cpm-default-post-time | +${original_post_time} | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-default-comic-category-is-last-storyline | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Storyline Structure | ++ |
uncheck | +enable-storyline-support | ++ |
click | +enable-storyline-support | ++ |
storeValue | +//div[@id='storyline-holder']/div[1]/input | +chosen_storyline | +
clickAndWait | +link=Dashboard | ++ |
assertElementPresent | +//strong[text()='${chosen_storyline}'] | ++ |
storeValue | +//input[@name='in-comic-category[]'] | +category_id | +
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
clickAndWait | +//input[@value='Upload Comic File and Edit Post'] | ++ |
assertChecked | +//div[@id='comic-for-this-post']//input[@name='post_category[]'][@value='${category_id}'] | ++ |
click | +link=Move to Trash | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-default-comic-category-is-last-storyline | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Storyline Structure | ++ |
storeValue | +//div[@id='storyline-holder']/div[last()]/input | +chosen_storyline | +
clickAndWait | +link=Dashboard | ++ |
assertElementPresent | +//strong[text()='${chosen_storyline}'] | ++ |
storeValue | +//input[@name='in-comic-category[]'] | +category_id | +
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
clickAndWait | +//input[@value='Upload Comic File and Edit Post'] | ++ |
assertChecked | +//div[@id='comic-for-this-post']//input[@name='post_category[]'][@value='${category_id}'] | ++ |
click | +link=Move to Trash | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +link=Dashboard | ++ |
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
type | +override-date | +1990-01-02 | +
clickAndWait | +//input[@value='Upload Comic File and Edit Post'] | ++ |
assertElementPresent | +//span[@id='timestamp']/b[contains(text(), 'Jan 2, 1990')] | ++ |
click | +link=Move to Trash | ++ |
waitForPageToLoad | +30000 | ++ |
TestReplaceComicFile | ||
open | +/wp-admin/ | ++ |
clickAndWait | +link=Dashboard | ++ |
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
click | +//input[@value='Upload Comic File and Edit Post'] | ++ |
waitForPageToLoad | +50000 | ++ |
storeElementWidth | +//img[@id='comic-icon'] | +width | +
assertElementPresent | +//div[@id='comic-for-this-post']//strong/a[contains(@href, 'sample-comic.jpeg')] | ++ |
type | +comicpress-replace-image | +/home/john/Desktop/comicpress/selenium/1990-01-01-wider-than-longer.png | +
clickAndWait | +//input[@id='save-post'] | ++ |
assertNotElementWidth | +//img[@id='comic-icon'] | +${width} | +
assertElementPresent | +//div[@id='comic-for-this-post']//strong/a[contains(@href, 'sample-comic.png')] | ++ |
click | +link=Move to Trash | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertNotVisible | +//tr[@id='rebuild-thumbnails'] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
click | +multiple-new-post-checkbox | ++ |
clickAndWait | +submit | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +No new posts created. | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
storeElementWidth | +//td[@class='comic']//img | +width | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-wider-than-longer.png | +
click | +multiple-new-post-checkbox | ++ |
select | +overwrite-existing-file-choice | +label=1990-01-01-sample-comic.jpeg | +
click | +//option[@value='1990-01-01-sample-comic.jpeg'] | ++ |
assertVisible | +//tr[@id='rebuild-thumbnails'] | ++ |
select | +upload-destination | +label=Archive folder | +
click | +//option[@value='archive_comic'] | ++ |
assertNotVisible | +//tr[@id='rebuild-thumbnails'] | ++ |
select | +upload-destination | +label=Comics folder | +
click | +//option[@value='comic'] | ++ |
clickAndWait | +submit | ++ |
assertTextPresent | +No new posts created. | ++ |
assertTextPresent | +Uploaded file 1990-01-01-wider-than-longer.png renamed to 1990-01-01-sample-comic.png. | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.png | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.png | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
verifyNotElementWidth | +//td[@class='comic']//img | +${width} | +
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
clickAndWait | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
TestSidebars | ||
open | +/wp-admin/ | ++ |
assertElementPresent | +//img[contains(@src, 'comicpress-icon.png')] | ++ |
clickAndWait | +link=Manager Config | ++ |
select | +cpm-sidebar-type | +label=ComicPress Status and Help | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertElementNotPresent | +//div[@id='cpm-activity-column'][@class='no-sidebar'] | ++ |
assertElementPresent | +//div[@id='comicpress-details'] | ++ |
assertElementPresent | +//div[@id='comicpress-details']//a[text()='comicpress-config.php'] | ++ |
clickAndWait | +//div[@id='comicpress-details']//a[text()='comicpress-config.php'] | ++ |
assertElementPresent | +//h2[text()='Edit ComicPress Config'] | ++ |
storeSelectedLabel | +comiccat | +comiccat | +
storeSelectedLabel | +blogcat | +blogcat | +
storeSelectedValue | +select-comic_folder | +comic_folder | +
storeSelectedValue | +select-rss_comic_folder | +rss_comic_folder | +
storeSelectedValue | +select-archive_comic_folder | +archive_comic_folder | +
storeSelectedValue | +select-mini_comic_folder | +mini_comic_folder | +
assertText | +//div[@id='comicpress-details']//li[6]/a | +${comiccat} | +
assertText | +//div[@id='comicpress-details']//li[7]/a | +${blogcat} | +
assertTextPresent | +Comics folder: | ++ |
assertTextPresent | +Archive folder: ${archive_comic_folder} | ++ |
assertTextPresent | +RSS feed folder: ${rss_comic_folder} | ++ |
assertTextPresent | +Minithumb folder: ${mini_comic_folder} | ++ |
clickAndWait | +link=Manager Config | ++ |
click | +//a[text()='Show debug info'] | ++ |
select | +cpm-sidebar-type | +label=Latest Comic Posts | +
assertVisible | +//span[@id='debug-info'] | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertElementNotPresent | +//div[@id='cpm-activity-column'][@class='no-sidebar'] | ++ |
assertElementPresent | +//div[@id='comicpress-latest-posts'] | ++ |
select | +cpm-sidebar-type | +label=No Sidebar | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertElementPresent | +//div[@id='cpm-activity-column'][@class='no-sidebar'] | ++ |
select | +cpm-sidebar-type | +label=ComicPress Status and Help | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
TestStorylineStructure | ||
open | +/wp-admin/ | ++ |
clickAndWait | +link=Storyline Structure | ++ |
assertElementPresent | +//input[@name='original-categories'] | ++ |
uncheck | +enable-storyline-support | ++ |
click | +enable-storyline-support | ++ |
assertVisible | +//div[@id='storyline-holder'] | ++ |
click | +enable-storyline-support | ++ |
assertNotVisible | +//div[@id='storyline-holder'] | ++ |
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertNotVisible | +//div[@id='storyline-holder'] | ++ |
click | +enable-storyline-support | ++ |
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertVisible | +//div[@id='storyline-holder'] | ++ |
store | +Selenium Test Category 123 | +catname1 | +
store | +Selenium Test Category 234 | +catname2 | +
click | +//div[@id='storyline-holder']/div[1]//a | ++ |
type | +//div[@id='storyline-holder']/div[2]/input | +${catname1} | +
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertElementPresent | +//div[@id='storyline-holder']/div[2]/input[@value='${catname1}'] | ++ |
click | +//div[@id='storyline-holder']/div[2]//a[1] | ++ |
type | +//div[@id='storyline-holder']/div[3]/input | +${catname2} | +
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertElementPresent | +//div[@id='storyline-holder']/div[3]/input[@value='${catname2}'] | ++ |
click | +//div[@id='storyline-holder']/div[3]//a[@class='up'] | ++ |
assertElementPresent | +//div[@id='storyline-holder']/div[2]/input[@value='${catname2}'] | ++ |
assertElementPresent | +//div[@id='storyline-holder']/div[3]/input[@value='${catname1}'] | ++ |
click | +//div[@id='storyline-holder']/div[3]//a[@class='delete'] | ++ |
click | +//div[@id='storyline-holder']/div[2]//a[@class='delete'] | ++ |
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertElementNotPresent | +//div[@id='storyline-holder']/div[3]/input[@value='${catname1}'] | ++ |
assertElementNotPresent | +//div[@id='storyline-holder']/div[2]/input[@value='${catname2}'] | ++ |
clickAndWait | +link=Storyline Structure | ++ |
uncheck | +enable-storyline-support | ++ |
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
clickAndWait | +link=Add New | ++ |
assertElementNotPresent | +//div[@id='comic-for-this-post']//*[text()="Storyline"] | ++ |
clickAndWait | +link=Storyline Structure | ++ |
check | +enable-storyline-support | ++ |
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
clickAndWait | +link=Add New | ++ |
assertElementPresent | +//div[@id='comic-for-this-post']//th[contains(text(),"Storyline")] | ++ |
clickAndWait | +link=Storyline Structure | ++ |
click | +//div[@id='storyline-holder']/div[1]//a | ++ |
type | +//div[@id='storyline-holder']/div[2]/input | +Selenium Test | +
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertTextPresent | +Category Selenium Test created. | ++ |
clickAndWait | +link=Add New | ++ |
assertText | +//div[@id='comic-for-this-post'] | +*Selenium Test* | +
assertText | +//div[@id='categories-all'] | +*Selenium Test* | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertText | +//div[@id='multiple-new-post-holder'] | +*Selenium Test* | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')] | ++ |
assertText | +//div[@id='create-missing-posts-holder'] | +*Selenium Test* | +
clickAndWait | +link=Categories | ++ |
assertTextPresent | +Selenium Test | ++ |
assertElementPresent | +//td[contains(@class, 'slug') and contains(text(), 'selenium-test')] | ++ |
clickAndWait | +//a[contains(text(),'Selenium Test')] | ++ |
assertValue | +cat_name | +Selenium Test | +
assertValue | +category_nicename | +selenium-test | +
type | +category_nicename | +selenium-test2 | +
clickAndWait | +submit | ++ |
assertElementPresent | +//td[contains(@class, 'slug') and contains(text(), 'selenium-test2')] | ++ |
clickAndWait | +link=Storyline Structure | ++ |
assertElementPresent | +//input[@value='Selenium Test'] | ++ |
clickAndWait | +link=Add New | ++ |
assertText | +//div[@id='comic-for-this-post'] | +*Selenium Test* | +
assertText | +//div[@id='categories-all'] | +*Selenium Test* | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertText | +//div[@id='multiple-new-post-holder'] | +*Selenium Test* | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')] | ++ |
assertText | +//div[@id='create-missing-posts-holder'] | +*Selenium Test* | +
clickAndWait | +link=Categories | ++ |
assertElementPresent | +//td[contains(@class, 'slug') and contains(text(), 'selenium-test')] | ++ |
clickAndWait | +//a[contains(text(),'Selenium Test')] | ++ |
assertValue | +cat_name | +Selenium Test | +
assertValue | +category_nicename | +selenium-test2 | +
type | +category_nicename | +selenium-test3 | +
clickAndWait | +submit | ++ |
assertElementPresent | +//td[contains(@class, 'slug') and contains(text(), 'selenium-test3')] | ++ |
clickAndWait | +link=Storyline Structure | ++ |
assertElementPresent | +//input[@value='Selenium Test'] | ++ |
clickAndWait | +link=Add New | ++ |
assertText | +//div[@id='comic-for-this-post'] | +*Selenium Test* | +
assertText | +//div[@id='categories-all'] | +*Selenium Test* | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertText | +//div[@id='multiple-new-post-holder'] | +*Selenium Test* | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')] | ++ |
assertText | +//div[@id='create-missing-posts-holder'] | +*Selenium Test* | +
clickAndWait | +link=Storyline Structure | ++ |
click | +//div[@id='storyline-holder']/div[2]/div/a[1] | ++ |
type | +//div[@id='storyline-holder']/div[3]/input | +Selenium Two | +
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertTextPresent | +Category Selenium Two created. | ++ |
clickAndWait | +link=Categories | ++ |
assertTextPresent | +Selenium Test | ++ |
assertTextPresent | +Selenium Two | ++ |
assertElementPresent | +//td[contains(@class, 'slug') and contains(text(), 'selenium-test3')] | ++ |
assertElementPresent | +//td[contains(@class, 'slug') and contains(text(), 'selenium-two')] | ++ |
clickAndWait | +//a[contains(text(),'Selenium Two')] | ++ |
assertValue | +cat_name | +Selenium Two | +
assertValue | +category_nicename | +selenium-two | +
type | +category_nicename | +selenium-two2 | +
clickAndWait | +submit | ++ |
assertElementPresent | +//td[contains(@class, 'slug') and contains(text(), 'selenium-test3')] | ++ |
assertElementPresent | +//td[contains(@class, 'slug') and contains(text(), 'selenium-two2')] | ++ |
clickAndWait | +link=Storyline Structure | ++ |
assertElementPresent | +//input[@value='Selenium Test'] | ++ |
assertElementPresent | +//input[@value='Selenium Two'] | ++ |
clickAndWait | +link=Add New | ++ |
assertText | +//div[@id='comic-for-this-post'] | +*Selenium Test* | +
assertText | +//div[@id='categories-all'] | +*Selenium Test* | +
assertText | +//div[@id='comic-for-this-post'] | +*Selenium Two* | +
assertText | +//div[@id='categories-all'] | +*Selenium Two* | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertText | +//div[@id='multiple-new-post-holder'] | +*Selenium Test* | +
assertText | +//div[@id='multiple-new-post-holder'] | +*Selenium Two* | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')] | ++ |
assertText | +//div[@id='create-missing-posts-holder'] | +*Selenium Test* | +
assertText | +//div[@id='create-missing-posts-holder'] | +*Selenium Two* | +
clickAndWait | +link=Storyline Structure | ++ |
waitForVisible | +storyline-holder | ++ |
assertElementPresent | +//input[@value='Selenium Test'] | ++ |
assertElementPresent | +//input[@value='Selenium Two'] | ++ |
click | +//div[@id='storyline-holder']/div[2]/div/a[5] | ++ |
assertElementNotPresent | +//input[@value='Selenium Test'] | ++ |
click | +//div[@id='storyline-holder']/div[2]/div/a[5] | ++ |
assertElementNotPresent | +//input[@value='Selenium Two'] | ++ |
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertTextPresent | +Category Selenium Test deleted. | ++ |
assertTextPresent | +Category Selenium Two deleted. | ++ |
click | +//div[@id='storyline-holder']/div[1]//a | ++ |
type | +//div[@id='storyline-holder']/div[2]/input | +Selenium Test | +
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertTextPresent | +Category Selenium Test created. | ++ |
click | +//div[@id='storyline-holder']/div[2]//a[2] | ++ |
type | +//div[@id='storyline-holder']/div[3]/input | +Selenium Test Child | +
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertTextPresent | +Category Selenium Test Child created. | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
uncheck | +//th[contains(text(), "Storyline:")]/..//div[1]//input | ++ |
check | +//th[contains(text(), "Storyline:")]/..//div[3]//input | ++ |
clickAndWait | +submit | ++ |
clickAndWait | +link=Edit post | ++ |
storeLocation | +edit_post | ++ |
assertChecked | +//th[contains(text(), "Storyline")]/..//div[3]//input | ++ |
clickAndWait | +link=Storyline Structure | ++ |
click | +//div[@id='storyline-holder']/div[3]/div/a[5] | ++ |
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertTextPresent | +Category Selenium Test Child deleted. | ++ |
assertTextPresent | +The following orphaned comic posts were placed into their original category's parent: | ++ |
assertTextPresent | +Storyline structure saved. | ++ |
clickAndWait | +link=Edit | ++ |
select | +m | +label=January 1990 | +
clickAndWait | +post-query-submit | ++ |
clickAndWait | +//table[contains(@class, 'widefat')]//span[@class='edit']/a | ++ |
assertChecked | +//th[contains(text(), "Storyline")]/..//div[2]//input | ++ |
click | +link=Delete | ++ |
assertConfirmation | +*Sample Comic* | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +Post deleted. | ++ |
clickAndWait | +link=Storyline Structure | ++ |
click | +//div[@id='storyline-holder']/div[2]/div/a[5] | ++ |
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertTextPresent | +Category Selenium Test deleted. | ++ |
TestSubdirectorySupport | ||
clickAndWait | +link=Storyline Structure | ++ |
uncheck | +enable-storyline-support | ++ |
click | +enable-storyline-support | ++ |
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
clickAndWait | +link=ComicPress Config | ++ |
assertTextPresent | +Comics folder: comics | ++ |
assertTextPresent | +Archive folder: comics-archive | ++ |
assertTextPresent | +RSS feed folder: comics | ++ |
assertTextNotPresent | +Comics folder: comics/guild-of-thieves | ++ |
assertTextNotPresent | +Archive folder: comics-archive/guild-of-thieves | ++ |
assertTextNotPresent | +RSS feed folder: comics-rss/guild-of-thieves | ++ |
assertElementPresent | +//select[@name='comic']/option[text()='Guild of Thieves'] | ++ |
select | +comic | +label=Guild of Thieves | +
clickAndWait | +//input[@value='Submit'] | ++ |
assertTextPresent | +Now managing Guild of Thieves | ++ |
assertTextPresent | +Comics folder: comics/guild-of-thieves | ++ |
assertTextPresent | +Archive folder: comics-archive/guild-of-thieves | ++ |
assertTextPresent | +RSS feed folder: comics-rss/guild-of-thieves | ++ |
assertElementPresent | +//select[@name='comic']/option[text()='Guild of Thieves'] | ++ |
select | +comic | +label=Volume 2: Candynomics | +
clickAndWait | +//input[@value='Submit'] | ++ |
assertTextPresent | +Now managing Volume 2: Candynomics. | ++ |
assertSelectedLabel | +comic | +Volume 2: Candynomics | +
select | +comic | +label=Guild of Thieves | +
clickAndWait | +//input[@value='Submit'] | ++ |
assertTextPresent | +Now managing Guild of Thieves. | ++ |
assertSelectedLabel | +comic | +Guild of Thieves | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextPresent | +Reminder: You are managing the Guild of Thieves comic subdirectory. | ++ |
assertNotChecked | +//div[1]/label/input | ++ |
assertChecked | +//div[2]/label/input | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
clickAndWait | +submit | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
assertElementPresent | +//img[contains(@src, 'comics-archive/guild-of-thieves/1990-01-01')] | ++ |
assertElementPresent | +//a[contains(@href, 'comics-archive/guild-of-thieves/1990-01')] | ++ |
assertElementPresent | +//a[contains(@href, 'comics-rss/guild-of-thieves/1990-01')] | ++ |
assertElementPresent | +//a[contains(@href, 'comics/guild-of-thieves/1990-01')] | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextPresent | +Reminder: You are managing the Guild of Thieves comic subdirectory. | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
click | +multiple-new-post-checkbox | ++ |
clickAndWait | +submit | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')] | ++ |
click | +count-missing-posts-clicker | ++ |
pause | +2000 | ++ |
click | +//div[@id='cpm-activity-column']/div/table/tbody/tr/td | ++ |
assertText | +missing-posts-display | +1 | +
assertNotChecked | +//div[1]/label/input | ++ |
assertChecked | +//div[2]/label/input | ++ |
clickAndWait | +submit | ++ |
assertTextPresent | +New thumbnails were not needed for the following files: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Sample Comic (1990-01-01 00:00:00) | ++ |
clickAndWait | +link=Edit post | ++ |
assertValue | +title | +Sample Comic | +
assertElementPresent | +//a[contains(@href, 'comics/guild-of-thieves/1990-01')] | ++ |
assertElementPresent | +//a[contains(@href, 'comics-rss/guild-of-thieves/1990-01')] | ++ |
assertElementPresent | +//a[contains(@href, 'comics-archive/guild-of-thieves/1990-01')] | ++ |
click | +link=Delete | ++ |
assertConfirmation | +*'Sample Comic'* | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +Post deleted. | ++ |
clickAndWait | +link=Bulk Edit | ++ |
assertElementNotPresent | +//select[@id='dates']/option[text()='January 1990'] | ++ |
clickAndWait | +link=Dashboard | ++ |
assertTextNotPresent | +It looks like this is a new ComicPress install. | ++ |
assertTextPresent | +in the Guild of Thieves category | ++ |
assertTextPresent | +will be uploaded to the Guild of Thieves comic subdirectory | ++ |
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
clickAndWait | +//input[@value='Upload Comic File and Edit Post'] | ++ |
assertValue | +title | +Sample Comic | +
assertElementPresent | +//a[contains(@href, 'comics/guild-of-thieves/1990-01')] | ++ |
assertElementPresent | +//a[contains(@href, 'comics-rss/guild-of-thieves/1990-01')] | ++ |
assertElementPresent | +//a[contains(@href, 'comics-archive/guild-of-thieves/1990-01')] | ++ |
assertTextPresent | +will be uploaded to the Guild of Thieves comic subdirectory | ++ |
click | +link=Move to Trash | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +moved to the trash | ++ |
clickAndWait | +link=Bulk Edit | ++ |
assertElementNotPresent | +//select[@id='dates']/option[text()='January 1990'] | ++ |
clickAndWait | +link=ComicPress Config | ++ |
select | +comic | +label=A Moment of Clarity (default) | +
clickAndWait | +//input[@value='Submit'] | ++ |
assertTextNotPresent | +Comics folder: comics/guild-of-thieves | ++ |
assertTextNotPresent | +Archive folder: comics-archive/guild-of-thieves | ++ |
assertTextNotPresent | +RSS feed folder: comics-rss/guild-of-thieves | ++ |
assertTextNotPresent | +Comics folder: comics/comics | ++ |
assertTextNotPresent | +Archive folder: comics-archive/comics | ++ |
assertTextNotPresent | +RSS feed folder: comics-rss/comics | ++ |
assertTextPresent | +Comics folder: comics | ++ |
assertTextPresent | +Archive folder: comics-archive | ++ |
assertTextPresent | +RSS feed folder: comics | ++ |
TestUploadComicFile | ||
open | +/wp-admin/ | ++ |
store | +Selenium Title | +title | +
store | +Selenium Hovertext | +hovertext | +
store | +Selenium Transcript | +transcript | +
clickAndWait | +link=Manager Config | ++ |
check | +cpm-perform-gd-check | ++ |
check | +cpm-archive-generate-thumbnails | ++ |
check | +cpm-rss-generate-thumbnails | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=ComicPress Config | ++ |
select | +comic | +label=A Moment of Clarity (default) | +
clickAndWait | +//input[@value='Submit'] | ++ |
assertTextPresent | +Now managing A Moment of Clarity. | ++ |
assertText | +//div[@id='comicpress-details']//li[3]//em | +generating | +
assertText | +//div[@id='comicpress-details']//li[4]//em | +generating | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
type | +override-title-to-use | +${title} | +
type | +hovertext-to-use | +${hovertext} | +
type | +transcript-to-use | +${transcript} | +
click | +//input[@id='top-submit'] | ++ |
waitForPageToLoad | +60000 | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +${title} | ++ |
clickAndWait | +//div[@id='cpm-messages']//a[text()='Edit post'] | ++ |
assertValue | +title | +${title} | +
assertElementPresent | +//span[@id='timestamp']/b[contains(text(), 'Jan 1, 1990')] | ++ |
assertElementPresent | +//div[@id='comic-for-this-post']//a[text()='1990-01-01-sample-comic.jpeg'] | ++ |
assertValue | +comicpress-img-title | +${hovertext} | +
assertValue | +comicpress-transcript | +${transcript} | +
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
assertTextPresent | +Displaying 1-1 of 1 | ++ |
assertXpathCount | +//table[@id='status-table']/tbody/tr[@class='data-row'] | +2 | +
assertTextPresent | +Sample Comic | ++ |
assertTextPresent | +${title} | ++ |
assertTextPresent | +${hovertext} | ++ |
assertTextPresent | +${transcript} | ++ |
assertElementPresent | +//td[@class='comic']//a[contains(@href, '1990-01-01-sample-comic.jpeg')][text()='rss'] | ++ |
assertElementPresent | +//td[@class='comic']//a[contains(@href, '1990-01-01-sample-comic.jpeg')][text()='archive'] | ++ |
click | +regen-1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +doaction | ++ |
assertTextPresent | +The following thumbnails were written: 1990-01-01-sample-comic.jpeg | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +1990-01-01-sample-comic.jpeg | ++ |
assertText | +//div[@class='tablenav'][1]//span[@class='displaying-num'] | +No items to display | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextNotPresent | +PHP upload error code | ++ |
assertTextPresent | +You didn't upload any files! | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.txt | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +According to GD, the following files were invalid image files: 1990-01-01-sample-comic.txt | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +According to GD, the following files were invalid image files: 1990-01-01-sample-comic-not-jpeg.jpeg | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-too-large-file.jpeg | +
click | +//input[@id='top-submit'] | ++ |
waitForPageToLoad | +300000 | ++ |
assertTextPresent | +Your uploaded files were larger than the post_max_size setting | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.zip | +
click | +//input[@id='top-submit'] | ++ |
waitForPageToLoad | +600000 | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
assertTextPresent | +Displaying 1-1 of 1 | ++ |
assertXpathCount | +//table[@id='status-table']/tbody/tr[@class='data-row'] | +2 | +
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.txt.zip | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +According to GD, the following files were invalid image files: 1990-01-01-sample-comic.txt | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/comics.zip | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
assertTextPresent | +Displaying 1-1 of 1 | ++ |
assertXpathCount | +//table[@id='status-table']/tbody/tr[@class='data-row'] | +2 | +
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/too-large-import.zip | +
click | +multiple-new-post-checkbox | ++ |
click | +submit | ++ |
waitForPageToLoad | +60000 | ++ |
assertTextPresent | +regexp:(The file too-large-import.zip was too large.|larger than the post_max_size) | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-gif_thumbnail.gif | +
click | +multiple-new-post-checkbox | ++ |
clickAndWait | +submit | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-gif_thumbnail.gif | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-gif_thumbnail.gif | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
assertTextPresent | +Displaying 1-1 of 1 | ++ |
assertXpathCount | +//table[@id='status-table']/tbody/tr[@class='data-row'] | +1 | +
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +1990-01-01-gif_thumbnail.gif | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-perform-gd-check | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-no-extension-jpeg | +
clickAndWait | +top-submit | ++ |
assertTextPresent | +GD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic-no-extension-jpeg | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic-no-extension-jpeg.jpg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
assertTextPresent | +Displaying 1-1 of 1 | ++ |
assertXpathCount | +//table[@id='status-table']/tbody/tr[@class='data-row'] | +2 | +
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-no-extension-jpeg.zip | +
clickAndWait | +submit | ++ |
assertTextPresent | +GD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic-no-extension-jpeg | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic-no-extension-jpeg.jpg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
assertTextPresent | +Displaying 1-1 of 1 | ++ |
assertXpathCount | +//table[@id='status-table']/tbody/tr[@class='data-row'] | +2 | +
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.bad-extension | +
clickAndWait | +top-submit | ++ |
assertTextPresent | +GD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic.bad-extension | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
assertTextPresent | +Displaying 1-1 of 1 | ++ |
assertXpathCount | +//table[@id='status-table']/tbody/tr[@class='data-row'] | +2 | +
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.bad-extension.zip | +
clickAndWait | +top-submit | ++ |
assertTextPresent | +GD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic.bad-extension | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
assertTextPresent | +Displaying 1-1 of 1 | ++ |
assertXpathCount | +//table[@id='status-table']/tbody/tr[@class='data-row'] | +2 | +
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-cmyk.jpeg | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +The following JPEG files have been converted from CMYK to RGB: 1990-01-01-sample-comic-cmyk.jpeg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
assertTextPresent | +Displaying 1-1 of 1 | ++ |
assertXpathCount | +//table[@id='status-table']/tbody/tr[@class='data-row'] | +2 | +
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
DoTeardown | ||
open | +/comicpress_manager_mu/wordpress-mu/wp-admin/ | ++ |
clickAndWait | +link=Bulk Edit | ++ |
label | +keep_tearing_down | ++ |
storeText | +//select[@id='dates']/option[last()] | +last_date | +
getEval | +"${last_date}" | ++ |
gotoIf | +"${last_date}" != "January 1990" | +skip_teardown | +
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
goto | +keep_tearing_down | ++ |
label | +skip_teardown | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-edit-post-integrate | ++ |
check | +cpm-archive-generate-thumbnails | ++ |
check | +cpm-rss-generate-thumbnails | ++ |
type | +cpm-default-override-title | ++ |
type | +cpm-default-post-tags | ++ |
uncheck | +cpm-default-comic-category-is-last-storyline | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
TestChangeDates | ||
open | +/comicpress_manager_mu/wordpress-mu/wp-admin/ | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +link=Change Dates | ++ |
type | +start-date | +1989-12-30 | +
type | +end-date | +1990-01-10 | +
clickAndWait | +//input[@value='Filter'] | ++ |
store | +1990-01-02 | +test_date | +
storeValue | +//div[@class='activity-box']/form[2]//tr[1]//input[@type='text'] | +original_date | +
type | +//div[@class='activity-box']/form[2]//tr[1]//input[@type='text'] | +${test_date} | +
clickAndWait | +submit | ++ |
assertTextNotPresent | +Warning: rename | ++ |
assertTextPresent | +to ${test_date} | ++ |
assertElementPresent | +//div[@class='activity-box']/form[2]//tr[1]/td[contains(text(), '${test_date}')] | ++ |
assertValue | +//div[@class='activity-box']/form[2]//tr[1]//input[@type='text'] | +${test_date} | +
type | +//div[@class='activity-box']/form[2]//tr[1]//input[@type='text'] | +${original_date} | +
clickAndWait | +submit | ++ |
assertTextPresent | +to ${original_date} | ++ |
assertTextNotPresent | +Warning: rename | ++ |
assertElementPresent | +//div[@class='activity-box']/form[2]//tr[1]/td[contains(text(), '${original_date}')] | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
TestComicPressManagerConfig | ||
open | +/comicpress_manager_mu/wordpress-mu/wp-admin/ | ++ |
clickAndWait | +link=Manager Config | ++ |
storeValue | +cpm-default-post-time | +original_time | +
storeValue | +cpm-default-override-title | +original_title | +
storeValue | +cpm-default-post-tags | +original_tags | +
store | +Selenium Title | +title | +
store | +Selenium Tags | +tags | +
store | +7:38am | +time | +
type | +cpm-default-post-time | +${time} | +
type | +cpm-default-override-title | +${title} | +
type | +cpm-default-post-tags | +${tags} | +
check | +cpm-archive-generate-thumbnails | ++ |
check | +cpm-rss-generate-thumbnails | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
assertValue | +cpm-default-post-time | +${time} | +
assertValue | +cpm-default-override-title | +${title} | +
assertValue | +cpm-default-post-tags | +${tags} | +
type | +cpm-default-post-time | +${original_time} | +
type | +cpm-default-override-title | +${original_title} | +
type | +cpm-default-post-tags | +${original_tags} | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
type | +cpm-default-post-time | +meow123 | +
type | +cpm-default-override-title | +${title} | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertNotValue | +cpm-default-post-time | +meow123 | +
assertNotValue | +cpm-default-post-time | +${title} | +
assertTextPresent | +You entered invalid data into your configuration. | ++ |
uncheck | +cpm-default-comic-category-is-last-storyline | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertChecked | +//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[1]//input | ++ |
assertNotChecked | +//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[last()]//input | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-default-comic-category-is-last-storyline | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertNotChecked | +//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[1]//input | ++ |
assertChecked | +//div[@id='multiple-new-post-holder']/table[@class='form-table'][2]//td[1]//div[last()]//input | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-default-comic-category-is-last-storyline | ++ |
check | +//input[@name='cpm-default-additional-categories[]'][1] | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertChecked | +//input[@name='additional-categories[]'][1] | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +//input[@name='cpm-default-additional-categories[]'][1] | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertNotChecked | +//input[@name='additional-categories[]'][1] | ++ |
clickAndWait | +link=Manager Config | ++ |
select | +cpm-sidebar-type | +label=ComicPress Status and Help | +
uncheck | +cpm-edit-post-integrate | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertTextPresent | +ComicPress Manager configuration updated. | ++ |
clickAndWait | +//a[@href='post-new.php'] | ++ |
assertTextNotPresent | +ComicPress Manager Edit Post file management is enabled. | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-edit-post-integrate | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//a[@href='post-new.php'] | ++ |
assertTextPresent | +ComicPress Manager Edit Post file management is enabled. | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-perform-gd-check | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +According to GD, the following files were invalid image files | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-perform-gd-check | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +The following files were uploaded | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +1990-01-01-sample-comic-not-jpeg.jpeg | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-perform-gd-check | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-archive-generate-thumbnails | ++ |
check | +cpm-rss-generate-thumbnails | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertText | +//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] | +not generating | +
assertElementNotPresent | +//div[@id='comicpress-details']//li[5]//em[@title='Generation disabled'] | ++ |
clickAndWait | +link=Dashboard | ++ |
assertTextPresent | +rss thumbnails that are | ++ |
assertTextNotPresent | +archive thumbnails that are | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextPresent | +If enabled, you'll be writing thumbnails to: rss | ++ |
clickAndWait | +link=Add New | ++ |
assertTextPresent | +(thumbnails will be generated) | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-archive-generate-thumbnails | ++ |
uncheck | +cpm-rss-generate-thumbnails | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertElementNotPresent | +//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] | ++ |
assertText | +//div[@id='comicpress-details']//li[5]//em[@title='Generation disabled'] | +not generating | +
clickAndWait | +link=Dashboard | ++ |
assertTextNotPresent | +rss thumbnails that are | ++ |
assertTextPresent | +archive thumbnails that are | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextPresent | +If enabled, you'll be writing thumbnails to: archive | ++ |
clickAndWait | +link=Add New | ++ |
assertTextPresent | +(thumbnails will be generated) | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-archive-generate-thumbnails | ++ |
uncheck | +cpm-rss-generate-thumbnails | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertText | +//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] | +not generating | +
assertText | +//div[@id='comicpress-details']//li[5]//em[@title='Generation disabled'] | +not generating | +
clickAndWait | +link=Dashboard | ++ |
assertTextNotPresent | +rss thumbnails that are | ++ |
assertTextNotPresent | +archive thumbnails that are | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextNotPresent | +Generate thumbnails: | ++ |
clickAndWait | +link=Add New | ++ |
assertTextNotPresent | +(thumbnails will be generated) | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-archive-generate-thumbnails | ++ |
check | +cpm-rss-generate-thumbnails | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertElementNotPresent | +//div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] | ++ |
assertElementNotPresent | +//div[@id='comicpress-details']//li[5]//em[@title='Generation disabled'] | ++ |
TestDashboardWidgets | ||
open | +/comicpress_manager_mu/wordpress-mu/wp-admin/ | ++ |
clickAndWait | +//li[@id='menu-dashboard']/a[1] | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-enable-dashboard-rss-feed | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//li[@id='menu-dashboard']/a[1] | ++ |
assertElementPresent | +//div[@id='dashboard_cpm'] | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-enable-dashboard-rss-feed | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//li[@id='menu-dashboard']/a[1] | ++ |
assertElementNotPresent | +//div[@id='dashboard_cpm'] | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-enable-quomicpress | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//li[@id='menu-dashboard']/a[1] | ++ |
assertElementPresent | +//div[@id='dashboard_quomicpress'] | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-enable-quomicpress | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//li[@id='menu-dashboard']/a[1] | ++ |
assertElementNotPresent | +//div[@id='dashboard_quomicpress'] | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-enable-quomicpress | ++ |
check | +cpm-enable-dashboard-rss-feed | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Widgets | ++ |
assertElementNotPresent | +//li[contains(@id, 'dashboard_cpm')] | ++ |
assertElementNotPresent | +//li[contains(@id, 'dashboard_quomicpress')] | ++ |
TestFirstRun | ||
clickAndWait | +link=ComicPress Config | ++ |
click | +folder-e-comic_folder | ++ |
type | +enter-comic_folder | +bad1 | +
click | +folder-e-rss_comic_folder | ++ |
type | +enter-rss_comic_folder | +bad2 | +
click | +folder-e-archive_comic_folder | ++ |
type | +enter-archive_comic_folder | +bad3 | +
clickAndWait | +//input[@value='Update Config'] | ++ |
assertTextPresent | +Create your comics, archive, or RSS folders first | ++ |
click | +folder-s-comic_folder | ++ |
click | +folder-s-rss_comic_folder | ++ |
click | +folder-s-archive_comic_folder | ++ |
clickAndWait | +//input[@value='Update Config'] | ++ |
assertTextNotPresent | +Create your comics, archive, or RSS folders first, then reload this page and use the dropdowns to select the target folder. | ++ |
open | +/comicpress_manager_mu/wpmu/comic/wp-admin/options.php | ++ |
type | +comicpress-manager-cpm-did-first-run | +0 | +
clickAndWait | +Update | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextNotPresent | +ComicPress Manager First Run | ++ |
clickAndWait | +link=ComicPress Config | ++ |
click | +folder-e-comic_folder | ++ |
type | +enter-comic_folder | +bad1 | +
click | +folder-e-rss_comic_folder | ++ |
type | +enter-rss_comic_folder | +bad2 | +
click | +folder-e-archive_comic_folder | ++ |
type | +enter-archive_comic_folder | +bad3 | +
clickAndWait | +//input[@value='Update Config'] | ++ |
open | +/comicpress_manager_mu/wpmu/comic/wp-admin/options.php | ++ |
type | +comicpress-manager-cpm-did-first-run | +0 | +
clickAndWait | +Update | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextPresent | +ComicPress Manager First Run | ++ |
clickAndWait | +//input[@value="No, I'll make them myself"] | ++ |
assertTextPresent | +The comic folder bad1 does not exist | ++ |
click | +folder-s-comic_folder | ++ |
click | +folder-s-rss_comic_folder | ++ |
click | +folder-s-archive_comic_folder | ++ |
clickAndWait | +//input[@value='Update Config'] | ++ |
open | +/comicpress_manager_mu/wpmu/comic/wp-admin/options.php | ++ |
type | +comicpress-manager-cpm-did-first-run | +0 | +
clickAndWait | +Update | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextNotPresent | +ComicPress Manager First Run | ++ |
clickAndWait | +link=ComicPress Config | ++ |
click | +folder-e-comic_folder | ++ |
type | +enter-comic_folder | +bad1 | +
click | +folder-e-rss_comic_folder | ++ |
type | +enter-rss_comic_folder | +bad2 | +
click | +folder-e-archive_comic_folder | ++ |
type | +enter-archive_comic_folder | +bad3 | +
clickAndWait | +//input[@value='Update Config'] | ++ |
open | +/comicpress_manager_mu/wpmu/comic/wp-admin/options.php | ++ |
type | +comicpress-manager-cpm-did-first-run | +0 | +
clickAndWait | +Update | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextPresent | +ComicPress Manager First Run | ++ |
clickAndWait | +link=ComicPress Config | ++ |
assertTextNotPresent | +ComicPress Manager First Run | ++ |
assertTextPresent | +The comic folder bad1 does not exist | ++ |
click | +folder-s-comic_folder | ++ |
click | +folder-s-rss_comic_folder | ++ |
click | +folder-s-archive_comic_folder | ++ |
select | +select-comic_folder | +comics | +
select | +select-rss_comic_folder | +comics-rss | +
select | +select-archive_comic_folder | +comics-archive | +
clickAndWait | +//input[@value='Update Config'] | ++ |
TestImportComic | ||
open | +/comicpress_manager_mu/wordpress-mu/wp-admin/ | ++ |
store | +Selenium Hovertext | +hovertext | +
store | +Selenium Transcript | +transcript | +
clickAndWait | +link=ComicPress Config | ++ |
click | +folder-s-comic_folder | ++ |
click | +folder-s-rss_comic_folder | ++ |
click | +folder-s-archive_comic_folder | ++ |
select | +select-comic_folder | +comics | +
select | +select-rss_comic_folder | +comics-rss | +
select | +select-archive_comic_folder | +comics-archive | +
clickAndWait | +//input[@value='Update Config'] | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-edit-post-integrate | ++ |
check | +cpm-archive-generate-thumbnails | ++ |
check | +cpm-rss-generate-thumbnails | ++ |
type | +cpm-default-override-title | ++ |
type | +cpm-default-post-tags | ++ |
uncheck | +cpm-default-comic-category-is-last-storyline | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
uncheck | +multiple-new-post-checkbox | ++ |
clickAndWait | +submit | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +No new posts created. | ++ |
clickAndWait | +//li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[2]/a | ++ |
click | +count-missing-posts-clicker | ++ |
waitForText | +//span[@id='missing-posts-display'] | +1 | +
assertText | +//span[@id='missing-posts-display'] | +1 | +
assertChecked | +//div[@id='create-missing-posts-holder']//div[1]//input | ++ |
type | +time | +12:00am | +
type | +hovertext-to-use | +${hovertext} | +
type | +transcript-to-use | +${transcript} | +
clickAndWait | +submit | ++ |
assertTextPresent | +New thumbnails were not needed for the following files: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +New posts created. View them from the links below: | ++ |
assertTextPresent | +Sample Comic (1990-01-01 00:00:00) | ++ |
clickAndWait | +//div[@id='cpm-messages']//a[text()='Edit post'] | ++ |
assertTextPresent | +ComicPress Manager Edit Post file management is enabled. | ++ |
assertText | +//span[@id='timestamp'] | +Published on: Jan 1, 1990 @ 0:00 | +
assertText | +//div[@id='comicdiv']/div[@class='inside']//strong[1] | +1990-01-01-sample-comic.jpeg | +
assertValue | +comicpress-img-title | +${hovertext} | +
assertValue | +comicpress-transcript | +${transcript} | +
assertChecked | +//div[@id='comicdiv']//table[@class='form-table']//tr[2]//div[1]//input | ++ |
click | +link=Delete | ++ |
assertConfirmation | +You are about to delete this post 'Sample Comic' 'Cancel' to stop, 'OK' to delete. |
+ + |
clickAndWait | +//li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[2]/a | ++ |
storeText | +//div[@id='import-count-information'] | +import_count | +
getEval | +/safely import ([0-9]+) comics/.test(storedVars['import_count']); storedVars['import_count'] = RegExp.$1 | ++ |
clickAndWait | +link=Bulk Edit page | ++ |
assertText | +//div[@class='activity-box']/h2 | +Bulk Edit | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/good-large-import.zip | +
uncheck | +multiple-new-post-checkbox | ++ |
type | +time | +12:00am | +
click | +submit | ++ |
waitForPageToLoad | +200000 | ++ |
clickAndWait | +//li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[2]/a | ++ |
click | +count-missing-posts-clicker | ++ |
waitForText | +//span[@id='missing-posts-display'] | +30 | +
assertText | +//span[@id='missing-posts-display'] | +30 | +
clickAndWait | +submit | ++ |
assertText | +//div[@id='cpm-messages']/ul/li[1] | +Import safely exited before you ran out of execution time. Scroll down to continue creating missing posts. | +
getEval | +storedVars['index'] = storedVars['import_count'] | ++ |
while | +storedVars['index'] > 0 | ++ |
assertText | +//div[@id='cpm-messages']/ul/li[last()]/ul/li[${index}]/strong | +Sample Import Comic | +
assertTextPresent | +regexp:1990-01-[0-9][0-9] | ++ |
getEval | +storedVars['index']-- | ++ |
endWhile | ++ | + |
clickAndWait | +//input[@value='Continue Creating Posts'] | ++ |
assertText | +//div[@id='cpm-messages']/ul/li[1] | +Import safely exited before you ran out of execution time. Scroll down to continue creating missing posts. | +
getEval | +storedVars['index'] = storedVars['import_count'] | ++ |
while | +storedVars['index'] > 0 | ++ |
assertTextPresent | +Sample Import Comic | ++ |
assertTextPresent | +regexp:1990-01-[0-9][0-9] 00:00:00 | ++ |
getEval | +storedVars['index']-- | ++ |
endWhile | ++ | + |
clickAndWait | +//input[@value='Continue Creating Posts'] | ++ |
assertTextPresent | +No new posts needed to be created. | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +No items to display | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
click | +multiple-new-post-checkbox | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-UPPERCASE-COMIC.JPG | +
clickAndWait | +submit | ++ |
clickAndWait | +//li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[2]/a | ++ |
click | +count-missing-posts-clicker | ++ |
waitForText | +//span[@id='missing-posts-display'] | +1 | +
assertText | +//span[@id='missing-posts-display'] | +1 | +
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
TestMUSpecificChanges | ||
clickAndWait | +link=ComicPress Config | ++ |
open | +/comicpress_manager_mu/wordpress-mu/wp-admin/ | ++ |
assertTextNotPresent | +You won't be able to automatically update your configuration. | ++ |
assertTextNotPresent | +Comic Folder: | ++ |
assertTextNotPresent | +RSS Comic Folder: | ++ |
assertTextNotPresent | +Archive Comic Folder: | ++ |
assertTextPresent | +Archive Comic Width: | ++ |
TestQuomicPress | ||
open | +/comicpress_manager_mu/wordpress-mu/wp-admin/ | ++ |
clickAndWait | +link=Manager Config | ++ |
type | +cpm-default-post-time | +12:00am | +
check | +cpm-edit-post-integrate | ++ |
check | +cpm-enable-quomicpress | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Dashboard | ++ |
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
click | +//input[@value='Upload Comic File and Edit Post'] | ++ |
waitForPageToLoad | +50000 | ++ |
assertSelectedIndex | +//select[@id='mm'] | +0 | +
assertValue | +//input[@id='jj'] | +01 | +
assertValue | +//input[@id='aa'] | +1990 | +
assertElementPresent | +//span[@id='timestamp']/b[contains(text(), 'Jan 1, 1990')] | ++ |
click | +link=Delete | ++ |
assertConfirmation | +You are about to delete this draft 'Sample Comic' 'Cancel' to stop, 'OK' to delete. |
+ + |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +link=Manager Config | ++ |
storeValue | +cpm-default-post-time | +original_post_time | +
type | +cpm-default-post-time | +7:35am | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Dashboard | ++ |
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
clickAndWait | +//input[@value='Upload Comic File and Edit Post'] | ++ |
verifyText | +//span[@id='timestamp']/b | +Jan 1, 1990 @ 7:35 | +
click | +link=Delete | ++ |
assertConfirmation | +You are about to delete this draft 'Sample Comic' 'Cancel' to stop, 'OK' to delete. |
+ + |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +link=Manager Config | ++ |
type | +cpm-default-post-time | +${original_post_time} | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Manager Config | ++ |
uncheck | +cpm-default-comic-category-is-last-storyline | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Storyline Structure | ++ |
uncheck | +enable-storyline-support | ++ |
click | +enable-storyline-support | ++ |
storeValue | +//div[@id='storyline-holder']/div[1]/input | +chosen_storyline | +
clickAndWait | +link=Dashboard | ++ |
assertElementPresent | +//strong[text()='${chosen_storyline}'] | ++ |
storeValue | +//input[@name='in-comic-category[]'] | +category_id | +
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
clickAndWait | +//input[@value='Upload Comic File and Edit Post'] | ++ |
assertChecked | +//input[@name='in-comic-category[]'][@value='${category_id}'] | ++ |
click | +link=Delete | ++ |
assertConfirmation | +You are about to delete this draft 'Sample Comic' 'Cancel' to stop, 'OK' to delete. |
+ + |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-default-comic-category-is-last-storyline | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +link=Storyline Structure | ++ |
storeValue | +//div[@id='storyline-holder']/div[last()]/input | +chosen_storyline | +
clickAndWait | +link=Dashboard | ++ |
assertElementPresent | +//strong[text()='${chosen_storyline}'] | ++ |
storeValue | +//input[@name='in-comic-category[]'] | +category_id | +
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
clickAndWait | +//input[@value='Upload Comic File and Edit Post'] | ++ |
assertChecked | +//input[@name='in-comic-category[]'][@value='${category_id}'] | ++ |
click | +link=Delete | ++ |
assertConfirmation | +You are about to delete this draft 'Sample Comic' 'Cancel' to stop, 'OK' to delete. |
+ + |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +link=Dashboard | ++ |
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
type | +override-date | +1990-01-02 | +
clickAndWait | +//input[@value='Upload Comic File and Edit Post'] | ++ |
assertElementPresent | +//span[@id='timestamp']/b[contains(text(), 'Jan 2, 1990')] | ++ |
click | +link=Delete | ++ |
assertConfirmation | +You are about to delete this draft 'Sample Comic' 'Cancel' to stop, 'OK' to delete. |
+ + |
waitForPageToLoad | +30000 | ++ |
TestReplaceComicFile | ||
open | +/comicpress_manager_mu/wordpress-mu/wp-admin/ | ++ |
clickAndWait | +link=Dashboard | ++ |
type | +upload | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
click | +//input[@value='Upload Comic File and Edit Post'] | ++ |
waitForPageToLoad | +50000 | ++ |
storeElementWidth | +//img[@id='comic-icon'] | +width | +
assertElementPresent | +//div[@id='comicdiv']//strong/a[contains(@href, 'sample-comic.jpeg')] | ++ |
type | +comicpress-replace-image | +/home/john/Desktop/comicpress/selenium/1990-01-01-wider-than-longer.png | +
clickAndWait | +//input[@id='upload-new-file-button'] | ++ |
assertNotElementWidth | +//img[@id='comic-icon'] | +${width} | +
assertElementPresent | +//div[@id='comicdiv']//strong/a[contains(@href, 'sample-comic.png')] | ++ |
click | +link=Delete | ++ |
assertConfirmation | +You are about to delete this draft 'Sample Comic' 'Cancel' to stop, 'OK' to delete. |
+ + |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
click | +multiple-new-post-checkbox | ++ |
clickAndWait | +submit | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +No new posts created. | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
storeElementWidth | +//td[@class='comic']//img | +width | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-wider-than-longer.png | +
click | +multiple-new-post-checkbox | ++ |
select | +overwrite-existing-file-choice | +label=1990-01-01-sample-comic.jpeg | +
click | +//option[@value='1990-01-01-sample-comic.jpeg'] | ++ |
assertVisible | +//tr[@id='rebuild-thumbnails'] | ++ |
select | +upload-destination | +label=Archive folder | +
click | +//option[@value='archive_comic'] | ++ |
assertNotVisible | +//tr[@id='rebuild-thumbnails'] | ++ |
select | +upload-destination | +label=Comics folder | +
click | +//option[@value='comic'] | ++ |
clickAndWait | +submit | ++ |
assertTextPresent | +No new posts created. | ++ |
assertTextPresent | +Uploaded file 1990-01-01-wider-than-longer.png renamed to 1990-01-01-sample-comic.png. | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.png | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.png | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
verifyNotElementWidth | +//td[@class='comic']//img | +${width} | +
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
clickAndWait | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
TestSidebars | ||
open | +/comicpress_manager_mu/wordpress-mu/wp-admin/ | ++ |
assertElementPresent | +//img[contains(@src, 'comicpress-icon.png')] | ++ |
clickAndWait | +link=Manager Config | ++ |
select | +cpm-sidebar-type | +label=ComicPress Status and Help | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertElementNotPresent | +//div[@id='cpm-activity-column'][@class='no-sidebar'] | ++ |
assertElementPresent | +//div[@id='comicpress-details'] | ++ |
assertElementNotPresent | +//div[@id='comicpress-details']//a[text()='comicpress-config.php'] | ++ |
clickAndWait | +link=ComicPress Config | ++ |
storeSelectedLabel | +comiccat | +comiccat | +
storeSelectedLabel | +blogcat | +blogcat | +
assertText | +//div[@id='comicpress-details']//li[6]/a | +${comiccat} | +
assertText | +//div[@id='comicpress-details']//li[7]/a | +${blogcat} | +
assertTextPresent | +Comics folder: comics | ++ |
assertTextPresent | +Archive folder: comics-archive | ++ |
assertTextPresent | +RSS feed folder: comics-rss | ++ |
clickAndWait | +link=Manager Config | ++ |
select | +cpm-sidebar-type | +label=Latest Comic Posts | +
assertElementNotPresent | +//span[@id='debug-info'] | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertElementNotPresent | +//div[@id='cpm-activity-column'][@class='no-sidebar'] | ++ |
assertElementPresent | +//div[@id='comicpress-latest-posts'] | ++ |
select | +cpm-sidebar-type | +label=No Sidebar | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
assertElementPresent | +//div[@id='cpm-activity-column'][@class='no-sidebar'] | ++ |
select | +cpm-sidebar-type | +label=ComicPress Status and Help | +
clickAndWait | +//input[@value='Change Configuration'] | ++ |
TestStorylineStructure | ||
open | +/comicpress_manager_mu/wordpress-mu/wp-admin/ | ++ |
clickAndWait | +link=Storyline Structure | ++ |
uncheck | +enable-storyline-support | ++ |
click | +enable-storyline-support | ++ |
assertVisible | +//div[@id='storyline-holder'] | ++ |
click | +enable-storyline-support | ++ |
assertNotVisible | +//div[@id='storyline-holder'] | ++ |
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertNotVisible | +//div[@id='storyline-holder'] | ++ |
click | +enable-storyline-support | ++ |
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertVisible | +//div[@id='storyline-holder'] | ++ |
store | +Selenium Test Category 123 | +catname1 | +
store | +Selenium Test Category 234 | +catname2 | +
click | +//div[@id='storyline-holder']/div[1]//a | ++ |
type | +//div[@id='storyline-holder']/div[2]/input | +${catname1} | +
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertElementPresent | +//div[@id='storyline-holder']/div[2]/input[@value='${catname1}'] | ++ |
click | +//div[@id='storyline-holder']/div[2]//a[1] | ++ |
type | +//div[@id='storyline-holder']/div[3]/input | +${catname2} | +
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertElementPresent | +//div[@id='storyline-holder']/div[3]/input[@value='${catname2}'] | ++ |
click | +//div[@id='storyline-holder']/div[3]//a[@class='up'] | ++ |
assertElementPresent | +//div[@id='storyline-holder']/div[2]/input[@value='${catname2}'] | ++ |
assertElementPresent | +//div[@id='storyline-holder']/div[3]/input[@value='${catname1}'] | ++ |
click | +//div[@id='storyline-holder']/div[3]//a[@class='delete'] | ++ |
click | +//div[@id='storyline-holder']/div[2]//a[@class='delete'] | ++ |
clickAndWait | +//input[@value='Save Structure and Modify Categories'] | ++ |
assertElementNotPresent | +//div[@id='storyline-holder']/div[3]/input[@value='${catname1}'] | ++ |
assertElementNotPresent | +//div[@id='storyline-holder']/div[2]/input[@value='${catname2}'] | ++ |
TestUploadComicFile | ||
open | +/comicpress_manager_mu/wordpress-mu/wp-admin/ | ++ |
store | +Selenium Title | +title | +
store | +Selenium Hovertext | +hovertext | +
store | +Selenium Transcript | +transcript | +
clickAndWait | +link=Manager Config | ++ |
check | +cpm-perform-gd-check | ++ |
check | +cpm-archive-generate-thumbnails | ++ |
check | +cpm-rss-generate-thumbnails | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
assertTextPresent | +(generating) | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg | +
type | +override-title-to-use | +${title} | +
type | +hovertext-to-use | +${hovertext} | +
type | +transcript-to-use | +${transcript} | +
click | +//input[@id='top-submit'] | ++ |
waitForPageToLoad | +60000 | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +${title} | ++ |
clickAndWait | +//div[@id='cpm-messages']//a[text()='Edit post'] | ++ |
assertValue | +title | +${title} | +
assertElementPresent | +//span[@id='timestamp']/b[contains(text(), 'Jan 1, 1990')] | ++ |
assertElementPresent | +//div[@id='comicdiv']//a[text()='1990-01-01-sample-comic.jpeg'] | ++ |
assertValue | +comicpress-img-title | +${hovertext} | +
assertValue | +comicpress-transcript | +${transcript} | +
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
assertTextPresent | +Displaying 1-1 of 1 | ++ |
assertTextPresent | +Sample Comic | ++ |
assertTextPresent | +${title} | ++ |
assertTextPresent | +${hovertext} | ++ |
assertTextPresent | +${transcript} | ++ |
assertElementPresent | +//td[@class='comic']//a[contains(@href, '1990-01-01-sample-comic.jpeg')][text()='rss'] | ++ |
assertElementPresent | +//td[@class='comic']//a[contains(@href, '1990-01-01-sample-comic.jpeg')][text()='archive'] | ++ |
click | +regen-1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +doaction | ++ |
assertTextPresent | +The following thumbnails were written: 1990-01-01-sample-comic.jpeg | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +1990-01-01-sample-comic.jpeg | ++ |
assertText | +//div[@class='tablenav'][1]//span[@class='displaying-num'] | +No items to display | +
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +You didn't upload any files! | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.txt | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +According to GD, the following files were invalid image files: 1990-01-01-sample-comic.txt | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +According to GD, the following files were invalid image files: 1990-01-01-sample-comic-not-jpeg.jpeg | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-too-large-file.jpeg | +
click | +//input[@id='top-submit'] | ++ |
waitForPageToLoad | +300000 | ++ |
assertTextPresent | +Your uploaded files were larger than the post_max_size setting | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.zip | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.txt.zip | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +According to GD, the following files were invalid image files: 1990-01-01-sample-comic.txt | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/comics.zip | +
clickAndWait | +//input[@id='top-submit'] | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpeg | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +1990-01-01-sample-comic.jpeg | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/too-large-import.zip | +
click | +multiple-new-post-checkbox | ++ |
click | +submit | ++ |
waitForPageToLoad | +60000 | ++ |
assertTextPresent | +The file too-large-import.zip was too large. | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-gif_thumbnail.gif | +
click | +multiple-new-post-checkbox | ++ |
clickAndWait | +submit | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-gif_thumbnail.gif | ++ |
assertTextPresent | +Thumbnails were written for the following files: 1990-01-01-gif_thumbnail.gif | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
assertTextPresent | +1990-01-01-gif_thumbnail.gif | ++ |
clickAndWait | +link=Manager Config | ++ |
check | +cpm-perform-gd-check | ++ |
clickAndWait | +//input[@value='Change Configuration'] | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-no-extension-jpeg | +
clickAndWait | +top-submit | ++ |
assertTextPresent | +GD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic-no-extension-jpeg | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic-no-extension-jpeg.jpg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-no-extension-jpeg.zip | +
clickAndWait | +submit | ++ |
assertTextPresent | +GD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic-no-extension-jpeg | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic-no-extension-jpeg.jpg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.bad-extension | +
clickAndWait | +top-submit | ++ |
assertTextPresent | +GD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic.bad-extension | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |
clickAndWait | +//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] | ++ |
type | +upload-0 | +/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.bad-extension.zip | +
clickAndWait | +top-submit | ++ |
assertTextPresent | +GD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic.bad-extension | ++ |
assertTextPresent | +The following files were uploaded: 1990-01-01-sample-comic.jpg | ++ |
clickAndWait | +link=Bulk Edit | ++ |
select | +dates | +label=January 1990 | +
clickAndWait | +dofilter | ++ |
click | +toggle-all | ++ |
select | +bulk-action | +label=Delete Selected | +
click | +doaction | ++ |
assertConfirmation | +You are about to delete the selected posts and comic files. Are you sure? | ++ |
waitForPageToLoad | +30000 | ++ |