PostFixturesTest
clickAndWait link=Post Fixtures
click //input[@value='Load Provided Data']
assertAlert You must check the checkbox to approve this operation.
click pf[is_ok]
type pf[data] {]
clickAndWait //input[@value='Load Provided Data']
assertTextPresent Data is not valid JSON.
type pf[data] { "options": { "post-fixtures-selenium": "yes!" }}
click pf[is_ok]
clickAndWait //input[@value='Load Provided Data']
assertTextPresent New data set loaded into WordPress.
open /wp-admin/options.php
assertValue post-fixtures-selenium yes!
clickAndWait link=Post Fixtures
type pf[data] { "options": { "post-fixtures-selenium": false }}
click pf[is_ok]
clickAndWait //input[@value='Load Provided Data']
open /wp-admin/options.php
assertElementNotPresent post-fixtures-selenium