open |
/wp-admin/ |
|
clickAndWait |
//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] |
|
type |
upload-0 |
/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg |
clickAndWait |
//input[@id='top-submit'] |
|
assertTextPresent |
The following files were uploaded: 1990-01-01-sample-comic.jpeg |
|
clickAndWait |
link=Change Dates |
|
type |
start-date |
1989-12-30 |
type |
end-date |
1990-01-10 |
clickAndWait |
//input[@value='Filter'] |
|
store |
1990-01-02 |
test_date |
storeValue |
//div[@class='activity-box']/form[2]//tr[1]//input[@type='text'] |
original_date |
type |
//div[@class='activity-box']/form[2]//tr[1]//input[@type='text'] |
${test_date} |
clickAndWait |
submit |
|
assertTextNotPresent |
Warning: rename |
|
assertTextPresent |
to ${test_date} |
|
assertElementPresent |
//div[@class='activity-box']/form[2]//tr[1]/td[contains(text(), '${test_date}')] |
|
assertValue |
//div[@class='activity-box']/form[2]//tr[1]//input[@type='text'] |
${test_date} |
type |
//div[@class='activity-box']/form[2]//tr[1]//input[@type='text'] |
${original_date} |
clickAndWait |
submit |
|
assertTextPresent |
to ${original_date} |
|
assertTextNotPresent |
Warning: rename |
|
assertElementPresent |
//div[@class='activity-box']/form[2]//tr[1]/td[contains(text(), '${original_date}')] |
|
clickAndWait |
link=Bulk Edit |
|
select |
dates |
label=January 1990 |
clickAndWait |
dofilter |
|
click |
toggle-all |
|
select |
bulk-action |
label=Delete Selected |
click |
doaction |
|
assertConfirmation |
You are about to delete the selected posts and comic files. Are you sure? |
|
waitForPageToLoad |
30000 |
|