Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-17933 Moodle 4.3 QA
  3. MDLQA-18318

CLONE - Users are alerted when their session is about to time out and when it has expired

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Minor Minor
    • Moodle 4.3
    • Moodle 4.3
    • User
    • None

      This test requires admin access. If you would like to use the QA testing site for running the test, please see the QA testing guide for details of how to request admin access. Begin just after the hourly reset to give yourself plenty of time to complete the test!

      Test preparation:

      1. Log in as admin and go to Site administration / Server / Session handling.
      2. Set sessiontimeout to 60 seconds and sessiontimeoutwarning to 40 seconds and save changes.

      Note: There is not much time between the steps in this test and if you wait too long before extending the session, you may be logged out!

      Case 1

      This test requires you to wait 20 seconds which is the value of the first warning time (sessiontimeout - sessiontimeoutwarning).

      The idea is to test that you are shown the extend session dialogue after 20 seconds, and that you extend the session. Waiting a further 10-15 seconds confirms that the session was extended but without causing the extend dialogue to be shown for a second time.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Click on the "Extend session" button
      5. Confirm that the modal closes
      6. Wait a further ~10 seconds
      7. Navigate to another page in Moodle
      8. Confirm that you had not been logged out

      Case 2

      This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the extend session dialogue after 20 seconds, and you cancel the warning. Session expired dialogue is shown after ~40 seconds of extend dialogue.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Click on the "Cancel" button
      5. Confirm that the modal closes*
      6. Wait further ~40 seconds
      7. Confirm that the "Session expired" modal appears

      Case 3

      This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the extend dialogue after 20 seconds, and there are no interactions. Session expired dialogue is shown after ~40 seconds of extend dialogue.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Wait further ~40 seconds
      5. Confirm that the "No recent activity" modal disappears
      6. Confirm that the "Session expired" modal appears

      Case 4

      This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the Session expired dialogue, and you are redirected to the login page.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Wait further ~40 seconds
      5. Confirm that the "No recent activity" modal disappears
      6. Confirm that the "Session expired" modal appears
      7. Click on the "Log in again" button
      8. Confirm that you are redirected to login page

      Case 5

      This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the Session expired dialogue, and you are redirected to the login page automatically by navigating to another page in Moodle.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Wait further ~40 seconds
      5. Confirm that the "No recent activity" modal disappears
      6. Confirm that the "Session expired" modal appears
      7. Navigate to page within Moodle
      8. Confirm that you are redirected to login page

        1. (1) 8 Passed -- (Master)MDL-18318.png
          338 kB
          Kim Jared Lucas
        2. (2) 7 Passed -- (Master)MDL-18318.png
          140 kB
          Kim Jared Lucas
        3. (3) 6 Passed -- (Master)MDL-18318.png
          121 kB
          Kim Jared Lucas
        4. (4) 8 Passed -- (Master)MDL-18318.png
          35 kB
          Kim Jared Lucas
        5. (5) 8 Passed -- (Master)MDL-18318.png
          33 kB
          Kim Jared Lucas

            kimjared2121 Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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