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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DoTeardown
clickAndWaitlink=Bulk Edit
labelkeep_tearing_down
storeText//select[@id='dates']/option[last()]last_date
getEval"${last_date}"
gotoIf"${last_date}" != "January 1990"skip_teardown
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
gotokeep_tearing_down
labelskip_teardown
clickAndWaitlink=Manager Config
checkcpm-edit-post-integrate
checkcpm-archive-generate-thumbnails
checkcpm-rss-generate-thumbnails
typecpm-default-override-title
typecpm-default-post-tags
uncheckcpm-default-comic-category-is-last-storyline
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=ComicPress Config
selectcomic_folderlabel=comics
selectarchive_comic_folderlabel=comics-archive
selectrss_comic_folderlabel=comics-rss
clickAndWait//input[@value='Update Config']
selectcomiclabel=A Moment of Clarity (default)
clickAndWait//input[@value='Submit']
assertTextNotPresentComics folder: comics/guild-of-thieves
assertTextNotPresentArchive folder: comics-archive/guild-of-thieves
assertTextNotPresentRSS feed folder: comics-rss/guild-of-thieves
assertTextNotPresentComics folder: comics/comics
assertTextNotPresentArchive folder: comics-archive/comics
assertTextNotPresentRSS feed folder: comics-rss/comics
assertTextPresentComics folder: comics
assertTextPresentArchive folder: comics-archive
assertTextPresentRSS feed folder: comics
+ + diff --git a/test/selenium/MOAB Kayenta Epson 3800.icc b/test/selenium/MOAB Kayenta Epson 3800.icc new file mode 100644 index 0000000..9e37034 Binary files /dev/null and b/test/selenium/MOAB Kayenta Epson 3800.icc differ diff --git a/test/selenium/TestChangeComicPressConfigNoDeleteLatestComic.html b/test/selenium/TestChangeComicPressConfigNoDeleteLatestComic.html new file mode 100644 index 0000000..6579d98 --- /dev/null +++ b/test/selenium/TestChangeComicPressConfigNoDeleteLatestComic.html @@ -0,0 +1,106 @@ + + + + + + +TestChangeComicPressConfigNoDeleteLatestComic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestChangeComicPressConfigNoDeleteLatestComic
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
getEvaln = new Date(); storedVars['upload_date'] = n.getFullYear() + "-" + (n.getMonth() + 1) + "-" + n.getDate();
typeoverride-date${upload_date}
clickAndWaittop-submit
clickAndWaitlink=Edit post
storeLocationpost_location
assertElementPresentpreview-comic
assertTextPresentsample-comic.jpeg
clickAndWaitlink=ComicPress Config
clickAndWait//input[@value='Update Config']
open${post_location}
assertElementPresentpreview-comic
assertTextPresentsample-comic.jpeg
clicklink=Move to Trash
waitForPageToLoad30000
assertTextPresentPost moved to the trash.
+ + diff --git a/test/selenium/TestChangeDates.html b/test/selenium/TestChangeDates.html new file mode 100644 index 0000000..2828984 --- /dev/null +++ b/test/selenium/TestChangeDates.html @@ -0,0 +1,167 @@ + + + + + + +TestChangeDates + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestChangeDates
open/wp-admin/
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
clickAndWait//input[@id='top-submit']
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
clickAndWaitlink=Change Dates
typestart-date1989-12-30
typeend-date1990-01-10
clickAndWait//input[@value='Filter']
store1990-01-02test_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}
clickAndWaitsubmit
assertTextNotPresentWarning: rename
assertTextPresentto ${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}
clickAndWaitsubmit
assertTextPresentto ${original_date}
assertTextNotPresentWarning: rename
assertElementPresent//div[@class='activity-box']/form[2]//tr[1]/td[contains(text(), '${original_date}')]
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
+ + diff --git a/test/selenium/TestComicPressManagerConfig.html b/test/selenium/TestComicPressManagerConfig.html new file mode 100644 index 0000000..06a889f --- /dev/null +++ b/test/selenium/TestComicPressManagerConfig.html @@ -0,0 +1,970 @@ + + + + + + +TestComicPressManagerConfig + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestComicPressManagerConfig
open/wp-admin/
clickAndWaitlink=Manager Config
storeValuecpm-default-post-timeoriginal_time
storeValuecpm-default-override-titleoriginal_title
storeValuecpm-default-post-tagsoriginal_tags
storeSelenium Titletitle
storeSelenium Tagstags
store7:38amtime
typecpm-default-post-time${time}
typecpm-default-override-title${title}
typecpm-default-post-tags${tags}
checkcpm-archive-generate-thumbnails
checkcpm-rss-generate-thumbnails
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
assertValuecpm-default-post-time${time}
assertValuecpm-default-override-title${title}
assertValuecpm-default-post-tags${tags}
typecpm-default-post-time${original_time}
typecpm-default-override-title${original_title}
typecpm-default-post-tags${original_tags}
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
typecpm-default-post-timemeow123
typecpm-default-override-title${title}
clickAndWait//input[@value='Change Configuration']
assertNotValuecpm-default-post-timemeow123
assertNotValuecpm-default-post-time${title}
assertTextPresentYou entered invalid data into your configuration.
uncheckcpm-default-comic-category-is-last-storyline
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress 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
clickAndWaitlink=Manager Config
checkcpm-default-comic-category-is-last-storyline
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress 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
clickAndWaitlink=Manager Config
uncheckcpm-default-comic-category-is-last-storyline
check//input[@name='cpm-default-additional-categories[]'][1]
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertChecked//input[@name='additional-categories[]'][1]
clickAndWaitlink=Manager Config
uncheck//input[@name='cpm-default-additional-categories[]'][1]
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertNotChecked//input[@name='additional-categories[]'][1]
clickAndWaitlink=Manager Config
selectcpm-sidebar-typelabel=ComicPress Status and Help
uncheckcpm-edit-post-integrate
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
clickAndWait//a[@href='post-new.php']
assertTextNotPresentComicPress Manager Edit Post file management is enabled.
clickAndWaitlink=Manager Config
checkcpm-edit-post-integrate
clickAndWait//input[@value='Change Configuration']
clickAndWait//a[@href='post-new.php']
assertTextPresentComicPress Manager Edit Post file management is enabled.
clickAndWaitlink=Manager Config
checkcpm-perform-gd-check
clickAndWait//input[@value='Change Configuration']
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg
clickAndWait//input[@id='top-submit']
assertTextPresentAccording to GD, the following files were invalid image files
clickAndWaitlink=Manager Config
uncheckcpm-perform-gd-check
clickAndWait//input[@value='Change Configuration']
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg
clickAndWait//input[@id='top-submit']
assertTextPresentThe following files were uploaded
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresent1990-01-01-sample-comic-not-jpeg.jpeg
clickAndWaitlink=Manager Config
checkcpm-perform-gd-check
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Manager Config
uncheckcpm-archive-generate-thumbnails
checkcpm-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']
clickAndWaitlink=Dashboard
assertTextPresentrss thumbnails that are
assertTextNotPresentarchive thumbnails that are
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextPresentIf enabled, you'll be writing thumbnails to: rss
clickAndWaitlink=Add New
assertTextPresent(thumbnails will be generated)
clickAndWaitlink=Manager Config
checkcpm-archive-generate-thumbnails
uncheckcpm-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
clickAndWaitlink=Dashboard
assertTextNotPresentrss thumbnails that are
assertTextPresentarchive thumbnails that are
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextPresentIf enabled, you'll be writing thumbnails to: archive
clickAndWaitlink=Add New
assertTextPresent(thumbnails will be generated)
clickAndWaitlink=Manager Config
uncheckcpm-archive-generate-thumbnails
uncheckcpm-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
clickAndWaitlink=Dashboard
assertTextNotPresentrss thumbnails that are
assertTextNotPresentarchive thumbnails that are
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextNotPresentGenerate thumbnails:
clickAndWaitlink=Add New
assertTextNotPresent(thumbnails will be generated)
clickAndWaitlink=Manager Config
checkcpm-archive-generate-thumbnails
checkcpm-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']
clickAndWaitlink=Manager Config
typecpm-default-post-timenow
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertValuetimenow
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
clickAndWaittop-submit
assertTextPresentNew posts created. View them from the links below:
assertTextPresentregexp:Sample Comic \(1990-01-01 [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\)
clickAndWaitlink=Dashboard
assertTextPresentYour post will be going live now
typeupload/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
typeoverride-date1990-01-02
clickAndWait//input[@value='Upload Comic File and Edit Post']
assertTextPresentregexp:Publish on: Jan 2, 1990 @ [0-9]{1,2}:[0-9][0-9]
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
clickAndWaitlink=Manager Config
typecpm-default-post-time${original_time}
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
clickAndWaitlink=Manager Config
checkcpm-strip-icc-profiles
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-profile.jpg
clickAndWaitsubmit
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic-profile.jpg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic-profile.jpg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
assertAttribute//img[@id='comic-icon-0']@src*1990-01-01-sample-comic-profile.jpg
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresentThe following comic files and their associated thumbnails were deleted: 1990-01-01-sample-comic-profile.jpg
clickAndWaitlink=Manager Config
uncheckcpm-strip-icc-profiles
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
+ + diff --git a/test/selenium/TestDashboardWidgets.html b/test/selenium/TestDashboardWidgets.html new file mode 100644 index 0000000..cd804e7 --- /dev/null +++ b/test/selenium/TestDashboardWidgets.html @@ -0,0 +1,162 @@ + + + + + + +TestDashboardWidgets + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestDashboardWidgets
open/wp-admin/
clickAndWait//li[@id='menu-dashboard']/a[1]
clickAndWaitlink=Manager Config
checkcpm-enable-dashboard-rss-feed
clickAndWait//input[@value='Change Configuration']
clickAndWait//li[@id='menu-dashboard']/a[1]
assertElementPresent//div[@id='dashboard_cpm']
clickAndWaitlink=Manager Config
uncheckcpm-enable-dashboard-rss-feed
clickAndWait//input[@value='Change Configuration']
clickAndWait//li[@id='menu-dashboard']/a[1]
assertElementNotPresent//div[@id='dashboard_cpm']
clickAndWaitlink=Manager Config
checkcpm-enable-quomicpress
clickAndWait//input[@value='Change Configuration']
clickAndWait//li[@id='menu-dashboard']/a[1]
assertElementPresent//div[@id='dashboard_quomicpress']
clickAndWaitlink=Manager Config
uncheckcpm-enable-quomicpress
clickAndWait//input[@value='Change Configuration']
clickAndWait//li[@id='menu-dashboard']/a[1]
assertElementNotPresent//div[@id='dashboard_quomicpress']
clickAndWaitlink=Manager Config
checkcpm-enable-quomicpress
checkcpm-enable-dashboard-rss-feed
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Widgets
assertElementNotPresent//li[contains(@id, 'dashboard_cpm')]
assertElementNotPresent//li[contains(@id, 'dashboard_quomicpress')]
+ + diff --git a/test/selenium/TestEditPage.html b/test/selenium/TestEditPage.html new file mode 100644 index 0000000..5adae96 --- /dev/null +++ b/test/selenium/TestEditPage.html @@ -0,0 +1,47 @@ + + + + + + +TestEditPage + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestEditPage
open/wp-admin/
clickAndWaitlink=Pages
clickAndWait//a[@title="Edit this page"]
clickedButtonHTML
typeKeyscontenttest
clickAndWaitpublish
+ + diff --git a/test/selenium/TestEditPost.html b/test/selenium/TestEditPost.html new file mode 100644 index 0000000..960ff43 --- /dev/null +++ b/test/selenium/TestEditPost.html @@ -0,0 +1,192 @@ + + + + + + +TestEditPost + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestEditPost
open/wp-admin/
clickAndWaitlink=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]@valuecategory
assertNotChecked//div[@id='categories-all']//input[@value='1']
typetitleSelenium Test
clicksave-post
waitForPageToLoad50000
assertChecked//div[@id='categories-all']//input[@value='${category}']
assertNotChecked//div[@id='categories-all']//input[@value='1']
clickAndWaitlink=Move to Trash
assertTextPresentPost moved to the trash.
clickAndWait//a[@href='post-new.php']
typetitleSelenium Test
typecomicpress-replace-image/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
fireEventcomicpress-replace-imageclick
clickAndWaitpublish
assertTextPresentPost published. View post
assertValuetitleSelenium Test
assertCheckedpost_category-3
assertTextPresentsample-comic.jpeg
click//a[contains(@class, 'edit-slug')]
typenew-post-slugmy-test-permalink
clicklink=OK
clickAndWaitpublish
assertValuetitleSelenium Test
assertCheckedpost_category-3
assertTextPresentsample-comic.jpeg
clicklink=Move to Trash
waitForPageToLoad30000
assertTextPresentmoved to the trash.
+ + diff --git a/test/selenium/TestFirstRun.html b/test/selenium/TestFirstRun.html new file mode 100644 index 0000000..44e1f83 --- /dev/null +++ b/test/selenium/TestFirstRun.html @@ -0,0 +1,337 @@ + + + + + + +TestFirstRun + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestFirstRun
clickAndWaitlink=ComicPress Config
clickfolder-e-comic_folder
typeenter-comic_folderbad1
clickfolder-e-rss_comic_folder
typeenter-rss_comic_folderbad2
clickfolder-e-archive_comic_folder
typeenter-archive_comic_folderbad3
clickAndWait//input[@value='Update Config']
assertTextPresentCreate your comics, archive, or RSS folders first
clickfolder-s-comic_folder
clickfolder-s-rss_comic_folder
clickfolder-s-archive_comic_folder
clickAndWait//input[@value='Update Config']
assertTextNotPresentCreate 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
typecomicpress-manager-cpm-did-first-run0
clickAndWaitUpdate
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextNotPresentComicPress Manager First Run
clickAndWaitlink=ComicPress Config
clickfolder-e-comic_folder
typeenter-comic_folderbad1
clickfolder-e-rss_comic_folder
typeenter-rss_comic_folderbad2
clickfolder-e-archive_comic_folder
typeenter-archive_comic_folderbad3
clickAndWait//input[@value='Update Config']
open/wp-admin/options.php
typecomicpress-manager-cpm-did-first-run0
clickAndWaitUpdate
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextPresentComicPress Manager First Run
clickAndWait//input[@value="No, I'll make them myself"]
clickfolder-s-comic_folder
clickfolder-s-rss_comic_folder
clickfolder-s-archive_comic_folder
clickAndWait//input[@value='Update Config']
open/wp-admin/options.php
typecomicpress-manager-cpm-did-first-run0
clickAndWaitUpdate
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextNotPresentComicPress Manager First Run
clickAndWaitlink=ComicPress Config
clickfolder-e-comic_folder
typeenter-comic_folderbad1
clickfolder-e-rss_comic_folder
typeenter-rss_comic_folderbad2
clickfolder-e-archive_comic_folder
typeenter-archive_comic_folderbad3
clickAndWait//input[@value='Update Config']
open/wp-admin/options.php
typecomicpress-manager-cpm-did-first-run0
clickAndWaitUpdate
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextPresentComicPress Manager First Run
clickAndWaitlink=ComicPress Config
assertTextNotPresentComicPress Manager First Run
clickfolder-s-comic_folder
clickfolder-s-rss_comic_folder
clickfolder-s-archive_comic_folder
selectselect-comic_foldercomics
selectselect-rss_comic_foldercomics-rss
selectselect-archive_comic_foldercomics-archive
clickAndWait//input[@value='Update Config']
+ + diff --git a/test/selenium/TestImportComic.html b/test/selenium/TestImportComic.html new file mode 100644 index 0000000..145ed73 --- /dev/null +++ b/test/selenium/TestImportComic.html @@ -0,0 +1,572 @@ + + + + + + +TestImportComic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestImportComic
open/wp-admin/
storeSelenium Hovertexthovertext
storeSelenium Transcripttranscript
clickAndWaitlink=ComicPress Config
clickfolder-s-comic_folder
clickfolder-s-rss_comic_folder
clickfolder-s-archive_comic_folder
selectselect-comic_foldercomics
selectselect-rss_comic_foldercomics-rss
selectselect-archive_comic_foldercomics-archive
clickAndWait//input[@value='Update Config']
clickAndWaitlink=Manager Config
checkcpm-edit-post-integrate
checkcpm-archive-generate-thumbnails
checkcpm-rss-generate-thumbnails
typecpm-default-override-title
typecpm-default-post-tags
uncheckcpm-default-comic-category-is-last-storyline
clickAndWait//input[@value='Change Configuration']
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
uncheckmultiple-new-post-checkbox
clickAndWaitsubmit
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.jpeg
assertTextPresentNo new posts created.
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]
assertElementNotPresentduplicate-check
clickcount-missing-posts-clicker
pause2000
waitForText//span[@id='missing-posts-display']1
assertText//span[@id='missing-posts-display']1
assertChecked//div[@id='create-missing-posts-holder']//div[1]//input
typetime12:00am
typehovertext-to-use${hovertext}
typetranscript-to-use${transcript}
clickAndWaitsubmit
assertTextPresentNew thumbnails were not needed for the following files: 1990-01-01-sample-comic.jpeg
assertTextPresentNew posts created. View them from the links below:
assertTextPresentSample Comic (1990-01-01 00:00:00)
clickAndWait//div[@id='cpm-messages']//a[text()='Edit post']
assertTextPresentComicPress 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
assertValuecomicpress-img-title${hovertext}
assertValuecomicpress-transcript${transcript}
assertChecked//div[@id='comic-for-this-post']//table[@class='form-table']//tr[2]//div[1]//input
clicklink=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
clickAndWaitlink=Bulk Edit page
assertText//div[@class='activity-box']/h2Bulk Edit
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/good-large-import.zip
uncheckmultiple-new-post-checkbox
typetime12:00am
clicksubmit
waitForPageToLoad200000
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]
clickcount-missing-posts-clicker
waitForText//span[@id='missing-posts-display']30
assertText//span[@id='missing-posts-display']30
clickAndWaitsubmit
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.
getEvalstoredVars['index'] = storedVars['import_count']
whilestoredVars['index'] > 0
assertText//div[@id='cpm-messages']/ul/li[last()]/ul/li[${index}]/strongSample Import Comic
assertTextPresentregexp:1990-01-[0-9][0-9]
getEvalstoredVars['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.
getEvalstoredVars['index'] = storedVars['import_count']
whilestoredVars['index'] > 0
assertTextPresentSample Import Comic
assertTextPresentregexp:1990-01-[0-9][0-9] 00:00:00
getEvalstoredVars['index']--
endWhile
clickAndWait//input[@value='Continue Creating Posts']
assertTextPresentNo new posts needed to be created.
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresentNo items to display
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
clickmultiple-new-post-checkbox
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-UPPERCASE-COMIC.JPG
clickAndWaitsubmit
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]
clickcount-missing-posts-clicker
waitForText//span[@id='missing-posts-display']1
assertText//span[@id='missing-posts-display']1
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
+ + diff --git a/test/selenium/TestQuomicPress.html b/test/selenium/TestQuomicPress.html new file mode 100644 index 0000000..322d571 --- /dev/null +++ b/test/selenium/TestQuomicPress.html @@ -0,0 +1,337 @@ + + + + + + +TestQuomicPress + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestQuomicPress
open/wp-admin/
clickAndWaitlink=Manager Config
typecpm-default-post-time12:00am
checkcpm-edit-post-integrate
checkcpm-enable-quomicpress
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Dashboard
typeupload/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
click//input[@value='Upload Comic File and Edit Post']
waitForPageToLoad50000
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')]
clicklink=Move to Trash
waitForPageToLoad30000
clickAndWaitlink=Manager Config
storeValuecpm-default-post-timeoriginal_post_time
typecpm-default-post-time7:35am
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Dashboard
typeupload/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
clickAndWait//input[@value='Upload Comic File and Edit Post']
verifyText//span[@id='timestamp']/bJan 1, 1990 @ 7:35
clicklink=Move to Trash
waitForPageToLoad30000
clickAndWaitlink=Manager Config
typecpm-default-post-time${original_post_time}
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Manager Config
uncheckcpm-default-comic-category-is-last-storyline
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Storyline Structure
uncheckenable-storyline-support
clickenable-storyline-support
storeValue//div[@id='storyline-holder']/div[1]/inputchosen_storyline
clickAndWaitlink=Dashboard
assertElementPresent//strong[text()='${chosen_storyline}']
storeValue//input[@name='in-comic-category[]']category_id
typeupload/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}']
clicklink=Move to Trash
waitForPageToLoad30000
clickAndWaitlink=Manager Config
checkcpm-default-comic-category-is-last-storyline
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Storyline Structure
storeValue//div[@id='storyline-holder']/div[last()]/inputchosen_storyline
clickAndWaitlink=Dashboard
assertElementPresent//strong[text()='${chosen_storyline}']
storeValue//input[@name='in-comic-category[]']category_id
typeupload/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}']
clicklink=Move to Trash
waitForPageToLoad30000
clickAndWaitlink=Dashboard
typeupload/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
typeoverride-date1990-01-02
clickAndWait//input[@value='Upload Comic File and Edit Post']
assertElementPresent//span[@id='timestamp']/b[contains(text(), 'Jan 2, 1990')]
clicklink=Move to Trash
waitForPageToLoad30000
+ + diff --git a/test/selenium/TestReplaceComicFile.html b/test/selenium/TestReplaceComicFile.html new file mode 100644 index 0000000..3f0e869 --- /dev/null +++ b/test/selenium/TestReplaceComicFile.html @@ -0,0 +1,267 @@ + + + + + + +TestReplaceComicFile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestReplaceComicFile
open/wp-admin/
clickAndWaitlink=Dashboard
typeupload/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
click//input[@value='Upload Comic File and Edit Post']
waitForPageToLoad50000
storeElementWidth//img[@id='comic-icon']width
assertElementPresent//div[@id='comic-for-this-post']//strong/a[contains(@href, 'sample-comic.jpeg')]
typecomicpress-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')]
clicklink=Move to Trash
waitForPageToLoad30000
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertNotVisible//tr[@id='rebuild-thumbnails']
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
clickmultiple-new-post-checkbox
clickAndWaitsubmit
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.jpeg
assertTextPresentNo new posts created.
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
storeElementWidth//td[@class='comic']//imgwidth
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-wider-than-longer.png
clickmultiple-new-post-checkbox
selectoverwrite-existing-file-choicelabel=1990-01-01-sample-comic.jpeg
click//option[@value='1990-01-01-sample-comic.jpeg']
assertVisible//tr[@id='rebuild-thumbnails']
selectupload-destinationlabel=Archive folder
click//option[@value='archive_comic']
assertNotVisible//tr[@id='rebuild-thumbnails']
selectupload-destinationlabel=Comics folder
click//option[@value='comic']
clickAndWaitsubmit
assertTextPresentNo new posts created.
assertTextPresentUploaded file 1990-01-01-wider-than-longer.png renamed to 1990-01-01-sample-comic.png.
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.png
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.png
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
verifyNotElementWidth//td[@class='comic']//img${width}
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickAndWaitdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
+ + diff --git a/test/selenium/TestSidebars.html b/test/selenium/TestSidebars.html new file mode 100644 index 0000000..2aaa333 --- /dev/null +++ b/test/selenium/TestSidebars.html @@ -0,0 +1,187 @@ + + + + + + +TestSidebars + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestSidebars
open/wp-admin/
assertElementPresent//img[contains(@src, 'comicpress-icon.png')]
clickAndWaitlink=Manager Config
selectcpm-sidebar-typelabel=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']
storeSelectedLabelcomiccatcomiccat
storeSelectedLabelblogcatblogcat
storeSelectedValueselect-comic_foldercomic_folder
storeSelectedValueselect-rss_comic_folderrss_comic_folder
storeSelectedValueselect-archive_comic_folderarchive_comic_folder
storeSelectedValueselect-mini_comic_foldermini_comic_folder
assertText//div[@id='comicpress-details']//li[6]/a${comiccat}
assertText//div[@id='comicpress-details']//li[7]/a${blogcat}
assertTextPresentComics folder:
assertTextPresentArchive folder: ${archive_comic_folder}
assertTextPresentRSS feed folder: ${rss_comic_folder}
assertTextPresentMinithumb folder: ${mini_comic_folder}
clickAndWaitlink=Manager Config
click//a[text()='Show debug info']
selectcpm-sidebar-typelabel=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']
selectcpm-sidebar-typelabel=No Sidebar
clickAndWait//input[@value='Change Configuration']
assertElementPresent//div[@id='cpm-activity-column'][@class='no-sidebar']
selectcpm-sidebar-typelabel=ComicPress Status and Help
clickAndWait//input[@value='Change Configuration']
+ + diff --git a/test/selenium/TestStorylineStructure.html b/test/selenium/TestStorylineStructure.html new file mode 100644 index 0000000..8e14927 --- /dev/null +++ b/test/selenium/TestStorylineStructure.html @@ -0,0 +1,853 @@ + + + + + + +TestStorylineStructure + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestStorylineStructure
open/wp-admin/
clickAndWaitlink=Storyline Structure
assertElementPresent//input[@name='original-categories']
uncheckenable-storyline-support
clickenable-storyline-support
assertVisible//div[@id='storyline-holder']
clickenable-storyline-support
assertNotVisible//div[@id='storyline-holder']
clickAndWait//input[@value='Save Structure and Modify Categories']
assertNotVisible//div[@id='storyline-holder']
clickenable-storyline-support
clickAndWait//input[@value='Save Structure and Modify Categories']
assertVisible//div[@id='storyline-holder']
storeSelenium Test Category 123catname1
storeSelenium Test Category 234catname2
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}']
clickAndWaitlink=Storyline Structure
uncheckenable-storyline-support
clickAndWait//input[@value='Save Structure and Modify Categories']
clickAndWaitlink=Add New
assertElementNotPresent//div[@id='comic-for-this-post']//*[text()="Storyline"]
clickAndWaitlink=Storyline Structure
checkenable-storyline-support
clickAndWait//input[@value='Save Structure and Modify Categories']
clickAndWaitlink=Add New
assertElementPresent//div[@id='comic-for-this-post']//th[contains(text(),"Storyline")]
clickAndWaitlink=Storyline Structure
click//div[@id='storyline-holder']/div[1]//a
type//div[@id='storyline-holder']/div[2]/inputSelenium Test
clickAndWait//input[@value='Save Structure and Modify Categories']
assertTextPresentCategory Selenium Test created.
clickAndWaitlink=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*
clickAndWaitlink=Categories
assertTextPresentSelenium Test
assertElementPresent//td[contains(@class, 'slug') and contains(text(), 'selenium-test')]
clickAndWait//a[contains(text(),'Selenium Test')]
assertValuecat_nameSelenium Test
assertValuecategory_nicenameselenium-test
typecategory_nicenameselenium-test2
clickAndWaitsubmit
assertElementPresent//td[contains(@class, 'slug') and contains(text(), 'selenium-test2')]
clickAndWaitlink=Storyline Structure
assertElementPresent//input[@value='Selenium Test']
clickAndWaitlink=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*
clickAndWaitlink=Categories
assertElementPresent//td[contains(@class, 'slug') and contains(text(), 'selenium-test')]
clickAndWait//a[contains(text(),'Selenium Test')]
assertValuecat_nameSelenium Test
assertValuecategory_nicenameselenium-test2
typecategory_nicenameselenium-test3
clickAndWaitsubmit
assertElementPresent//td[contains(@class, 'slug') and contains(text(), 'selenium-test3')]
clickAndWaitlink=Storyline Structure
assertElementPresent//input[@value='Selenium Test']
clickAndWaitlink=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*
clickAndWaitlink=Storyline Structure
click//div[@id='storyline-holder']/div[2]/div/a[1]
type//div[@id='storyline-holder']/div[3]/inputSelenium Two
clickAndWait//input[@value='Save Structure and Modify Categories']
assertTextPresentCategory Selenium Two created.
clickAndWaitlink=Categories
assertTextPresentSelenium Test
assertTextPresentSelenium 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')]
assertValuecat_nameSelenium Two
assertValuecategory_nicenameselenium-two
typecategory_nicenameselenium-two2
clickAndWaitsubmit
assertElementPresent//td[contains(@class, 'slug') and contains(text(), 'selenium-test3')]
assertElementPresent//td[contains(@class, 'slug') and contains(text(), 'selenium-two2')]
clickAndWaitlink=Storyline Structure
assertElementPresent//input[@value='Selenium Test']
assertElementPresent//input[@value='Selenium Two']
clickAndWaitlink=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*
clickAndWaitlink=Storyline Structure
waitForVisiblestoryline-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']
assertTextPresentCategory Selenium Test deleted.
assertTextPresentCategory Selenium Two deleted.
click//div[@id='storyline-holder']/div[1]//a
type//div[@id='storyline-holder']/div[2]/inputSelenium Test
clickAndWait//input[@value='Save Structure and Modify Categories']
assertTextPresentCategory Selenium Test created.
click//div[@id='storyline-holder']/div[2]//a[2]
type//div[@id='storyline-holder']/div[3]/inputSelenium Test Child
clickAndWait//input[@value='Save Structure and Modify Categories']
assertTextPresentCategory Selenium Test Child created.
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-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
clickAndWaitsubmit
clickAndWaitlink=Edit post
storeLocationedit_post
assertChecked//th[contains(text(), "Storyline")]/..//div[3]//input
clickAndWaitlink=Storyline Structure
click//div[@id='storyline-holder']/div[3]/div/a[5]
clickAndWait//input[@value='Save Structure and Modify Categories']
assertTextPresentCategory Selenium Test Child deleted.
assertTextPresentThe following orphaned comic posts were placed into their original category's parent:
assertTextPresentStoryline structure saved.
clickAndWaitlink=Edit
selectmlabel=January 1990
clickAndWaitpost-query-submit
clickAndWait//table[contains(@class, 'widefat')]//span[@class='edit']/a
assertChecked//th[contains(text(), "Storyline")]/..//div[2]//input
clicklink=Delete
assertConfirmation*Sample Comic*
waitForPageToLoad30000
assertTextPresentPost deleted.
clickAndWaitlink=Storyline Structure
click//div[@id='storyline-holder']/div[2]/div/a[5]
clickAndWait//input[@value='Save Structure and Modify Categories']
assertTextPresentCategory Selenium Test deleted.
+ + diff --git a/test/selenium/TestSubdirectorySupport.html b/test/selenium/TestSubdirectorySupport.html new file mode 100644 index 0000000..5119eb8 --- /dev/null +++ b/test/selenium/TestSubdirectorySupport.html @@ -0,0 +1,545 @@ + + + + + + +TestSubdirectorySupport + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestSubdirectorySupport
clickAndWaitlink=Storyline Structure
uncheckenable-storyline-support
clickenable-storyline-support
clickAndWait//input[@value='Save Structure and Modify Categories']
clickAndWaitlink=ComicPress Config
assertTextPresentComics folder: comics
assertTextPresentArchive folder: comics-archive
assertTextPresentRSS feed folder: comics
assertTextNotPresentComics folder: comics/guild-of-thieves
assertTextNotPresentArchive folder: comics-archive/guild-of-thieves
assertTextNotPresentRSS feed folder: comics-rss/guild-of-thieves
assertElementPresent//select[@name='comic']/option[text()='Guild of Thieves']
selectcomiclabel=Guild of Thieves
clickAndWait//input[@value='Submit']
assertTextPresentNow managing Guild of Thieves
assertTextPresentComics folder: comics/guild-of-thieves
assertTextPresentArchive folder: comics-archive/guild-of-thieves
assertTextPresentRSS feed folder: comics-rss/guild-of-thieves
assertElementPresent//select[@name='comic']/option[text()='Guild of Thieves']
selectcomiclabel=Volume 2: Candynomics
clickAndWait//input[@value='Submit']
assertTextPresentNow managing Volume 2: Candynomics.
assertSelectedLabelcomicVolume 2: Candynomics
selectcomiclabel=Guild of Thieves
clickAndWait//input[@value='Submit']
assertTextPresentNow managing Guild of Thieves.
assertSelectedLabelcomicGuild of Thieves
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextPresentReminder: You are managing the Guild of Thieves comic subdirectory.
assertNotChecked//div[1]/label/input
assertChecked//div[2]/label/input
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
clickAndWaitsubmit
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.jpeg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
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')]
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresent1990-01-01-sample-comic.jpeg
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextPresentReminder: You are managing the Guild of Thieves comic subdirectory.
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
clickmultiple-new-post-checkbox
clickAndWaitsubmit
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.jpeg
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')]
clickcount-missing-posts-clicker
pause2000
click//div[@id='cpm-activity-column']/div/table/tbody/tr/td
assertTextmissing-posts-display1
assertNotChecked//div[1]/label/input
assertChecked//div[2]/label/input
clickAndWaitsubmit
assertTextPresentNew thumbnails were not needed for the following files: 1990-01-01-sample-comic.jpeg
assertTextPresentSample Comic (1990-01-01 00:00:00)
clickAndWaitlink=Edit post
assertValuetitleSample 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')]
clicklink=Delete
assertConfirmation*'Sample Comic'*
waitForPageToLoad30000
assertTextPresentPost deleted.
clickAndWaitlink=Bulk Edit
assertElementNotPresent//select[@id='dates']/option[text()='January 1990']
clickAndWaitlink=Dashboard
assertTextNotPresentIt looks like this is a new ComicPress install.
assertTextPresentin the Guild of Thieves category
assertTextPresentwill be uploaded to the Guild of Thieves comic subdirectory
typeupload/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
clickAndWait//input[@value='Upload Comic File and Edit Post']
assertValuetitleSample 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')]
assertTextPresentwill be uploaded to the Guild of Thieves comic subdirectory
clicklink=Move to Trash
waitForPageToLoad30000
assertTextPresentmoved to the trash
clickAndWaitlink=Bulk Edit
assertElementNotPresent//select[@id='dates']/option[text()='January 1990']
clickAndWaitlink=ComicPress Config
selectcomiclabel=A Moment of Clarity (default)
clickAndWait//input[@value='Submit']
assertTextNotPresentComics folder: comics/guild-of-thieves
assertTextNotPresentArchive folder: comics-archive/guild-of-thieves
assertTextNotPresentRSS feed folder: comics-rss/guild-of-thieves
assertTextNotPresentComics folder: comics/comics
assertTextNotPresentArchive folder: comics-archive/comics
assertTextNotPresentRSS feed folder: comics-rss/comics
assertTextPresentComics folder: comics
assertTextPresentArchive folder: comics-archive
assertTextPresentRSS feed folder: comics
+ + diff --git a/test/selenium/TestSuiteComicPressManager.html b/test/selenium/TestSuiteComicPressManager.html new file mode 100644 index 0000000..d372e39 --- /dev/null +++ b/test/selenium/TestSuiteComicPressManager.html @@ -0,0 +1,28 @@ + + + + + + Test Suite + + + + + + + + + + + + + + + + + + + +
Test Suite
TestEditPost
TestDashboardWidgets
TestStorylineStructure
TestFirstRun
TestChangeDates
TestUploadComicFile
TestComicPressManagerConfig
TestSidebars
TestQuomicPress
TestReplaceComicFile
TestImportComic
TestEditPage
TestSubdirectorySupport
TestChangeComicPressConfigNoDeleteLatestComic
DoTeardown
+ + diff --git a/test/selenium/TestUploadComicFile.html b/test/selenium/TestUploadComicFile.html new file mode 100644 index 0000000..501a15f --- /dev/null +++ b/test/selenium/TestUploadComicFile.html @@ -0,0 +1,1027 @@ + + + + + + +TestUploadComicFile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestUploadComicFile
open/wp-admin/
storeSelenium Titletitle
storeSelenium Hovertexthovertext
storeSelenium Transcripttranscript
clickAndWaitlink=Manager Config
checkcpm-perform-gd-check
checkcpm-archive-generate-thumbnails
checkcpm-rss-generate-thumbnails
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=ComicPress Config
selectcomiclabel=A Moment of Clarity (default)
clickAndWait//input[@value='Submit']
assertTextPresentNow managing A Moment of Clarity.
assertText//div[@id='comicpress-details']//li[3]//emgenerating
assertText//div[@id='comicpress-details']//li[4]//emgenerating
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
typeoverride-title-to-use${title}
typehovertext-to-use${hovertext}
typetranscript-to-use${transcript}
click//input[@id='top-submit']
waitForPageToLoad60000
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.jpeg
assertTextPresent${title}
clickAndWait//div[@id='cpm-messages']//a[text()='Edit post']
assertValuetitle${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']
assertValuecomicpress-img-title${hovertext}
assertValuecomicpress-transcript${transcript}
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
assertTextPresentDisplaying 1-1 of 1
assertXpathCount//table[@id='status-table']/tbody/tr[@class='data-row']2
assertTextPresentSample 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']
clickregen-1990-01-01-sample-comic.jpeg
clickAndWaitdoaction
assertTextPresentThe following thumbnails were written: 1990-01-01-sample-comic.jpeg
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresent1990-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']
assertTextNotPresentPHP upload error code
assertTextPresentYou didn't upload any files!
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.txt
clickAndWait//input[@id='top-submit']
assertTextPresentAccording to GD, the following files were invalid image files: 1990-01-01-sample-comic.txt
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg
clickAndWait//input[@id='top-submit']
assertTextPresentAccording to GD, the following files were invalid image files: 1990-01-01-sample-comic-not-jpeg.jpeg
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-too-large-file.jpeg
click//input[@id='top-submit']
waitForPageToLoad300000
assertTextPresentYour uploaded files were larger than the post_max_size setting
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.zip
click//input[@id='top-submit']
waitForPageToLoad600000
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.jpeg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
assertTextPresentDisplaying 1-1 of 1
assertXpathCount//table[@id='status-table']/tbody/tr[@class='data-row']2
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresent1990-01-01-sample-comic.jpeg
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.txt.zip
clickAndWait//input[@id='top-submit']
assertTextPresentAccording to GD, the following files were invalid image files: 1990-01-01-sample-comic.txt
typeupload-0/home/john/Desktop/comicpress/selenium/comics.zip
clickAndWait//input[@id='top-submit']
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.jpeg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
assertTextPresentDisplaying 1-1 of 1
assertXpathCount//table[@id='status-table']/tbody/tr[@class='data-row']2
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresent1990-01-01-sample-comic.jpeg
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/too-large-import.zip
clickmultiple-new-post-checkbox
clicksubmit
waitForPageToLoad60000
assertTextPresentregexp:(The file too-large-import.zip was too large.|larger than the post_max_size)
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-gif_thumbnail.gif
clickmultiple-new-post-checkbox
clickAndWaitsubmit
assertTextPresentThe following files were uploaded: 1990-01-01-gif_thumbnail.gif
assertTextPresentThumbnails were written for the following files: 1990-01-01-gif_thumbnail.gif
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
assertTextPresentDisplaying 1-1 of 1
assertXpathCount//table[@id='status-table']/tbody/tr[@class='data-row']1
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresent1990-01-01-gif_thumbnail.gif
clickAndWaitlink=Manager Config
checkcpm-perform-gd-check
clickAndWait//input[@value='Change Configuration']
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-no-extension-jpeg
clickAndWaittop-submit
assertTextPresentGD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic-no-extension-jpeg
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic-no-extension-jpeg.jpg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
assertTextPresentDisplaying 1-1 of 1
assertXpathCount//table[@id='status-table']/tbody/tr[@class='data-row']2
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-no-extension-jpeg.zip
clickAndWaitsubmit
assertTextPresentGD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic-no-extension-jpeg
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic-no-extension-jpeg.jpg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
assertTextPresentDisplaying 1-1 of 1
assertXpathCount//table[@id='status-table']/tbody/tr[@class='data-row']2
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.bad-extension
clickAndWaittop-submit
assertTextPresentGD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic.bad-extension
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
assertTextPresentDisplaying 1-1 of 1
assertXpathCount//table[@id='status-table']/tbody/tr[@class='data-row']2
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.bad-extension.zip
clickAndWaittop-submit
assertTextPresentGD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic.bad-extension
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
assertTextPresentDisplaying 1-1 of 1
assertXpathCount//table[@id='status-table']/tbody/tr[@class='data-row']2
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-cmyk.jpeg
clickAndWait//input[@id='top-submit']
assertTextPresentThe following JPEG files have been converted from CMYK to RGB: 1990-01-01-sample-comic-cmyk.jpeg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
assertTextPresentDisplaying 1-1 of 1
assertXpathCount//table[@id='status-table']/tbody/tr[@class='data-row']2
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
+ + diff --git a/test/selenium/WPMUDifferences.patch b/test/selenium/WPMUDifferences.patch new file mode 100644 index 0000000..cbc43ed --- /dev/null +++ b/test/selenium/WPMUDifferences.patch @@ -0,0 +1,1429 @@ +--- DoTeardown.html 2009-01-25 21:37:03.000000000 -0500 ++++ wpmu/DoTeardown.html 2009-01-29 11:50:51.000000000 -0500 +@@ -12,6 +12,11 @@ + DoTeardown + + ++ open ++ /comicpress_manager_mu/wordpress-mu/wp-admin/ ++ ++ ++ + clickAndWait + link=Bulk Edit + +--- TestChangeDates.html 2009-01-29 11:30:23.000000000 -0500 ++++ wpmu/TestChangeDates.html 2009-01-29 11:49:33.000000000 -0500 +@@ -3,7 +3,7 @@ + + + +- ++ + TestChangeDates + + +@@ -13,7 +13,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/ ++ /comicpress_manager_mu/wordpress-mu/wp-admin/ + + + +--- TestComicPressManagerConfig.html 2009-02-16 18:15:35.000000000 -0500 ++++ wpmu/TestComicPressManagerConfig.html 2009-01-29 12:39:29.000000000 -0500 +@@ -13,7 +13,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/ ++ /comicpress_manager_mu/wordpress-mu/wp-admin/ + + + +@@ -21,7 +21,6 @@ + link=Manager Config + + +- + + storeValue + cpm-default-post-time +@@ -192,7 +191,6 @@ + link=Manager Config + + +- + + check + cpm-default-comic-category-is-last-storyline +@@ -288,7 +286,6 @@ + //input[@name='additional-categories[]'][1] + + +- + + clickAndWait + link=Manager Config +@@ -314,7 +311,6 @@ + ComicPress Manager configuration updated. + + +- + + clickAndWait + //a[@href='post-new.php'] +@@ -350,7 +346,6 @@ + ComicPress Manager Edit Post file management is enabled. + + +- + + clickAndWait + link=Manager Config +@@ -481,7 +476,6 @@ + //input[@value='Change Configuration'] + + +- + + clickAndWait + link=Manager Config +@@ -504,12 +498,12 @@ + + + assertText +- //div[@id='comicpress-details']//li[3]//em[@title='Generation disabled'] ++ //div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] + not generating + + + assertElementNotPresent +- //div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] ++ //div[@id='comicpress-details']//li[5]//em[@title='Generation disabled'] + + + +@@ -569,12 +563,12 @@ + + + assertElementNotPresent +- //div[@id='comicpress-details']//li[3]//em[@title='Generation disabled'] ++ //div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] + + + + assertText +- //div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] ++ //div[@id='comicpress-details']//li[5]//em[@title='Generation disabled'] + not generating + + +@@ -634,12 +628,12 @@ + + + assertText +- //div[@id='comicpress-details']//li[3]//em[@title='Generation disabled'] ++ //div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] + not generating + + + assertText +- //div[@id='comicpress-details']//li[4]//em[@title='Generation disabled'] ++ //div[@id='comicpress-details']//li[5]//em[@title='Generation disabled'] + not generating + + +@@ -699,269 +693,12 @@ + + + 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 +- //li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[1]/a +- +- +- +- 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 +- //li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[1]/a +- +- +- +- 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. ++ assertElementNotPresent ++ //div[@id='comicpress-details']//li[5]//em[@title='Generation disabled'] + + + +--- TestDashboardWidgets.html 2009-01-23 07:06:47.000000000 -0500 ++++ wpmu/TestDashboardWidgets.html 2009-01-29 11:49:41.000000000 -0500 +@@ -13,7 +13,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/ ++ /comicpress_manager_mu/wordpress-mu/wp-admin/ + + + +--- TestFirstRun.html 2009-01-25 20:46:00.000000000 -0500 ++++ wpmu/TestFirstRun.html 2009-01-29 09:21:10.000000000 -0500 +@@ -83,7 +83,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/options.php ++ /comicpress_manager_mu/wpmu/comic/wp-admin/options.php + + + +@@ -148,7 +148,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/options.php ++ /comicpress_manager_mu/wpmu/comic/wp-admin/options.php + + + +@@ -203,7 +203,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/options.php ++ /comicpress_manager_mu/wpmu/comic/wp-admin/options.php + + + +@@ -268,7 +268,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/options.php ++ /comicpress_manager_mu/wpmu/comic/wp-admin/options.php + + + +--- TestImportComic.html 2009-02-06 19:12:49.000000000 -0500 ++++ wpmu/TestImportComic.html 2009-01-29 11:50:35.000000000 -0500 +@@ -13,7 +13,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/ ++ /comicpress_manager_mu/wordpress-mu/wp-admin/ + + + +@@ -152,11 +152,6 @@ + + + +- pause +- 2000 +- +- +- + waitForText + //span[@id='missing-posts-display'] + 1 +--- TestQuomicPress.html 2009-02-02 07:19:59.000000000 -0500 ++++ wpmu/TestQuomicPress.html 2009-01-29 11:50:00.000000000 -0500 +@@ -13,7 +13,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/ ++ /comicpress_manager_mu/wordpress-mu/wp-admin/ + + + +@@ -228,7 +228,7 @@ + + + assertChecked +- //div[@id='comicdiv']//input[@name='post_category[]'][@value='${category_id}'] ++ //input[@name='in-comic-category[]'][@value='${category_id}'] + + + +@@ -298,7 +298,7 @@ + + + assertChecked +- //div[@id='comicdiv']//input[@name='post_category[]'][@value='${category_id}'] ++ //input[@name='in-comic-category[]'][@value='${category_id}'] + + + +--- TestReplaceComicFile.html 2009-02-06 19:12:49.000000000 -0500 ++++ wpmu/TestReplaceComicFile.html 2009-01-29 13:14:29.000000000 -0500 +@@ -13,7 +13,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/ ++ /comicpress_manager_mu/wordpress-mu/wp-admin/ + + + +@@ -53,7 +53,7 @@ + + + clickAndWait +- //input[@id='save-post'] ++ //input[@id='upload-new-file-button'] + + + +@@ -87,11 +87,6 @@ + + + +- assertNotVisible +- //tr[@id='rebuild-thumbnails'] +- +- +- + type + upload-0 + /home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg +--- TestSidebars.html 2009-01-25 20:38:32.000000000 -0500 ++++ wpmu/TestSidebars.html 2009-01-29 13:25:10.000000000 -0500 +@@ -13,7 +13,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/ ++ /comicpress_manager_mu/wordpress-mu/wp-admin/ + + + +@@ -47,18 +47,13 @@ + + + +- assertElementPresent ++ assertElementNotPresent + //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'] ++ link=ComicPress Config + + + +@@ -72,43 +67,28 @@ + blogcat + + +- storeSelectedLabel +- select-comic_folder +- comic_folder +- +- +- storeSelectedLabel +- select-rss_comic_folder +- rss_comic_folder +- +- +- storeSelectedLabel +- select-archive_comic_folder +- archive_comic_folder +- +- + assertText +- //div[@id='comicpress-details']//li[5]/a ++ //div[@id='comicpress-details']//li[6]/a + ${comiccat} + + + assertText +- //div[@id='comicpress-details']//li[6]/a ++ //div[@id='comicpress-details']//li[7]/a + ${blogcat} + + + assertTextPresent +- Comics folder: ${comic_folder} ++ Comics folder: comics + + + + assertTextPresent +- Archive folder: ${archive_comic_folder} ++ Archive folder: comics-archive + + + + assertTextPresent +- RSS feed folder: ${rss_comic_folder} ++ RSS feed folder: comics-rss + + + +@@ -117,17 +97,12 @@ + + + +- click +- //a[text()='Show debug info'] +- +- +- + select + cpm-sidebar-type + label=Latest Comic Posts + + +- assertVisible ++ assertElementNotPresent + //span[@id='debug-info'] + + +--- TestStorylineStructure.html 2009-02-14 08:28:18.000000000 -0500 ++++ wpmu/TestStorylineStructure.html 2009-01-29 11:49:37.000000000 -0500 +@@ -13,7 +13,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/ ++ /comicpress_manager_mu/wordpress-mu/wp-admin/ + + + +@@ -161,509 +161,6 @@ + //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 +- +- +- +- assertNotText +- //div[@id='comicdiv']//tr[2]/th +- Storyline +- +- +- clickAndWait +- link=Storyline Structure +- +- +- +- check +- enable-storyline-support +- +- +- +- clickAndWait +- //input[@value='Save Structure and Modify Categories'] +- +- +- +- clickAndWait +- link=Add New +- +- +- +- assertText +- //div[@id='comicdiv']//tr[2]/th +- 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='comicdiv'] +- *Selenium Test* +- +- +- assertText +- //div[@id='categories-all'] +- *Selenium Test* +- +- +- clickAndWait +- //li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[1]/a +- +- +- +- assertText +- //div[@id='multiple-new-post-holder'] +- *Selenium Test* +- +- +- clickAndWait +- //a[contains(@href, 'admin.php?page=comicpress-manager/comicpress_manager_admin.php-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='comicdiv'] +- *Selenium Test* +- +- +- assertText +- //div[@id='categories-all'] +- *Selenium Test* +- +- +- clickAndWait +- //li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[1]/a +- +- +- +- assertText +- //div[@id='multiple-new-post-holder'] +- *Selenium Test* +- +- +- clickAndWait +- //a[contains(@href, 'admin.php?page=comicpress-manager/comicpress_manager_admin.php-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='comicdiv'] +- *Selenium Test* +- +- +- assertText +- //div[@id='categories-all'] +- *Selenium Test* +- +- +- clickAndWait +- //li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[1]/a +- +- +- +- assertText +- //div[@id='multiple-new-post-holder'] +- *Selenium Test* +- +- +- clickAndWait +- //a[contains(@href, 'admin.php?page=comicpress-manager/comicpress_manager_admin.php-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='comicdiv'] +- *Selenium Test* +- +- +- assertText +- //div[@id='categories-all'] +- *Selenium Test* +- +- +- assertText +- //div[@id='comicdiv'] +- *Selenium Two* +- +- +- assertText +- //div[@id='categories-all'] +- *Selenium Two* +- +- +- clickAndWait +- //li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[1]/a +- +- +- +- assertText +- //div[@id='multiple-new-post-holder'] +- *Selenium Test* +- +- +- assertText +- //div[@id='multiple-new-post-holder'] +- *Selenium Two* +- +- +- clickAndWait +- //a[contains(@href, 'admin.php?page=comicpress-manager/comicpress_manager_admin.php-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. +- +- + + + +--- TestUploadComicFile.html 2009-02-20 08:45:50.000000000 -0500 ++++ wpmu/TestUploadComicFile.html 2009-01-29 12:16:27.000000000 -0500 +@@ -13,7 +13,7 @@ + + + open +- /comicpress_manager_2.7/wordpress/wp-admin/ ++ /comicpress_manager_mu/wordpress-mu/wp-admin/ + + + +@@ -58,37 +58,12 @@ + + + clickAndWait +- link=ComicPress Config +- +- +- +- select +- comic +- label=A Moment of Clarity (default) +- +- +- clickAndWait +- //input[@value='Submit'] ++ //li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[1]/a + + + + 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 +- //li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[1]/a ++ (generating) + + + +@@ -187,11 +162,6 @@ + + + +- assertXpathCount +- //table[@id='status-table']/tbody/tr[@class='data-row'] +- 2 +- +- + assertTextPresent + Sample Comic + +@@ -282,11 +252,6 @@ + + + +- assertTextNotPresent +- PHP upload error code +- +- +- + assertTextPresent + You didn't upload any files! + +@@ -377,16 +342,6 @@ + + + +- assertTextPresent +- Displaying 1-1 of 1 +- +- +- +- assertXpathCount +- //table[@id='status-table']/tbody/tr[@class='data-row'] +- 2 +- +- + click + toggle-all + +@@ -472,16 +427,6 @@ + + + +- assertTextPresent +- Displaying 1-1 of 1 +- +- +- +- assertXpathCount +- //table[@id='status-table']/tbody/tr[@class='data-row'] +- 2 +- +- + click + toggle-all + +@@ -584,16 +529,6 @@ + + + +- assertTextPresent +- Displaying 1-1 of 1 +- +- +- +- assertXpathCount +- //table[@id='status-table']/tbody/tr[@class='data-row'] +- 1 +- +- + click + toggle-all + +@@ -680,16 +615,6 @@ + + + +- assertTextPresent +- Displaying 1-1 of 1 +- +- +- +- assertXpathCount +- //table[@id='status-table']/tbody/tr[@class='data-row'] +- 2 +- +- + click + toggle-all + +@@ -755,16 +680,6 @@ + + + +- assertTextPresent +- Displaying 1-1 of 1 +- +- +- +- assertXpathCount +- //table[@id='status-table']/tbody/tr[@class='data-row'] +- 2 +- +- + click + toggle-all + +@@ -831,16 +746,6 @@ + + + +- assertTextPresent +- Displaying 1-1 of 1 +- +- +- +- assertXpathCount +- //table[@id='status-table']/tbody/tr[@class='data-row'] +- 2 +- +- + click + toggle-all + +@@ -906,87 +811,6 @@ + + + +- 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 +- //li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[1]/a +- +- +- +- 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 + diff --git a/test/selenium/comics.zip b/test/selenium/comics.zip new file mode 100644 index 0000000..30ce3cc Binary files /dev/null and b/test/selenium/comics.zip differ diff --git a/test/selenium/comics/1990-01-01-sample-comic.jpeg b/test/selenium/comics/1990-01-01-sample-comic.jpeg new file mode 100644 index 0000000..c7f93e8 Binary files /dev/null and b/test/selenium/comics/1990-01-01-sample-comic.jpeg differ diff --git a/test/selenium/convert_cmyk_to_rgb.php b/test/selenium/convert_cmyk_to_rgb.php new file mode 100644 index 0000000..1756961 --- /dev/null +++ b/test/selenium/convert_cmyk_to_rgb.php @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/test/selenium/good-large-import.zip b/test/selenium/good-large-import.zip new file mode 100644 index 0000000..7417651 Binary files /dev/null and b/test/selenium/good-large-import.zip differ diff --git a/test/selenium/import/1990-01-01-sample-import-comic.png b/test/selenium/import/1990-01-01-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-01-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-02-sample-import-comic.png b/test/selenium/import/1990-01-02-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-02-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-03-sample-import-comic.png b/test/selenium/import/1990-01-03-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-03-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-04-sample-import-comic.png b/test/selenium/import/1990-01-04-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-04-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-05-sample-import-comic.png b/test/selenium/import/1990-01-05-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-05-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-06-sample-import-comic.png b/test/selenium/import/1990-01-06-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-06-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-07-sample-import-comic.png b/test/selenium/import/1990-01-07-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-07-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-08-sample-import-comic.png b/test/selenium/import/1990-01-08-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-08-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-09-sample-import-comic.png b/test/selenium/import/1990-01-09-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-09-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-10-sample-import-comic.png b/test/selenium/import/1990-01-10-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-10-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-11-sample-import-comic.png b/test/selenium/import/1990-01-11-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-11-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-12-sample-import-comic.png b/test/selenium/import/1990-01-12-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-12-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-13-sample-import-comic.png b/test/selenium/import/1990-01-13-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-13-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-14-sample-import-comic.png b/test/selenium/import/1990-01-14-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-14-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-15-sample-import-comic.png b/test/selenium/import/1990-01-15-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-15-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-16-sample-import-comic.png b/test/selenium/import/1990-01-16-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-16-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-17-sample-import-comic.png b/test/selenium/import/1990-01-17-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-17-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-18-sample-import-comic.png b/test/selenium/import/1990-01-18-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-18-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-19-sample-import-comic.png b/test/selenium/import/1990-01-19-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-19-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-20-sample-import-comic.png b/test/selenium/import/1990-01-20-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-20-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-21-sample-import-comic.png b/test/selenium/import/1990-01-21-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-21-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-22-sample-import-comic.png b/test/selenium/import/1990-01-22-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-22-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-23-sample-import-comic.png b/test/selenium/import/1990-01-23-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-23-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-24-sample-import-comic.png b/test/selenium/import/1990-01-24-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-24-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-25-sample-import-comic.png b/test/selenium/import/1990-01-25-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-25-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-26-sample-import-comic.png b/test/selenium/import/1990-01-26-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-26-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-27-sample-import-comic.png b/test/selenium/import/1990-01-27-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-27-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-28-sample-import-comic.png b/test/selenium/import/1990-01-28-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-28-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-29-sample-import-comic.png b/test/selenium/import/1990-01-29-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-29-sample-import-comic.png differ diff --git a/test/selenium/import/1990-01-30-sample-import-comic.png b/test/selenium/import/1990-01-30-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/import/1990-01-30-sample-import-comic.png differ diff --git a/test/selenium/too-large-import.zip b/test/selenium/too-large-import.zip new file mode 100644 index 0000000..731e8ed Binary files /dev/null and b/test/selenium/too-large-import.zip differ diff --git a/test/selenium/wpmu/1990-01-01-UPPERCASE-COMIC.JPG b/test/selenium/wpmu/1990-01-01-UPPERCASE-COMIC.JPG new file mode 100644 index 0000000..c7f93e8 Binary files /dev/null and b/test/selenium/wpmu/1990-01-01-UPPERCASE-COMIC.JPG differ diff --git a/test/selenium/wpmu/1990-01-01-gif_thumbnail.gif b/test/selenium/wpmu/1990-01-01-gif_thumbnail.gif new file mode 100644 index 0000000..b3f2c2c Binary files /dev/null and b/test/selenium/wpmu/1990-01-01-gif_thumbnail.gif differ diff --git a/test/selenium/wpmu/1990-01-01-sample-comic-cmyk.jpeg b/test/selenium/wpmu/1990-01-01-sample-comic-cmyk.jpeg new file mode 100644 index 0000000..0ad2e20 Binary files /dev/null and b/test/selenium/wpmu/1990-01-01-sample-comic-cmyk.jpeg differ diff --git a/test/selenium/wpmu/1990-01-01-sample-comic-no-extension-jpeg b/test/selenium/wpmu/1990-01-01-sample-comic-no-extension-jpeg new file mode 100644 index 0000000..c7f93e8 Binary files /dev/null and b/test/selenium/wpmu/1990-01-01-sample-comic-no-extension-jpeg differ diff --git a/test/selenium/wpmu/1990-01-01-sample-comic-no-extension-jpeg.zip b/test/selenium/wpmu/1990-01-01-sample-comic-no-extension-jpeg.zip new file mode 100644 index 0000000..0af6e80 Binary files /dev/null and b/test/selenium/wpmu/1990-01-01-sample-comic-no-extension-jpeg.zip differ diff --git a/test/selenium/wpmu/1990-01-01-sample-comic-not-jpeg.jpeg b/test/selenium/wpmu/1990-01-01-sample-comic-not-jpeg.jpeg new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/test/selenium/wpmu/1990-01-01-sample-comic-not-jpeg.jpeg @@ -0,0 +1 @@ + diff --git a/test/selenium/wpmu/1990-01-01-sample-comic.bad-extension b/test/selenium/wpmu/1990-01-01-sample-comic.bad-extension new file mode 100644 index 0000000..c7f93e8 Binary files /dev/null and b/test/selenium/wpmu/1990-01-01-sample-comic.bad-extension differ diff --git a/test/selenium/wpmu/1990-01-01-sample-comic.bad-extension.zip b/test/selenium/wpmu/1990-01-01-sample-comic.bad-extension.zip new file mode 100644 index 0000000..c14fbc9 Binary files /dev/null and b/test/selenium/wpmu/1990-01-01-sample-comic.bad-extension.zip differ diff --git a/test/selenium/wpmu/1990-01-01-sample-comic.jpeg b/test/selenium/wpmu/1990-01-01-sample-comic.jpeg new file mode 100644 index 0000000..c7f93e8 Binary files /dev/null and b/test/selenium/wpmu/1990-01-01-sample-comic.jpeg differ diff --git a/test/selenium/wpmu/1990-01-01-sample-comic.txt b/test/selenium/wpmu/1990-01-01-sample-comic.txt new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/test/selenium/wpmu/1990-01-01-sample-comic.txt @@ -0,0 +1 @@ + diff --git a/test/selenium/wpmu/1990-01-01-sample-comic.txt.zip b/test/selenium/wpmu/1990-01-01-sample-comic.txt.zip new file mode 100644 index 0000000..235a69f Binary files /dev/null and b/test/selenium/wpmu/1990-01-01-sample-comic.txt.zip differ diff --git a/test/selenium/wpmu/1990-01-01-sample-comic.zip b/test/selenium/wpmu/1990-01-01-sample-comic.zip new file mode 100644 index 0000000..30762d4 Binary files /dev/null and b/test/selenium/wpmu/1990-01-01-sample-comic.zip differ diff --git a/test/selenium/wpmu/1990-01-01-too-large-file.jpeg b/test/selenium/wpmu/1990-01-01-too-large-file.jpeg new file mode 100644 index 0000000..6c5d403 Binary files /dev/null and b/test/selenium/wpmu/1990-01-01-too-large-file.jpeg differ diff --git a/test/selenium/wpmu/1990-01-01-wider-than-longer.png b/test/selenium/wpmu/1990-01-01-wider-than-longer.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/1990-01-01-wider-than-longer.png differ diff --git a/test/selenium/wpmu/DoTeardown.html b/test/selenium/wpmu/DoTeardown.html new file mode 100644 index 0000000..8450e00 --- /dev/null +++ b/test/selenium/wpmu/DoTeardown.html @@ -0,0 +1,132 @@ + + + + + + +DoTeardown + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DoTeardown
open/comicpress_manager_mu/wordpress-mu/wp-admin/
clickAndWaitlink=Bulk Edit
labelkeep_tearing_down
storeText//select[@id='dates']/option[last()]last_date
getEval"${last_date}"
gotoIf"${last_date}" != "January 1990"skip_teardown
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
gotokeep_tearing_down
labelskip_teardown
clickAndWaitlink=Manager Config
checkcpm-edit-post-integrate
checkcpm-archive-generate-thumbnails
checkcpm-rss-generate-thumbnails
typecpm-default-override-title
typecpm-default-post-tags
uncheckcpm-default-comic-category-is-last-storyline
clickAndWait//input[@value='Change Configuration']
+ + diff --git a/test/selenium/wpmu/TestChangeDates.html b/test/selenium/wpmu/TestChangeDates.html new file mode 100644 index 0000000..bf149bd --- /dev/null +++ b/test/selenium/wpmu/TestChangeDates.html @@ -0,0 +1,167 @@ + + + + + + +TestChangeDates + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestChangeDates
open/comicpress_manager_mu/wordpress-mu/wp-admin/
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
clickAndWait//input[@id='top-submit']
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
clickAndWaitlink=Change Dates
typestart-date1989-12-30
typeend-date1990-01-10
clickAndWait//input[@value='Filter']
store1990-01-02test_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}
clickAndWaitsubmit
assertTextNotPresentWarning: rename
assertTextPresentto ${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}
clickAndWaitsubmit
assertTextPresentto ${original_date}
assertTextNotPresentWarning: rename
assertElementPresent//div[@class='activity-box']/form[2]//tr[1]/td[contains(text(), '${original_date}')]
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
+ + diff --git a/test/selenium/wpmu/TestComicPressManagerConfig.html b/test/selenium/wpmu/TestComicPressManagerConfig.html new file mode 100644 index 0000000..651e643 --- /dev/null +++ b/test/selenium/wpmu/TestComicPressManagerConfig.html @@ -0,0 +1,707 @@ + + + + + + +TestComicPressManagerConfig + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestComicPressManagerConfig
open/comicpress_manager_mu/wordpress-mu/wp-admin/
clickAndWaitlink=Manager Config
storeValuecpm-default-post-timeoriginal_time
storeValuecpm-default-override-titleoriginal_title
storeValuecpm-default-post-tagsoriginal_tags
storeSelenium Titletitle
storeSelenium Tagstags
store7:38amtime
typecpm-default-post-time${time}
typecpm-default-override-title${title}
typecpm-default-post-tags${tags}
checkcpm-archive-generate-thumbnails
checkcpm-rss-generate-thumbnails
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
assertValuecpm-default-post-time${time}
assertValuecpm-default-override-title${title}
assertValuecpm-default-post-tags${tags}
typecpm-default-post-time${original_time}
typecpm-default-override-title${original_title}
typecpm-default-post-tags${original_tags}
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
typecpm-default-post-timemeow123
typecpm-default-override-title${title}
clickAndWait//input[@value='Change Configuration']
assertNotValuecpm-default-post-timemeow123
assertNotValuecpm-default-post-time${title}
assertTextPresentYou entered invalid data into your configuration.
uncheckcpm-default-comic-category-is-last-storyline
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress 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
clickAndWaitlink=Manager Config
checkcpm-default-comic-category-is-last-storyline
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress 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
clickAndWaitlink=Manager Config
uncheckcpm-default-comic-category-is-last-storyline
check//input[@name='cpm-default-additional-categories[]'][1]
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertChecked//input[@name='additional-categories[]'][1]
clickAndWaitlink=Manager Config
uncheck//input[@name='cpm-default-additional-categories[]'][1]
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertNotChecked//input[@name='additional-categories[]'][1]
clickAndWaitlink=Manager Config
selectcpm-sidebar-typelabel=ComicPress Status and Help
uncheckcpm-edit-post-integrate
clickAndWait//input[@value='Change Configuration']
assertTextPresentComicPress Manager configuration updated.
clickAndWait//a[@href='post-new.php']
assertTextNotPresentComicPress Manager Edit Post file management is enabled.
clickAndWaitlink=Manager Config
checkcpm-edit-post-integrate
clickAndWait//input[@value='Change Configuration']
clickAndWait//a[@href='post-new.php']
assertTextPresentComicPress Manager Edit Post file management is enabled.
clickAndWaitlink=Manager Config
checkcpm-perform-gd-check
clickAndWait//input[@value='Change Configuration']
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg
clickAndWait//input[@id='top-submit']
assertTextPresentAccording to GD, the following files were invalid image files
clickAndWaitlink=Manager Config
uncheckcpm-perform-gd-check
clickAndWait//input[@value='Change Configuration']
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg
clickAndWait//input[@id='top-submit']
assertTextPresentThe following files were uploaded
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresent1990-01-01-sample-comic-not-jpeg.jpeg
clickAndWaitlink=Manager Config
checkcpm-perform-gd-check
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Manager Config
uncheckcpm-archive-generate-thumbnails
checkcpm-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']
clickAndWaitlink=Dashboard
assertTextPresentrss thumbnails that are
assertTextNotPresentarchive thumbnails that are
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextPresentIf enabled, you'll be writing thumbnails to: rss
clickAndWaitlink=Add New
assertTextPresent(thumbnails will be generated)
clickAndWaitlink=Manager Config
checkcpm-archive-generate-thumbnails
uncheckcpm-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
clickAndWaitlink=Dashboard
assertTextNotPresentrss thumbnails that are
assertTextPresentarchive thumbnails that are
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextPresentIf enabled, you'll be writing thumbnails to: archive
clickAndWaitlink=Add New
assertTextPresent(thumbnails will be generated)
clickAndWaitlink=Manager Config
uncheckcpm-archive-generate-thumbnails
uncheckcpm-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
clickAndWaitlink=Dashboard
assertTextNotPresentrss thumbnails that are
assertTextNotPresentarchive thumbnails that are
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextNotPresentGenerate thumbnails:
clickAndWaitlink=Add New
assertTextNotPresent(thumbnails will be generated)
clickAndWaitlink=Manager Config
checkcpm-archive-generate-thumbnails
checkcpm-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']
+ + diff --git a/test/selenium/wpmu/TestDashboardWidgets.html b/test/selenium/wpmu/TestDashboardWidgets.html new file mode 100644 index 0000000..0769a07 --- /dev/null +++ b/test/selenium/wpmu/TestDashboardWidgets.html @@ -0,0 +1,162 @@ + + + + + + +TestDashboardWidgets + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestDashboardWidgets
open/comicpress_manager_mu/wordpress-mu/wp-admin/
clickAndWait//li[@id='menu-dashboard']/a[1]
clickAndWaitlink=Manager Config
checkcpm-enable-dashboard-rss-feed
clickAndWait//input[@value='Change Configuration']
clickAndWait//li[@id='menu-dashboard']/a[1]
assertElementPresent//div[@id='dashboard_cpm']
clickAndWaitlink=Manager Config
uncheckcpm-enable-dashboard-rss-feed
clickAndWait//input[@value='Change Configuration']
clickAndWait//li[@id='menu-dashboard']/a[1]
assertElementNotPresent//div[@id='dashboard_cpm']
clickAndWaitlink=Manager Config
checkcpm-enable-quomicpress
clickAndWait//input[@value='Change Configuration']
clickAndWait//li[@id='menu-dashboard']/a[1]
assertElementPresent//div[@id='dashboard_quomicpress']
clickAndWaitlink=Manager Config
uncheckcpm-enable-quomicpress
clickAndWait//input[@value='Change Configuration']
clickAndWait//li[@id='menu-dashboard']/a[1]
assertElementNotPresent//div[@id='dashboard_quomicpress']
clickAndWaitlink=Manager Config
checkcpm-enable-quomicpress
checkcpm-enable-dashboard-rss-feed
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Widgets
assertElementNotPresent//li[contains(@id, 'dashboard_cpm')]
assertElementNotPresent//li[contains(@id, 'dashboard_quomicpress')]
+ + diff --git a/test/selenium/wpmu/TestFirstRun.html b/test/selenium/wpmu/TestFirstRun.html new file mode 100644 index 0000000..0396405 --- /dev/null +++ b/test/selenium/wpmu/TestFirstRun.html @@ -0,0 +1,347 @@ + + + + + + +TestFirstRun + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestFirstRun
clickAndWaitlink=ComicPress Config
clickfolder-e-comic_folder
typeenter-comic_folderbad1
clickfolder-e-rss_comic_folder
typeenter-rss_comic_folderbad2
clickfolder-e-archive_comic_folder
typeenter-archive_comic_folderbad3
clickAndWait//input[@value='Update Config']
assertTextPresentCreate your comics, archive, or RSS folders first
clickfolder-s-comic_folder
clickfolder-s-rss_comic_folder
clickfolder-s-archive_comic_folder
clickAndWait//input[@value='Update Config']
assertTextNotPresentCreate 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
typecomicpress-manager-cpm-did-first-run0
clickAndWaitUpdate
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextNotPresentComicPress Manager First Run
clickAndWaitlink=ComicPress Config
clickfolder-e-comic_folder
typeenter-comic_folderbad1
clickfolder-e-rss_comic_folder
typeenter-rss_comic_folderbad2
clickfolder-e-archive_comic_folder
typeenter-archive_comic_folderbad3
clickAndWait//input[@value='Update Config']
open/comicpress_manager_mu/wpmu/comic/wp-admin/options.php
typecomicpress-manager-cpm-did-first-run0
clickAndWaitUpdate
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextPresentComicPress Manager First Run
clickAndWait//input[@value="No, I'll make them myself"]
assertTextPresentThe comic folder bad1 does not exist
clickfolder-s-comic_folder
clickfolder-s-rss_comic_folder
clickfolder-s-archive_comic_folder
clickAndWait//input[@value='Update Config']
open/comicpress_manager_mu/wpmu/comic/wp-admin/options.php
typecomicpress-manager-cpm-did-first-run0
clickAndWaitUpdate
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextNotPresentComicPress Manager First Run
clickAndWaitlink=ComicPress Config
clickfolder-e-comic_folder
typeenter-comic_folderbad1
clickfolder-e-rss_comic_folder
typeenter-rss_comic_folderbad2
clickfolder-e-archive_comic_folder
typeenter-archive_comic_folderbad3
clickAndWait//input[@value='Update Config']
open/comicpress_manager_mu/wpmu/comic/wp-admin/options.php
typecomicpress-manager-cpm-did-first-run0
clickAndWaitUpdate
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextPresentComicPress Manager First Run
clickAndWaitlink=ComicPress Config
assertTextNotPresentComicPress Manager First Run
assertTextPresentThe comic folder bad1 does not exist
clickfolder-s-comic_folder
clickfolder-s-rss_comic_folder
clickfolder-s-archive_comic_folder
selectselect-comic_foldercomics
selectselect-rss_comic_foldercomics-rss
selectselect-archive_comic_foldercomics-archive
clickAndWait//input[@value='Update Config']
+ + diff --git a/test/selenium/wpmu/TestImportComic.html b/test/selenium/wpmu/TestImportComic.html new file mode 100644 index 0000000..83424f6 --- /dev/null +++ b/test/selenium/wpmu/TestImportComic.html @@ -0,0 +1,567 @@ + + + + + + +TestImportComic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestImportComic
open/comicpress_manager_mu/wordpress-mu/wp-admin/
storeSelenium Hovertexthovertext
storeSelenium Transcripttranscript
clickAndWaitlink=ComicPress Config
clickfolder-s-comic_folder
clickfolder-s-rss_comic_folder
clickfolder-s-archive_comic_folder
selectselect-comic_foldercomics
selectselect-rss_comic_foldercomics-rss
selectselect-archive_comic_foldercomics-archive
clickAndWait//input[@value='Update Config']
clickAndWaitlink=Manager Config
checkcpm-edit-post-integrate
checkcpm-archive-generate-thumbnails
checkcpm-rss-generate-thumbnails
typecpm-default-override-title
typecpm-default-post-tags
uncheckcpm-default-comic-category-is-last-storyline
clickAndWait//input[@value='Change Configuration']
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
uncheckmultiple-new-post-checkbox
clickAndWaitsubmit
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.jpeg
assertTextPresentNo new posts created.
clickAndWait//li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[2]/a
clickcount-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
typetime12:00am
typehovertext-to-use${hovertext}
typetranscript-to-use${transcript}
clickAndWaitsubmit
assertTextPresentNew thumbnails were not needed for the following files: 1990-01-01-sample-comic.jpeg
assertTextPresentNew posts created. View them from the links below:
assertTextPresentSample Comic (1990-01-01 00:00:00)
clickAndWait//div[@id='cpm-messages']//a[text()='Edit post']
assertTextPresentComicPress 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
assertValuecomicpress-img-title${hovertext}
assertValuecomicpress-transcript${transcript}
assertChecked//div[@id='comicdiv']//table[@class='form-table']//tr[2]//div[1]//input
clicklink=Delete
assertConfirmationYou 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
clickAndWaitlink=Bulk Edit page
assertText//div[@class='activity-box']/h2Bulk Edit
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/good-large-import.zip
uncheckmultiple-new-post-checkbox
typetime12:00am
clicksubmit
waitForPageToLoad200000
clickAndWait//li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[2]/a
clickcount-missing-posts-clicker
waitForText//span[@id='missing-posts-display']30
assertText//span[@id='missing-posts-display']30
clickAndWaitsubmit
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.
getEvalstoredVars['index'] = storedVars['import_count']
whilestoredVars['index'] > 0
assertText//div[@id='cpm-messages']/ul/li[last()]/ul/li[${index}]/strongSample Import Comic
assertTextPresentregexp:1990-01-[0-9][0-9]
getEvalstoredVars['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.
getEvalstoredVars['index'] = storedVars['import_count']
whilestoredVars['index'] > 0
assertTextPresentSample Import Comic
assertTextPresentregexp:1990-01-[0-9][0-9] 00:00:00
getEvalstoredVars['index']--
endWhile
clickAndWait//input[@value='Continue Creating Posts']
assertTextPresentNo new posts needed to be created.
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresentNo items to display
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
clickmultiple-new-post-checkbox
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-UPPERCASE-COMIC.JPG
clickAndWaitsubmit
clickAndWait//li[@id='toplevel_page_comicpress-manager-comicpress_manager_admin']/div[2]/ul/li[2]/a
clickcount-missing-posts-clicker
waitForText//span[@id='missing-posts-display']1
assertText//span[@id='missing-posts-display']1
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
+ + diff --git a/test/selenium/wpmu/TestMUSpecificChanges.html b/test/selenium/wpmu/TestMUSpecificChanges.html new file mode 100644 index 0000000..b77dcbd --- /dev/null +++ b/test/selenium/wpmu/TestMUSpecificChanges.html @@ -0,0 +1,52 @@ + + + + + + +TestMUSpecificChanges + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestMUSpecificChanges
clickAndWaitlink=ComicPress Config
open/comicpress_manager_mu/wordpress-mu/wp-admin/
assertTextNotPresentYou won't be able to automatically update your configuration.
assertTextNotPresentComic Folder:
assertTextNotPresentRSS Comic Folder:
assertTextNotPresentArchive Comic Folder:
assertTextPresentArchive Comic Width:
+ + diff --git a/test/selenium/wpmu/TestQuomicPress.html b/test/selenium/wpmu/TestQuomicPress.html new file mode 100644 index 0000000..80912d9 --- /dev/null +++ b/test/selenium/wpmu/TestQuomicPress.html @@ -0,0 +1,362 @@ + + + + + + +TestQuomicPress + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestQuomicPress
open/comicpress_manager_mu/wordpress-mu/wp-admin/
clickAndWaitlink=Manager Config
typecpm-default-post-time12:00am
checkcpm-edit-post-integrate
checkcpm-enable-quomicpress
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Dashboard
typeupload/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
click//input[@value='Upload Comic File and Edit Post']
waitForPageToLoad50000
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')]
clicklink=Delete
assertConfirmationYou are about to delete this draft 'Sample Comic'
  'Cancel' to stop, 'OK' to delete.
waitForPageToLoad30000
clickAndWaitlink=Manager Config
storeValuecpm-default-post-timeoriginal_post_time
typecpm-default-post-time7:35am
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Dashboard
typeupload/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
clickAndWait//input[@value='Upload Comic File and Edit Post']
verifyText//span[@id='timestamp']/bJan 1, 1990 @ 7:35
clicklink=Delete
assertConfirmationYou are about to delete this draft 'Sample Comic'
  'Cancel' to stop, 'OK' to delete.
waitForPageToLoad30000
clickAndWaitlink=Manager Config
typecpm-default-post-time${original_post_time}
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Manager Config
uncheckcpm-default-comic-category-is-last-storyline
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Storyline Structure
uncheckenable-storyline-support
clickenable-storyline-support
storeValue//div[@id='storyline-holder']/div[1]/inputchosen_storyline
clickAndWaitlink=Dashboard
assertElementPresent//strong[text()='${chosen_storyline}']
storeValue//input[@name='in-comic-category[]']category_id
typeupload/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}']
clicklink=Delete
assertConfirmationYou are about to delete this draft 'Sample Comic'
  'Cancel' to stop, 'OK' to delete.
