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

Modal error displayed when the posting threshold in forum is exceeded

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • 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

      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:

        1. advancedreply.png
          28 kB
          Sara Arjona (@sarjona)
        2. errormodal.png
          92 kB
          Sara Arjona (@sarjona)
        3. expectederror.png
          66 kB
          Sara Arjona (@sarjona)
        4. inpage_reply_warning.png
          63 kB
          Sujith Haridasan
        5. quickreply.png
          54 kB
          Sara Arjona (@sarjona)
        6. Step No. 4_Screenshot.PNG
          61 kB
          Gladys Basiana
        7. Step No. 5_Screenshot.PNG
          50 kB
          Gladys Basiana
        8. Step No. 6_Screenshot.PNG
          59 kB
          Gladys Basiana
        9. Steps to verify the subscribe button_Screenshot.PNG
          115 kB
          Gladys Basiana

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

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.