From 169690082bdc639f457b3d9b7886b519a800d513 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 14 Jan 2010 15:42:32 -0500 Subject: [PATCH] start adding selenium tests --- test/selenium/PostFixturesTest.html | 112 ++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 test/selenium/PostFixturesTest.html 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PostFixturesTest
clickAndWaitlink=Post Fixtures
click//input[@value='Load Provided Data']
assertAlertYou must check the checkbox to approve this operation.
clickpf[is_ok]
typepf[data]{]
clickAndWait//input[@value='Load Provided Data']
assertTextPresentData is not valid JSON.
typepf[data]{ "options": { "post-fixtures-selenium": "yes!" }}
clickpf[is_ok]
clickAndWait//input[@value='Load Provided Data']
assertTextPresentNew data set loaded into WordPress.
open/wp-admin/options.php
assertValuepost-fixtures-seleniumyes!
clickAndWaitlink=Post Fixtures
typepf[data]{ "options": { "post-fixtures-selenium": false }}
clickpf[is_ok]
clickAndWait//input[@value='Load Provided Data']
open/wp-admin/options.php
assertElementNotPresentpost-fixtures-selenium
+ +