waitForPageToLoad30000
clickAndWaitlink=Manager Config
checkcpm-default-comic-category-is-last-storyline
clickAndWait//input[@value='Change Configuration']
clickAndWaitlink=Storyline Structure
storeValue//div[@id='storyline-holder']/div[last()]/inputchosen_storyline
clickAndWaitlink=Dashboard
assertElementPresent//strong[text()='${chosen_storyline}']
storeValue//input[@name='in-comic-category[]']category_id
typeupload/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}']
clicklink=Delete
assertConfirmationYou are about to delete this draft 'Sample Comic'
  'Cancel' to stop, 'OK' to delete.
waitForPageToLoad30000
clickAndWaitlink=Dashboard
typeupload/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
typeoverride-date1990-01-02
clickAndWait//input[@value='Upload Comic File and Edit Post']
assertElementPresent//span[@id='timestamp']/b[contains(text(), 'Jan 2, 1990')]
clicklink=Delete
assertConfirmationYou are about to delete this draft 'Sample Comic'
  'Cancel' to stop, 'OK' to delete.
waitForPageToLoad30000
+ + diff --git a/test/selenium/wpmu/TestReplaceComicFile.html b/test/selenium/wpmu/TestReplaceComicFile.html new file mode 100644 index 0000000..e3bd7de --- /dev/null +++ b/test/selenium/wpmu/TestReplaceComicFile.html @@ -0,0 +1,267 @@ + + + + + + +TestReplaceComicFile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestReplaceComicFile
open/comicpress_manager_mu/wordpress-mu/wp-admin/
clickAndWaitlink=Dashboard
typeupload/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
click//input[@value='Upload Comic File and Edit Post']
waitForPageToLoad50000
storeElementWidth//img[@id='comic-icon']width
assertElementPresent//div[@id='comicdiv']//strong/a[contains(@href, 'sample-comic.jpeg')]
typecomicpress-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')]
clicklink=Delete
assertConfirmationYou are about to delete this draft 'Sample Comic'
  'Cancel' to stop, 'OK' to delete.
