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
25 lines
967 B
Python
25 lines
967 B
Python
from windmill.authoring import setup_module, teardown_module, enable_collector, WindmillTestClient
|
|
import windmill
|
|
|
|
def setup_module(module):
|
|
client = WindmillTestClient(__name__)
|
|
|
|
client.open(url=windmill.settings['TEST_URL'], id=u'fixture-file')
|
|
client.type(text=u'cms/tests/CMSMainTest.yml', id=u'fixture-file')
|
|
client.click(id=u'start-session')
|
|
|
|
client.waits.forPageLoad(timeout=u'20000')
|
|
client.click(id=u'admin-link')
|
|
client.waits.forPageLoad(timeout=u'20000')
|
|
|
|
client.type(text=u'admin@example.com', id=u'MemberLoginForm_LoginForm_Email')
|
|
client.type(text=u'ZXXlkwecxz2390232233', id=u'MemberLoginForm_LoginForm_Password')
|
|
client.click(id=u'MemberLoginForm_LoginForm_action_dologin')
|
|
client.waits.forPageLoad(timeout=u'120000')
|
|
|
|
def teardown_module(module):
|
|
client = WindmillTestClient(__name__)
|
|
|
|
client.open(url=windmill.settings['TEST_URL'], id=u'fixture-file')
|
|
client.click(id=u'end-session')
|
|
|