Added Windmill test for editing content

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@48166 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-01-17 05:01:32 +00:00
parent b811884441
commit 35adb02921
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{"params": {"id": "MemberLoginForm_LoginForm_Email"}, "method": "click"}
{"params": {"text": "admin", "id": "MemberLoginForm_LoginForm_Email"}, "method": "type"}
{"params": {"text": "password", "id": "MemberLoginForm_LoginForm_Password"}, "method": "type"}
{"params": {"id": "MemberLoginForm_LoginForm_action_dologin"}, "method": "click"}
{"params": {"id": "heading_sitetree"}, "method": "waits.forElement"}
{"params": {"timeout": 60000, "id": "heading_sitetree"}, "method": "waits.sleep"}
{"params": {"xpath": "\/html\/body\/div\/div\/div\/ul\/li\/button"}, "method": "click"}
{"params": {"id": "Form_AddPageOptionsForm_PageType"}, "method": "click"}
{"params": {"option": "Page", "id": "Form_AddPageOptionsForm_PageType"}, "method": "select"}
{"params": {"validator": "Page", "id": "Form_AddPageOptionsForm_PageType"}, "method": "asserts.assertValue"}
{"params": {"xpath": "\/html\/body\/div\/div\/div\/form\/div[2]\/input"}, "method": "click"}
{"params": {"timeout": 10000, "id": "heading_sitetree"}, "method": "waits.sleep"}
{"params": {"timeout": 10000, "id": "Form_EditForm_Title"}, "method": "waits.forElement"}
{"params": {"validator": "New Page", "id": "Form_EditForm_Title"}, "method": "asserts.assertValue"}
{"params": {"id": "Form_EditForm_Title"}, "method": "click"}
{"params": {"text": "test page", "id": "Form_EditForm_Title"}, "method": "type"}
{"params": {"id": "tab-Root_Content_set_Metadata"}, "method": "click"}
{"params": {"validator": "test-page", "id": "Form_EditForm_URLSegment"}, "method": "asserts.assertValue"}
{"params": {"id": "Form_EditForm_action_publish"}, "method": "click"}
{"params": {"id": "viewLiveSite"}, "method": "click"}