diff --git a/test/selenium/PostFixturesTest.html b/test/selenium/PostFixturesTest.html new file mode 100644 index 0000000..ac60b4f --- /dev/null +++ b/test/selenium/PostFixturesTest.html @@ -0,0 +1,112 @@ + + + +
+ + +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 | ++ |