mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
dfa227cbe5
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@61626 467b73ca-7a2a-4603-9d3b-597d59a354a9
26 lines
1.1 KiB
Python
26 lines
1.1 KiB
Python
# Generated by the windmill services transformer
|
|
from windmill.authoring import WindmillTestClient
|
|
|
|
def test():
|
|
client = WindmillTestClient(__name__)
|
|
|
|
client.click(link=u'Security')
|
|
client.waits.forPageLoad(timeout=u'20000')
|
|
client.click(xpath=u"/html/body/div[@id='left']/div[@id='treepanes']/ul[@id='TreeActions']/li[@id='addgroup']/button")
|
|
client.waits.sleep(milliseconds=u'5000')
|
|
|
|
client.asserts.assertText(validator=u'New Group', id=u'record-2')
|
|
client.asserts.assertValue(validator=u'New Group', id=u'Form_EditForm_Title')
|
|
|
|
client.click(id=u'Form_EditForm_Title')
|
|
client.type(text=u'Test Group', id=u'Form_EditForm_Title')
|
|
client.click(id=u'Form_EditForm_action_save')
|
|
client.waits.sleep(milliseconds=u'5000')
|
|
|
|
client.asserts.assertText(validator=u'Test Group', id=u'record-2')
|
|
|
|
client.click(id=u'Form_AddRecordForm_FirstName')
|
|
client.type(text=u'Test', id=u'Form_AddRecordForm_FirstName')
|
|
client.type(text=u'Person', id=u'Form_AddRecordForm_Surname')
|
|
client.type(text=u'test@example.com', id=u'Form_AddRecordForm_Email')
|
|
client.click(id=u'Form_AddRecordForm_action_addtogroup') |