TestWhatDidTheySay
open /wp-admin/
clickAndWait link=Installed
assertTextPresent What Did They Say?!?
click //table[@id='all-plugins-table']/tbody/tr[15]/td[2]/div/span[1]/a
clickAndWait //a[contains(@href,'what-did-they-say') and contains(@href,'activate')]
assertTextPresent Plugin activated.
assertElementPresent //a[contains(text(), "What Did They Say?!?")]
click 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.
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)