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