mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
b811884441
commit
35adb02921
26
tests/test_windmill/login-and-create-page.json
Normal file
26
tests/test_windmill/login-and-create-page.json
Normal 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"}
|
Loading…
Reference in New Issue
Block a user