Details
-
Bug
-
Resolution: Invalid
-
Medium
-
4.3.0beta2
-
None
Description
Hi,
When we try to reproduce the situation where one notification email can show multiple comments if they were posted after the last email notification was sent, we are receiving one notification email for each new comment.
Steps to reproduce
Initialize the test case using this filter: --filter="eZCommentsSeleneseTests::.*initialize_and_create_object.html" Setup - Create two test users 1. Log in as admin in webin admin 2. Click on "User accounts" in the top tab menu 3. Click on the "Administrator users" group in the left tree menu 4. Select "User" in the content class dropdown 5. Click on "Create here" 6. Fill in the user object values: First name: "test user" Last name: "one" User account: username = "testuser1", password = "publish", email = [whatever email address the tester has access to] 7. Click on "Send for publishing" 8. Repeat steps 4 to 7, replacing the following values: Last name: "two" User account: username = "testuser2", email = "testuser2@ez.no" Move test article to a folder 1. Click "Content structure" in top menu 2. Create new folder "News" 3. Click "Comments system testing" link 4. Click "Move" button 5. Select radio button next to "News" 6. Click "Select" button Post a comment as test1 with notifications enabled 1. Login as test1 on webin site 2. Click "News" in top menu 3. Click on the "Comment system testing" article in the sub items list 4. In the Preview box, fill the comment form fields: Title: "Comment by test1" Name: leave as is Website: leave blank Email: leave as is Content: "This is a comment by test1" Notified: check 5. Click on "Post Comment" 6. Log out Post two comments as test2 1. Login as test2 in webin site 2. Click "News" in top menu 3. Click on the "Comment system testing" article in the sub items list 4. Fill in the comment form fields: * Title: "Comment #1 by test2" * Name: leave as is * Website: leave blank * Email: leave as is * Content: "First comment by test2" * Notified: uncheck 5. Click on "Post Comment" 6. Fill in the comment form fields again: * Title: "Comment 21 by test2" * Name: leave as is * Website: leave blank * Email: leave as is * Content: "Second comment by test2" * Notified: uncheck 7. Click on "Post Comment" Run the ezcomments notification cronjob 1. Log in as admin in ezwebin admin 2. Click "Selenium tests" in top menu 3. Click "Cronjobs" in left menu 4. Select SiteAccess : ezwebin_site_admin 5. Execute the "ezcomments" cronjob Check that user test1 has been notified Check that test1 has received ONE notification mentioning TWO comments.
In this last step, test1 received two notifications instead of one.