TestWhatDidTheySay | ||
open | /wp-admin/ | |
clickAndWait | link=Installed | |
assertTextPresent | What Did They Say?!? | |
clickAndWait | //a[contains(@href,'what-did-they-say') and contains(@href,'activate')] | |
assertTextPresent | Plugin activated. | |
assertElementPresent | //a[contains(text(), "What Did They Say?!?")] | |
clickAndWait | link=exact:What Did They Say?!? | |
assertTextPresent | Reset Settings to Default | |
click | //input[@value='Reset What Did They Say?!?'] | |
assertConfirmation | Are you sure? You could leave transcriptions inaccessible. | |
waitForPageToLoad | 30000 | |
assertTextPresent | What Did They Say?!? options reset | |
select | wdts[capabilities][submit_transcriptions] | label=Editor |
select | wdts[capabilities][approve_transcriptions] | label=Editor |
select | wdts[capabilities][change_languages] | label=Editor |
clickAndWait | //input[@value='Change capabilities'] | |
assertTextPresent | User capabilities updated. | |
assertSelectedLabel | wdts[capabilities][submit_transcriptions] | Editor |
assertSelectedLabel | wdts[capabilities][approve_transcriptions] | Editor |
assertSelectedLabel | wdts[capabilities][change_languages] | Editor |
assertText | //th/span[contains(text(), "English")]/../../td[1] | (yes) |
clickAndWait | //th/span[contains(text(), "German")]/../..//input[@value="Default"] | |
assertTextPresent | German set as default. | |
assertNotText | //th/span[contains(text(), "English")]/../../td[1] | (yes) |
assertText | //th/span[contains(text(), "German")]/../../td[1] | (yes) |
select | //select[@name='wdts[code]'] | label=Danish |
clickAndWait | //input[@value='Add New Language'] | |
assertTextPresent | Danish added. | |
click | //input[@value='Delete'] | |
assertConfirmation | You are about to delete this language from the available list. Continue? | |
waitForPageToLoad | 30000 | |
assertTextPresent | Danish deleted. | |
assertVisible | //span[contains(text(), "German")] | |
click | //span[contains(text(), "German")]/../..//a[contains(text(), "Rename")] | |
assertNotVisible | //span[contains(text(), "German")] | |
type | //span[contains(text(), "German")]/..//input[@name="wdts[name]"] | Deutsch |
clickAndWait | //span[contains(text(), "German")]/..//input[@type="submit"] | |
assertTextPresent | German renamed to Deutsch. | |
assertTextPresent | Reset Settings to Default | |
click | //input[@value='Reset What Did They Say?!?'] | |
assertConfirmation | Are you sure? You could leave transcriptions inaccessible. | |
waitForPageToLoad | 30000 | |
assertTextPresent | What Did They Say?!? options reset | |
clickAndWait | link=Add New | |
type | title | WDTS Test Post |
clickAndWait | publish | |
assertTextPresent | Post published. | |
storeValue | post_ID | post_id |
assertSelectedLabel | wdts-language | English |
type | wdts-transcripts-en | This is a test transcript. |
select | wdts-language | label=German |
type | wdts-transcripts-de | Dies ist ein Test transcript. |
clickAndWait | publish | |
assertTextPresent | Post updated. | |
assertValue | wdts-transcripts-en | This is a test transcript. |
assertValue | wdts-transcripts-de | Dies ist ein Test transcript. |
click | link=Delete | |
assertConfirmation | You are about to delete this post 'WDTS Test Post' 'Cancel' to stop, 'OK' to delete. |
|
waitForPageToLoad | 30000 | |
clickAndWait | link=Installed | |
clickAndWait | //a[contains(@href,'what-did-they-say') and contains(@href,'deactivate')] | |
assertTextPresent | Plugin deactivated. |