clickAndWait |
link=Storyline Structure |
|
uncheck |
enable-storyline-support |
|
click |
enable-storyline-support |
|
clickAndWait |
//input[@value='Save Structure and Modify Categories'] |
|
clickAndWait |
link=ComicPress Config |
|
assertTextPresent |
Comics folder: comics |
|
assertTextPresent |
Archive folder: comics-archive |
|
assertTextPresent |
RSS feed folder: comics |
|
assertTextNotPresent |
Comics folder: comics/guild-of-thieves |
|
assertTextNotPresent |
Archive folder: comics-archive/guild-of-thieves |
|
assertTextNotPresent |
RSS feed folder: comics-rss/guild-of-thieves |
|
assertElementPresent |
//select[@name='comic']/option[text()='Guild of Thieves'] |
|
select |
comic |
label=Guild of Thieves |
clickAndWait |
//input[@value='Submit'] |
|
assertTextPresent |
Now managing Guild of Thieves |
|
assertTextPresent |
Comics folder: comics/guild-of-thieves |
|
assertTextPresent |
Archive folder: comics-archive/guild-of-thieves |
|
assertTextPresent |
RSS feed folder: comics-rss/guild-of-thieves |
|
assertElementPresent |
//select[@name='comic']/option[text()='Guild of Thieves'] |
|
select |
comic |
label=Volume 2: Candynomics |
clickAndWait |
//input[@value='Submit'] |
|
assertTextPresent |
Now managing Volume 2: Candynomics. |
|
assertSelectedLabel |
comic |
Volume 2: Candynomics |
select |
comic |
label=Guild of Thieves |
clickAndWait |
//input[@value='Submit'] |
|
assertTextPresent |
Now managing Guild of Thieves. |
|
assertSelectedLabel |
comic |
Guild of Thieves |
clickAndWait |
//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] |
|
assertTextPresent |
Reminder: You are managing the Guild of Thieves comic subdirectory. |
|
assertNotChecked |
//div[1]/label/input |
|
assertChecked |
//div[2]/label/input |
|
type |
upload-0 |
/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg |
clickAndWait |
submit |
|
assertTextPresent |
The following files were uploaded: 1990-01-01-sample-comic.jpeg |
|
assertTextPresent |
Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg |
|
clickAndWait |
link=Bulk Edit |
|
select |
dates |
label=January 1990 |
clickAndWait |
dofilter |
|
assertElementPresent |
//img[contains(@src, 'comics-archive/guild-of-thieves/1990-01-01')] |
|
assertElementPresent |
//a[contains(@href, 'comics-archive/guild-of-thieves/1990-01')] |
|
assertElementPresent |
//a[contains(@href, 'comics-rss/guild-of-thieves/1990-01')] |
|
assertElementPresent |
//a[contains(@href, 'comics/guild-of-thieves/1990-01')] |
|
click |
toggle-all |
|
select |
bulk-action |
label=Delete Selected |
click |
doaction |
|
assertConfirmation |
You are about to delete the selected posts and comic files. Are you sure? |
|
waitForPageToLoad |
30000 |
|
assertTextPresent |
1990-01-01-sample-comic.jpeg |
|
clickAndWait |
//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] |
|
assertTextPresent |
Reminder: You are managing the Guild of Thieves comic subdirectory. |
|
type |
upload-0 |
/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg |
click |
multiple-new-post-checkbox |
|
clickAndWait |
submit |
|
assertTextPresent |
The following files were uploaded: 1990-01-01-sample-comic.jpeg |
|
assertTextPresent |
Thumbnails were written for the following files: 1990-01-01-sample-comic.jpeg |
|
clickAndWait |
//a[contains(@href, 'comicpress-manager') and contains(text(), 'Import')] |
|
click |
count-missing-posts-clicker |
|
pause |
2000 |
|
click |
//div[@id='cpm-activity-column']/div/table/tbody/tr/td |
|
assertText |
missing-posts-display |
1 |
assertNotChecked |
//div[1]/label/input |
|
assertChecked |
//div[2]/label/input |
|
clickAndWait |
submit |
|
assertTextPresent |
New thumbnails were not needed for the following files: 1990-01-01-sample-comic.jpeg |
|
assertTextPresent |
Sample Comic (1990-01-01 00:00:00) |
|
clickAndWait |
link=Edit post |
|
assertValue |
title |
Sample Comic |
assertElementPresent |
//a[contains(@href, 'comics/guild-of-thieves/1990-01')] |
|
assertElementPresent |
//a[contains(@href, 'comics-rss/guild-of-thieves/1990-01')] |
|
assertElementPresent |
//a[contains(@href, 'comics-archive/guild-of-thieves/1990-01')] |
|
click |
link=Delete |
|
assertConfirmation |
*'Sample Comic'* |
|
waitForPageToLoad |
30000 |
|
assertTextPresent |
Post deleted. |
|
clickAndWait |
link=Bulk Edit |
|
assertElementNotPresent |
//select[@id='dates']/option[text()='January 1990'] |
|
clickAndWait |
link=Dashboard |
|
assertTextNotPresent |
It looks like this is a new ComicPress install. |
|
assertTextPresent |
in the Guild of Thieves category |
|
assertTextPresent |
will be uploaded to the Guild of Thieves comic subdirectory |
|
type |
upload |
/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg |
clickAndWait |
//input[@value='Upload Comic File and Edit Post'] |
|
assertValue |
title |
Sample Comic |
assertElementPresent |
//a[contains(@href, 'comics/guild-of-thieves/1990-01')] |
|
assertElementPresent |
//a[contains(@href, 'comics-rss/guild-of-thieves/1990-01')] |
|
assertElementPresent |
//a[contains(@href, 'comics-archive/guild-of-thieves/1990-01')] |
|
assertTextPresent |
will be uploaded to the Guild of Thieves comic subdirectory |
|
click |
link=Move to Trash |
|
waitForPageToLoad |
30000 |
|
assertTextPresent |
moved to the trash |
|
clickAndWait |
link=Bulk Edit |
|
assertElementNotPresent |
//select[@id='dates']/option[text()='January 1990'] |
|
clickAndWait |
link=ComicPress Config |
|
select |
comic |
label=A Moment of Clarity (default) |
clickAndWait |
//input[@value='Submit'] |
|
assertTextNotPresent |
Comics folder: comics/guild-of-thieves |
|
assertTextNotPresent |
Archive folder: comics-archive/guild-of-thieves |
|
assertTextNotPresent |
RSS feed folder: comics-rss/guild-of-thieves |
|
assertTextNotPresent |
Comics folder: comics/comics |
|
assertTextNotPresent |
Archive folder: comics-archive/comics |
|
assertTextNotPresent |
RSS feed folder: comics-rss/comics |
|
assertTextPresent |
Comics folder: comics |
|
assertTextPresent |
Archive folder: comics-archive |
|
assertTextPresent |
RSS feed folder: comics |
|