DoTeardown
clickAndWait link=Bulk Edit
label keep_tearing_down
storeText //select[@id='dates']/option[last()] last_date
getEval "${last_date}"
gotoIf "${last_date}" != "January 1990" skip_teardown
select dates label=January 1990
clickAndWait dofilter
click toggle-all
select bulk-action label=Delete Selected
click doaction
assertConfirmation You are about to delete the selected posts and comic files. Are you sure?
waitForPageToLoad 30000
goto keep_tearing_down
label skip_teardown
clickAndWait link=Manager Config
check cpm-edit-post-integrate
check cpm-archive-generate-thumbnails
check cpm-rss-generate-thumbnails
type cpm-default-override-title
type cpm-default-post-tags
uncheck cpm-default-comic-category-is-last-storyline
clickAndWait //input[@value='Change Configuration']
clickAndWait link=ComicPress Config
select comic_folder label=comics
select archive_comic_folder label=comics-archive
select rss_comic_folder label=comics-rss
clickAndWait //input[@value='Update Config']
select comic label=A Moment of Clarity (default)
clickAndWait //input[@value='Submit']
assertTextNotPresent Comics folder: comics/guild-of-thieves
assertTextNotPresent Archive folder: comics-archive/guild-of-thieves
assertTextNotPresent RSS feed folder: comics-rss/guild-of-thieves
assertTextNotPresent Comics folder: comics/comics
assertTextNotPresent Archive folder: comics-archive/comics
assertTextNotPresent RSS feed folder: comics-rss/comics
assertTextPresent Comics folder: comics
assertTextPresent Archive folder: comics-archive
assertTextPresent RSS feed folder: comics