Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
None
Description
Hi,
When have checked to be notified on new comments on an article, then create new comments with a different user, execute the respective cronjob, the notification is not sent at the first time.
If we create additional comments and re-execute the cronjob, then the email notification is sent (only at the second time)
NOTE:
- See related issue 16422
- We set the .run/settings/override/ezcomments.ini.append.php with the following content:
<?php /*
[NotificationSettings]
CommentsInOne=true
*/ ?>Steps to reproduce
Initialize the test case using this filter: --filter="eZCommentsSeleneseTests::.*initialize_and_create_object.html" Setup - Set CommentsInOne setting 1. Add the file .run/settings/override/ezcomments.ini.append.php with the following content: <?php /* [NotificationSettings] CommentsInOne=true */ ?> 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 Verify that user test1 has been notified 1. Verify that test1 has received ONE notification mentioning that new comments are posted. (HERE, WE DO NOT RECEIVE ANY NOTIFICATION AS WE SHOULD)
If we continue outside the scope of TC-118 and do the following, the we receive notifications:
Post new comments by user 2 1- Login as test2 in webin site 2 - Post a new comments by user 2 (one or more comments) 3 - logout Run the ezcomments notification cronjob (Again) 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 Verify that NOW we receive notification.