fix tests for plone.login merge
This commit is contained in:
parent
ac1ac4ae4a
commit
bf0fa909b9
@ -14,6 +14,9 @@ New features:
|
|||||||
|
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
|
|
||||||
|
- Fix tests to work with merges plone.login.
|
||||||
|
[jensens]
|
||||||
|
|
||||||
- More Python 2 / 3 compatibility.
|
- More Python 2 / 3 compatibility.
|
||||||
[pbauer]
|
[pbauer]
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ actions.
|
|||||||
>>> browser.open(portal_url + '/login_form')
|
>>> browser.open(portal_url + '/login_form')
|
||||||
>>> browser.getControl(name='__ac_name').value = 'jack'
|
>>> browser.getControl(name='__ac_name').value = 'jack'
|
||||||
>>> browser.getControl(name='__ac_password').value = 'secret'
|
>>> browser.getControl(name='__ac_password').value = 'secret'
|
||||||
>>> browser.getControl(name='submit').click()
|
>>> browser.getControl('Log in').click()
|
||||||
|
|
||||||
>>> browser.open(urldoc)
|
>>> browser.open(urldoc)
|
||||||
|
|
||||||
@ -241,7 +241,7 @@ Enable anonymous comment with email.
|
|||||||
>>> browser.open(portal_url + '/login_form')
|
>>> browser.open(portal_url + '/login_form')
|
||||||
>>> browser.getControl(name='__ac_name').value = 'admin'
|
>>> browser.getControl(name='__ac_name').value = 'admin'
|
||||||
>>> browser.getControl(name='__ac_password').value = 'secret'
|
>>> browser.getControl(name='__ac_password').value = 'secret'
|
||||||
>>> browser.getControl(name='submit').click()
|
>>> browser.getControl('Log in').click()
|
||||||
>>> browser.open(portal_url+'/@@discussion-controlpanel')
|
>>> browser.open(portal_url+'/@@discussion-controlpanel')
|
||||||
>>> browser.getControl(name='form.widgets.anonymous_comments:list').value = 'selected'
|
>>> browser.getControl(name='form.widgets.anonymous_comments:list').value = 'selected'
|
||||||
>>> browser.getControl(name='form.widgets.anonymous_email_enabled:list').value = 'selected'
|
>>> browser.getControl(name='form.widgets.anonymous_email_enabled:list').value = 'selected'
|
||||||
|
@ -126,7 +126,7 @@ Login as user (without the 'Member' role).
|
|||||||
>>> browser_user.open(portal_url + '/login_form')
|
>>> browser_user.open(portal_url + '/login_form')
|
||||||
>>> browser_user.getControl(name='__ac_name').value = 'johndoe'
|
>>> browser_user.getControl(name='__ac_name').value = 'johndoe'
|
||||||
>>> browser_user.getControl(name='__ac_password').value = 'secret'
|
>>> browser_user.getControl(name='__ac_password').value = 'secret'
|
||||||
>>> browser_user.getControl(name='submit').click()
|
>>> browser_user.getControl('Log in').click()
|
||||||
|
|
||||||
Users without the 'Reply to item' permission will not see the comment form,
|
Users without the 'Reply to item' permission will not see the comment form,
|
||||||
because they don't have the 'Reply to item' permission. By default, this
|
because they don't have the 'Reply to item' permission. By default, this
|
||||||
@ -146,7 +146,7 @@ Login as user 'jim'.
|
|||||||
>>> browser_member.open(portal_url + '/login_form')
|
>>> browser_member.open(portal_url + '/login_form')
|
||||||
>>> browser_member.getControl(name='__ac_name').value = 'jim'
|
>>> browser_member.getControl(name='__ac_name').value = 'jim'
|
||||||
>>> browser_member.getControl(name='__ac_password').value = 'secret'
|
>>> browser_member.getControl(name='__ac_password').value = 'secret'
|
||||||
>>> browser_member.getControl(name='submit').click()
|
>>> browser_member.getControl('Log in').click()
|
||||||
|
|
||||||
Post a comment as user jim.
|
Post a comment as user jim.
|
||||||
|
|
||||||
@ -180,7 +180,7 @@ Enable anonymous comment
|
|||||||
>>> browser.open(portal_url + '/login_form')
|
>>> browser.open(portal_url + '/login_form')
|
||||||
>>> browser.getControl(name='__ac_name').value = 'admin'
|
>>> browser.getControl(name='__ac_name').value = 'admin'
|
||||||
>>> browser.getControl(name='__ac_password').value = 'secret'
|
>>> browser.getControl(name='__ac_password').value = 'secret'
|
||||||
>>> browser.getControl(name='submit').click()
|
>>> browser.getControl('Log in').click()
|
||||||
>>> browser.open(portal_url+'/@@discussion-controlpanel')
|
>>> browser.open(portal_url+'/@@discussion-controlpanel')
|
||||||
>>> browser.getControl(name='form.widgets.anonymous_comments:list').value = 'selected'
|
>>> browser.getControl(name='form.widgets.anonymous_comments:list').value = 'selected'
|
||||||
>>> browser.getControl(name='form.buttons.save').click()
|
>>> browser.getControl(name='form.buttons.save').click()
|
||||||
@ -391,7 +391,7 @@ Now login as user 'reviewer'
|
|||||||
>>> browser_reviewer.open(portal_url + '/login_form')
|
>>> browser_reviewer.open(portal_url + '/login_form')
|
||||||
>>> browser_reviewer.getControl(name='__ac_name').value = 'reviewer'
|
>>> browser_reviewer.getControl(name='__ac_name').value = 'reviewer'
|
||||||
>>> browser_reviewer.getControl(name='__ac_password').value = 'secret'
|
>>> browser_reviewer.getControl(name='__ac_password').value = 'secret'
|
||||||
>>> browser_reviewer.getControl(name='submit').click()
|
>>> browser_reviewer.getControl('Log in').click()
|
||||||
|
|
||||||
Admin and who have 'Delete comments' permission (reviewers for example), can delete comments
|
Admin and who have 'Delete comments' permission (reviewers for example), can delete comments
|
||||||
|
|
||||||
@ -461,7 +461,7 @@ Login as admin.
|
|||||||
>>> browser.open(portal_url + '/login_form')
|
>>> browser.open(portal_url + '/login_form')
|
||||||
>>> browser.getControl(name='__ac_name').value = 'admin'
|
>>> browser.getControl(name='__ac_name').value = 'admin'
|
||||||
>>> browser.getControl(name='__ac_password').value = 'secret'
|
>>> browser.getControl(name='__ac_password').value = 'secret'
|
||||||
>>> browser.getControl(name='submit').click()
|
>>> browser.getControl('Log in').click()
|
||||||
|
|
||||||
Edit the content object.
|
Edit the content object.
|
||||||
|
|
||||||
@ -490,7 +490,7 @@ Edit the control panel.
|
|||||||
>>> browser.open(portal_url + '/login_form')
|
>>> browser.open(portal_url + '/login_form')
|
||||||
>>> browser.getControl(name='__ac_name').value = 'admin'
|
>>> browser.getControl(name='__ac_name').value = 'admin'
|
||||||
>>> browser.getControl(name='__ac_password').value = 'secret'
|
>>> browser.getControl(name='__ac_password').value = 'secret'
|
||||||
>>> browser.getControl(name='submit').click()
|
>>> browser.getControl('Log in').click()
|
||||||
>>> browser.open(portal_url+'/@@discussion-controlpanel')
|
>>> browser.open(portal_url+'/@@discussion-controlpanel')
|
||||||
>>> browser.getControl(name='form.widgets.anonymous_email_enabled:list').value = 'selected'
|
>>> browser.getControl(name='form.widgets.anonymous_email_enabled:list').value = 'selected'
|
||||||
>>> browser.getControl(name='form.buttons.save').click()
|
>>> browser.getControl(name='form.buttons.save').click()
|
||||||
@ -542,7 +542,7 @@ Login as user 'jim'.
|
|||||||
>>> browser_member.open(portal_url + '/login_form')
|
>>> browser_member.open(portal_url + '/login_form')
|
||||||
>>> browser_member.getControl(name='__ac_name').value = 'jim'
|
>>> browser_member.getControl(name='__ac_name').value = 'jim'
|
||||||
>>> browser_member.getControl(name='__ac_password').value = 'secret'
|
>>> browser_member.getControl(name='__ac_password').value = 'secret'
|
||||||
>>> browser_member.getControl(name='submit').click()
|
>>> browser_member.getControl('Log in').click()
|
||||||
|
|
||||||
Post a comment as user jim.
|
Post a comment as user jim.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user