Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-74121

Modal error displayed when the posting threshold in forum is exceeded

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.11.5, 3.11.6, 4.0
    • 3.11.7
    • Forum
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-74121-311
    • MDL-74121-master
    • Hide

      Covered by behat.

       

      For manual testing:

      Prerequisites:

      1. Create a course and enroll a teacher and 2 students as: student1, student2
      2. Create a forum activity as a teacher. Update the settings of the forum activity by going to "Settings" -> "Post threshold for blocking".
      • Update "Time period for blocking" to "1 day"
      • Update "Post threshold for blocking" to "3"
      • Update "Post threshold for warning" to "2"

      Steps:

      1. Login as student1 and go to the forum activity created.
      2. Add a discussion post by clicking "Add discussion topic" button in the view page.
      3. Similarly add 2 more discussion post as did in step 2.
      4. Now student1 should not be able to see 'Add discussion topic' button.
      5. Click on any of the post created. The student1 should not see the 'Reply' link in those post.
      6. When logged in as student2 the 'Add discussion topic' button should be seen.

      Steps to verify the subscribe button (Note: this is for master branch only)

      1. Login as a teacher go to the above forum.
      2. Now check the "Subscribe to forum" button.
      3. The div element inside which this button is found should have class "navitem ml-sm-auto".
      Show
      Covered by behat.   For manual testing: Prerequisites: Create a course and enroll a teacher and 2 students as: student1, student2 Create a forum activity as a teacher. Update the settings of the forum activity by going to "Settings" -> "Post threshold for blocking". Update "Time period for blocking" to "1 day" Update "Post threshold for blocking" to "3" Update "Post threshold for warning" to "2" Steps: Login as student1 and go to the forum activity created. Add a discussion post by clicking "Add discussion topic" button in the view page. Similarly add 2 more discussion post as did in step 2. Now student1 should not be able to see 'Add discussion topic' button. Click on any of the post created. The student1 should not see the 'Reply' link in those post. When logged in as student2 the 'Add discussion topic' button should be seen . Steps to verify the subscribe button (Note: this is for master branch only) Login as a teacher go to the above forum. Now check the "Subscribe to forum" button. The div element inside which this button is found should have class " navitem ml-sm-auto ".
    • 3
    • QA time

    Description

      Follow MDLQA-16128 until step 7. Once you reach the threshold:

      • If you try to post a comment, the "You have exceeded the posting threshold set for this forum" error is expected when you try to create a new post: 
      • However, if you reply (instead of creating a new post), the  following modal is displayed:

      Attachments

        1. advancedreply.png
          advancedreply.png
          28 kB
        2. errormodal.png
          errormodal.png
          92 kB
        3. expectederror.png
          expectederror.png
          66 kB
        4. inpage_reply_warning.png
          inpage_reply_warning.png
          63 kB
        5. quickreply.png
          quickreply.png
          54 kB
        6. Step No. 4_Screenshot.PNG
          Step No. 4_Screenshot.PNG
          61 kB
        7. Step No. 5_Screenshot.PNG
          Step No. 5_Screenshot.PNG
          50 kB
        8. Step No. 6_Screenshot.PNG
          Step No. 6_Screenshot.PNG
          59 kB
        9. Steps to verify the subscribe button_Screenshot.PNG
          Steps to verify the subscribe button_Screenshot.PNG
          115 kB

        Issue Links

          Activity

            People

              sujith Sujith Haridasan
              sarjona Sara Arjona (@sarjona)
              Mathew May Mathew May
              Ilya Tregubov Ilya Tregubov
              Gladys Basiana Gladys Basiana
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/May/22

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 3 hours, 49 minutes
                  1d 3h 49m