From c4c2bb80959ce0c387c0bf22aec9459c89d999c3 Mon Sep 17 00:00:00 2001 From: Stefan Antonelli Date: Wed, 17 Feb 2021 19:36:26 +0100 Subject: [PATCH] fix tests --- plone/app/discussion/browser/comments.pt | 8 ++------ .../discussion/tests/functional_test_comments.txt | 13 ++----------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index 1e7a8eb..9293cf6 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -57,13 +57,9 @@
- - ${reply/author_name} - + ${reply/author_name} - - ${reply/author_name} - + ${reply/author_name} Anonymous diff --git a/plone/app/discussion/tests/functional_test_comments.txt b/plone/app/discussion/tests/functional_test_comments.txt index ac488c1..939d14d 100644 --- a/plone/app/discussion/tests/functional_test_comments.txt +++ b/plone/app/discussion/tests/functional_test_comments.txt @@ -111,9 +111,6 @@ Check if comment has been added properly. >>> 'admin' in browser.contents True - >>> browser.contents - '...admin...says:...' - >>> "Comment from admin" in browser.contents True @@ -158,7 +155,7 @@ Post a comment as user jim. Check if the comment has been added properly. >>> browser_member.contents - '...Jim Fult\xc3\xb8rn...says:...' + '...Jim Fult\xc3\xb8rn...' >>> "Comment from Jim" in browser_member.contents True @@ -195,9 +192,6 @@ Now we can post an anonymous comment. >>> 'Anonymous' in unprivileged_browser.contents True - >>> 'says' in unprivileged_browser.contents - True - >>> 'This is an anonymous comment' in unprivileged_browser.contents True @@ -212,9 +206,6 @@ Make sure special characters work as well. >>> tarek_fullname in unprivileged_browser.contents True - >>> 'says' in unprivileged_browser.contents - True - >>> 'This is an äüö comment' in unprivileged_browser.contents True @@ -245,7 +236,7 @@ Check that the reply has been posted properly. >>> 'Reply comment' in browser.contents True - >>> 'replyTreeLevel1' in browser.contents + >>> 'level-1' in browser.contents True