fix tests
This commit is contained in:
parent
1c4f774684
commit
c4c2bb8095
@ -57,13 +57,9 @@
|
|||||||
<!-- commenter name and date -->
|
<!-- commenter name and date -->
|
||||||
<div class="comment-author">
|
<div class="comment-author">
|
||||||
|
|
||||||
<a href="" tal:condition="has_author_link" tal:attributes="href author_home_url">
|
<a href="" tal:condition="has_author_link" tal:attributes="href author_home_url">${reply/author_name}</a>
|
||||||
${reply/author_name}
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<span tal:condition="not: has_author_link">
|
<span tal:condition="not: has_author_link">${reply/author_name}</span>
|
||||||
${reply/author_name}
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span tal:condition="not: reply/author_name" i18n:translate="label_anonymous">Anonymous</span>
|
<span tal:condition="not: reply/author_name" i18n:translate="label_anonymous">Anonymous</span>
|
||||||
|
|
||||||
|
@ -111,9 +111,6 @@ Check if comment has been added properly.
|
|||||||
>>> '<a href="http://nohost/plone/author/admin">admin</a>' in browser.contents
|
>>> '<a href="http://nohost/plone/author/admin">admin</a>' in browser.contents
|
||||||
True
|
True
|
||||||
|
|
||||||
>>> browser.contents
|
|
||||||
'...<a href="http://nohost/plone/author/admin">admin</a>...says:...'
|
|
||||||
|
|
||||||
>>> "Comment from admin" in browser.contents
|
>>> "Comment from admin" in browser.contents
|
||||||
True
|
True
|
||||||
|
|
||||||
@ -158,7 +155,7 @@ Post a comment as user jim.
|
|||||||
Check if the comment has been added properly.
|
Check if the comment has been added properly.
|
||||||
|
|
||||||
>>> browser_member.contents
|
>>> browser_member.contents
|
||||||
'...<a href="http://nohost/plone/author/jim">Jim Fult\xc3\xb8rn</a>...says:...'
|
'...<a href="http://nohost/plone/author/jim">Jim Fult\xc3\xb8rn</a>...'
|
||||||
|
|
||||||
>>> "Comment from Jim" in browser_member.contents
|
>>> "Comment from Jim" in browser_member.contents
|
||||||
True
|
True
|
||||||
@ -195,9 +192,6 @@ Now we can post an anonymous comment.
|
|||||||
>>> '<span>Anonymous</span>' in unprivileged_browser.contents
|
>>> '<span>Anonymous</span>' in unprivileged_browser.contents
|
||||||
True
|
True
|
||||||
|
|
||||||
>>> 'says' in unprivileged_browser.contents
|
|
||||||
True
|
|
||||||
|
|
||||||
>>> 'This is an anonymous comment' in unprivileged_browser.contents
|
>>> 'This is an anonymous comment' in unprivileged_browser.contents
|
||||||
True
|
True
|
||||||
|
|
||||||
@ -212,9 +206,6 @@ Make sure special characters work as well.
|
|||||||
>>> tarek_fullname in unprivileged_browser.contents
|
>>> tarek_fullname in unprivileged_browser.contents
|
||||||
True
|
True
|
||||||
|
|
||||||
>>> 'says' in unprivileged_browser.contents
|
|
||||||
True
|
|
||||||
|
|
||||||
>>> 'This is an äüö comment' in unprivileged_browser.contents
|
>>> 'This is an äüö comment' in unprivileged_browser.contents
|
||||||
True
|
True
|
||||||
|
|
||||||
@ -245,7 +236,7 @@ Check that the reply has been posted properly.
|
|||||||
>>> 'Reply comment' in browser.contents
|
>>> 'Reply comment' in browser.contents
|
||||||
True
|
True
|
||||||
|
|
||||||
>>> 'replyTreeLevel1' in browser.contents
|
>>> 'level-1' in browser.contents
|
||||||
True
|
True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user