waitForPageToLoad30000
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
clickmultiple-new-post-checkbox
clickAndWaitsubmit
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.jpeg
assertTextPresentNo new posts created.
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
storeElementWidth//td[@class='comic']//imgwidth
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-wider-than-longer.png
clickmultiple-new-post-checkbox
selectoverwrite-existing-file-choicelabel=1990-01-01-sample-comic.jpeg
click//option[@value='1990-01-01-sample-comic.jpeg']
assertVisible//tr[@id='rebuild-thumbnails']
selectupload-destinationlabel=Archive folder
click//option[@value='archive_comic']
assertNotVisible//tr[@id='rebuild-thumbnails']
selectupload-destinationlabel=Comics folder
click//option[@value='comic']
clickAndWaitsubmit
assertTextPresentNo new posts created.
assertTextPresentUploaded file 1990-01-01-wider-than-longer.png renamed to 1990-01-01-sample-comic.png.
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.png
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.png
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
verifyNotElementWidth//td[@class='comic']//img${width}
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickAndWaitdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
+ + diff --git a/test/selenium/wpmu/TestSidebars.html b/test/selenium/wpmu/TestSidebars.html new file mode 100644 index 0000000..982f3a3 --- /dev/null +++ b/test/selenium/wpmu/TestSidebars.html @@ -0,0 +1,152 @@ + + + + + + +TestSidebars + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestSidebars
open/comicpress_manager_mu/wordpress-mu/wp-admin/
assertElementPresent//img[contains(@src, 'comicpress-icon.png')]
clickAndWaitlink=Manager Config
selectcpm-sidebar-typelabel=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']
clickAndWaitlink=ComicPress Config
storeSelectedLabelcomiccatcomiccat
storeSelectedLabelblogcatblogcat
assertText//div[@id='comicpress-details']//li[6]/a${comiccat}
assertText//div[@id='comicpress-details']//li[7]/a${blogcat}
assertTextPresentComics folder: comics
assertTextPresentArchive folder: comics-archive
assertTextPresentRSS feed folder: comics-rss
clickAndWaitlink=Manager Config
selectcpm-sidebar-typelabel=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']
selectcpm-sidebar-typelabel=No Sidebar
clickAndWait//input[@value='Change Configuration']
assertElementPresent//div[@id='cpm-activity-column'][@class='no-sidebar']
selectcpm-sidebar-typelabel=ComicPress Status and Help
clickAndWait//input[@value='Change Configuration']
+ + diff --git a/test/selenium/wpmu/TestStorylineStructure.html b/test/selenium/wpmu/TestStorylineStructure.html new file mode 100644 index 0000000..7fb9c6e --- /dev/null +++ b/test/selenium/wpmu/TestStorylineStructure.html @@ -0,0 +1,167 @@ + + + + + + +TestStorylineStructure + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestStorylineStructure
open/comicpress_manager_mu/wordpress-mu/wp-admin/
clickAndWaitlink=Storyline Structure
uncheckenable-storyline-support
clickenable-storyline-support
assertVisible//div[@id='storyline-holder']
clickenable-storyline-support
assertNotVisible//div[@id='storyline-holder']
clickAndWait//input[@value='Save Structure and Modify Categories']
assertNotVisible//div[@id='storyline-holder']
clickenable-storyline-support
clickAndWait//input[@value='Save Structure and Modify Categories']
assertVisible//div[@id='storyline-holder']
storeSelenium Test Category 123catname1
storeSelenium Test Category 234catname2
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}']
+ + diff --git a/test/selenium/wpmu/TestSuiteComicPressManagerMU.html b/test/selenium/wpmu/TestSuiteComicPressManagerMU.html new file mode 100644 index 0000000..bd3e954 --- /dev/null +++ b/test/selenium/wpmu/TestSuiteComicPressManagerMU.html @@ -0,0 +1,23 @@ + + + + + + Test Suite + + + + + + + + + + + + + + +
Test Suite
TestMUSpecificChanges
TestDashboardWidgets
TestStorylineStructure
TestChangeDates
TestUploadComicFile
TestComicPressManagerConfig
TestSidebars
TestQuomicPress
TestReplaceComicFile
DoTeardown
+ + diff --git a/test/selenium/wpmu/TestUploadComicFile.html b/test/selenium/wpmu/TestUploadComicFile.html new file mode 100644 index 0000000..3854cd9 --- /dev/null +++ b/test/selenium/wpmu/TestUploadComicFile.html @@ -0,0 +1,841 @@ + + + + + + +TestUploadComicFile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestUploadComicFile
open/comicpress_manager_mu/wordpress-mu/wp-admin/
storeSelenium Titletitle
storeSelenium Hovertexthovertext
storeSelenium Transcripttranscript
clickAndWaitlink=Manager Config
checkcpm-perform-gd-check
checkcpm-archive-generate-thumbnails
checkcpm-rss-generate-thumbnails
clickAndWait//input[@value='Change Configuration']
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
assertTextPresent(generating)
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg
typeoverride-title-to-use${title}
typehovertext-to-use${hovertext}
typetranscript-to-use${transcript}
click//input[@id='top-submit']
waitForPageToLoad60000
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.jpeg
assertTextPresent${title}
clickAndWait//div[@id='cpm-messages']//a[text()='Edit post']
assertValuetitle${title}
assertElementPresent//span[@id='timestamp']/b[contains(text(), 'Jan 1, 1990')]
assertElementPresent//div[@id='comicdiv']//a[text()='1990-01-01-sample-comic.jpeg']
assertValuecomicpress-img-title${hovertext}
assertValuecomicpress-transcript${transcript}
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
assertTextPresentDisplaying 1-1 of 1
assertTextPresentSample 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']
clickregen-1990-01-01-sample-comic.jpeg
clickAndWaitdoaction
assertTextPresentThe following thumbnails were written: 1990-01-01-sample-comic.jpeg
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresent1990-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']
assertTextPresentYou didn't upload any files!
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.txt
clickAndWait//input[@id='top-submit']
assertTextPresentAccording to GD, the following files were invalid image files: 1990-01-01-sample-comic.txt
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-not-jpeg.jpeg
clickAndWait//input[@id='top-submit']
assertTextPresentAccording to GD, the following files were invalid image files: 1990-01-01-sample-comic-not-jpeg.jpeg
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-too-large-file.jpeg
click//input[@id='top-submit']
waitForPageToLoad300000
assertTextPresentYour uploaded files were larger than the post_max_size setting
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.zip
clickAndWait//input[@id='top-submit']
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.jpeg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresent1990-01-01-sample-comic.jpeg
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.txt.zip
clickAndWait//input[@id='top-submit']
assertTextPresentAccording to GD, the following files were invalid image files: 1990-01-01-sample-comic.txt
typeupload-0/home/john/Desktop/comicpress/selenium/comics.zip
clickAndWait//input[@id='top-submit']
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpeg
assertTextPresentThumbnails were written for the following files: 1990-01-01-sample-comic.jpeg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresent1990-01-01-sample-comic.jpeg
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/too-large-import.zip
clickmultiple-new-post-checkbox
clicksubmit
waitForPageToLoad60000
assertTextPresentThe file too-large-import.zip was too large.
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-gif_thumbnail.gif
clickmultiple-new-post-checkbox
clickAndWaitsubmit
assertTextPresentThe following files were uploaded: 1990-01-01-gif_thumbnail.gif
assertTextPresentThumbnails were written for the following files: 1990-01-01-gif_thumbnail.gif
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
assertTextPresent1990-01-01-gif_thumbnail.gif
clickAndWaitlink=Manager Config
checkcpm-perform-gd-check
clickAndWait//input[@value='Change Configuration']
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-no-extension-jpeg
clickAndWaittop-submit
assertTextPresentGD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic-no-extension-jpeg
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic-no-extension-jpeg.jpg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic-no-extension-jpeg.zip
clickAndWaitsubmit
assertTextPresentGD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic-no-extension-jpeg
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic-no-extension-jpeg.jpg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.bad-extension
clickAndWaittop-submit
assertTextPresentGD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic.bad-extension
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
clickAndWait//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')]
typeupload-0/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.bad-extension.zip
clickAndWaittop-submit
assertTextPresentGD was able to recognize the filetypes of these files and change their extensions to match: 1990-01-01-sample-comic.bad-extension
assertTextPresentThe following files were uploaded: 1990-01-01-sample-comic.jpg
clickAndWaitlink=Bulk Edit
selectdateslabel=January 1990
clickAndWaitdofilter
clicktoggle-all
selectbulk-actionlabel=Delete Selected
clickdoaction
assertConfirmationYou are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad30000
+ + diff --git a/test/selenium/wpmu/comics.zip b/test/selenium/wpmu/comics.zip new file mode 100644 index 0000000..30ce3cc Binary files /dev/null and b/test/selenium/wpmu/comics.zip differ diff --git a/test/selenium/wpmu/comics/1990-01-01-sample-comic.jpeg b/test/selenium/wpmu/comics/1990-01-01-sample-comic.jpeg new file mode 100644 index 0000000..c7f93e8 Binary files /dev/null and b/test/selenium/wpmu/comics/1990-01-01-sample-comic.jpeg differ diff --git a/test/selenium/wpmu/good-large-import.zip b/test/selenium/wpmu/good-large-import.zip new file mode 100644 index 0000000..7417651 Binary files /dev/null and b/test/selenium/wpmu/good-large-import.zip differ diff --git a/test/selenium/wpmu/import/1990-01-01-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-01-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-01-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-02-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-02-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-02-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-03-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-03-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-03-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-04-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-04-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-04-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-05-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-05-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-05-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-06-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-06-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-06-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-07-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-07-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-07-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-08-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-08-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-08-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-09-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-09-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-09-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-10-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-10-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-10-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-11-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-11-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-11-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-12-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-12-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-12-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-13-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-13-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-13-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-14-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-14-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-14-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-15-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-15-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-15-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-16-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-16-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-16-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-17-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-17-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-17-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-18-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-18-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-18-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-19-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-19-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-19-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-20-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-20-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-20-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-21-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-21-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-21-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-22-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-22-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-22-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-23-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-23-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-23-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-24-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-24-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-24-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-25-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-25-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-25-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-26-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-26-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-26-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-27-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-27-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-27-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-28-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-28-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-28-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-29-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-29-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-29-sample-import-comic.png differ diff --git a/test/selenium/wpmu/import/1990-01-30-sample-import-comic.png b/test/selenium/wpmu/import/1990-01-30-sample-import-comic.png new file mode 100644 index 0000000..c475ee6 Binary files /dev/null and b/test/selenium/wpmu/import/1990-01-30-sample-import-comic.png differ diff --git a/test/selenium/wpmu/too-large-import.zip b/test/selenium/wpmu/too-large-import.zip new file mode 100644 index 0000000..731e8ed Binary files /dev/null and b/test/selenium/wpmu/too-large-import.zip differ