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

Send course welcome message for manual and self enrolments

XMLWordPrintable

    • MOODLE_20_STABLE, MOODLE_24_STABLE, MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_404_STABLE
    • MDL-4188-main-2
    • Easy
    • Hide

      Fully covered by PHPUnit and Behat

      Manual testing below

      Initial setup

      1. Login as admin.
      2. Create a course called Course 1.
      3. Create a teacher account. Note the email address of this account.
      4. Enrol the created teacher account to Course 1.
      5. Create a student account called Student 1. Do not enrol this account to Course 1.

      Testing 1

      1. Click on the Notification icon (Bell icon).
      2. Click on the Notification Preferences (Gear icon).
      3. Verify that you will see a new notification item called: Welcome message for new course enrolments
      4. Verify that the default settings for Web and Email are turned on.

      Testing 2 - Default message

      1. Navigate to Site Administration > Plugins > Enrolments > Manual enrolments.
      2. Verify that you will see a new setting called: Send course welcome message
      3. Verify that the default value is From the course contact.
      4. Navigate to the created course > Participants.
      5. Click on the Enrolled users tertiary navigation and select Enrolment methods.
      6. Click Edit (Gear icon) on the Manual enrolments.
      7. Verify that you will see a new setting called: Send course welcome message
      8. Verify that the default value is From the course contact.
      9. Verify that you will see a new setting called: Custom welcome message
      10. Verify that the default value is: Dear {$a->fullname}, you have successfully been enrolled to course {$a->coursename}
      11. Verify that you will see an extra help text below the text area.
      12. Change the Send course welcome message to No.
      13. Verify that you will not see Custom welcome message.
      14. Verify that you will not see the extra help text below the text area.
      15. Change the Send course welcome message back to From the course contact.
      16. Press Save changes.
      17. Navigate back to Participant page.
      18. Click Enrol users button.
      19. Enrol the created student account as Student role.
      20. Login as the created student account.
      21. Verify that you will see a new notification.
      22. Click View full notification.
      23. Verify that the title of notification is: Welcome to Course 1.
      24. Verify that the content of the notification is: 
        • Dear Student 1, you have successfully been enrolled to course Course 1

      25. Switch to the Mailpit window.
      26. Verify that you will see a new email.
      27. Verify that the title is: Welcome to Course 1
      28. Verify that the From address is the email address of the Teacher account in the course.
      29. Verify that the content of the email is:
        • Dear Student 1, you have successfully been enrolled to course Course 1
          

      Testing 3 - Custom message

      1. Navigate to the created course > Participants.
      2. Click on the Enrolled users tertiary navigation and select Enrolment methods.
      3. Click Edit (Gear icon) on the Manual enrolments.
      4. Change the Custom welcome message to
        • Dear {$a->fullname}, you have successfully been enrolled to course {$a->coursename}.
          Your profile page: {$a->profileurl}
          Your email address: {$a->email}
          Your first name: {$a->firstname}
          Your last name: {$a->lastname}
          Your course role: {$a->courserole} 

      5. Press Save changes.
      6. Navigate back to Participant page.
      7. Click Unenrol (Delete icon) on the Student row and click Unenrol.
      8. Click Enrol users button.
      9. Enrol the created student account as Student role.
      10. Login as the created student account.
      11. Verify that you will see a new notification.
      12. Click View full notification.
      13. Verify that the title of notification is: Welcome to Course 1.
      14. Verify that the content of the notification is:
        • Dear Student 1, you have successfully been enrolled to course Course 1.
          Your profile page: [Link to the course profile page]
          Your email address: [Student's email address]
          Your first name: Student
          Your last name: 1
          Your course role: student 

      15. Switch to the Mailpit window.
      16. Verify that you will see a new email.
      17. Verify that the title is: Welcome to Course 1
      18. Verify that the From address is the email address of the Teacher account in the course.
      19. Verify that the content of the email is
        • Dear Student 1, you have successfully been enrolled to course Course 1. 
          Your profile page: [Link to the course profile page] 
          Your email address: [Student's email address] 
          Your first name: Student 
          Your last name: 1 
          Your course role: student
           

       

      Testing 5 - Self enrolment

      1. Navigate to the created course > Participants.
      2. Click on the Enrolled users tertiary navigation and select Enrolment methods.
      3. Click Edit (Gear icon) on the Self enrolment (Student).
      4. Verify that you will see a setting called: Send course welcome message
      5. Verify that the default value is From the course contact.
      6. Verify that you will see a setting called: Custom welcome message
      7. Verify that the default value is: Dear {$a->fullname}, you have successfully been enrolled to course {$a->coursename}
      8. Verify that you will see an extra help text below the text area.
      9. Change the Send course welcome message to No.
      10. Verify that you will not see Custom welcome message.
      11. Verify that you will not see the extra help text below the text area.

       

      Show
      Fully covered by PHPUnit and Behat Manual testing below Initial setup Login as admin. Create a course called Course 1. Create a teacher account. Note the email address of this account. Enrol the created teacher account to Course 1. Create a student account called Student 1. Do not enrol this account to Course 1. Testing 1 Click on the Notification icon (Bell icon). Click on the Notification Preferences (Gear icon). Verify that you will see a new notification item called: Welcome message for new course enrolments Verify that the default settings for Web and Email are turned on . Testing 2 - Default message Navigate to Site Administration > Plugins > Enrolments > Manual enrolments. Verify that you will see a new setting called: Send course welcome message Verify that the default value is From the course contact . Navigate to the created course > Participants. Click on the Enrolled users tertiary navigation and select Enrolment methods. Click Edit (Gear icon) on the Manual enrolments. Verify that you will see a new setting called: Send course welcome message Verify that the default value is From the course contact . Verify that you will see a new setting called: Custom welcome message Verify that the default value is: Dear {$a->fullname}, you have successfully been enrolled to course {$a->coursename} Verify that you will see an extra help text below the text area. Change the Send course welcome message to No. Verify that you will not see Custom welcome message. Verify that you will not see the extra help text below the text area. Change the Send course welcome message back to From the course contact . Press Save changes. Navigate back to Participant page. Click Enrol users button. Enrol the created student account as Student role. Login as the created student account. Verify that you will see a new notification. Click View full notification. Verify that the title of notification is: Welcome to Course 1. Verify that the content of the notification is:  Dear Student 1 , you have successfully been enrolled to course Course 1 Switch to the Mailpit window. Verify that you will see a new email. Verify that the title is: Welcome to Course 1 Verify that the From address is the email address of the Teacher account in the course. Verify that the content of the email is: Dear Student 1 , you have successfully been enrolled to course Course 1 Testing 3 - Custom message Navigate to the created course > Participants. Click on the Enrolled users tertiary navigation and select Enrolment methods. Click Edit (Gear icon) on the Manual enrolments. Change the Custom welcome message to Dear {$a->fullname}, you have successfully been enrolled to course {$a->coursename}. Your profile page: {$a->profileurl} Your email address: {$a->email} Your first name: {$a->firstname} Your last name: {$a->lastname} Your course role: {$a->courserole} Press Save changes. Navigate back to Participant page. Click Unenrol (Delete icon) on the Student row and click Unenrol. Click Enrol users button. Enrol the created student account as Student role. Login as the created student account. Verify that you will see a new notification. Click View full notification. Verify that the title of notification is: Welcome to Course 1. Verify that the content of the notification is: Dear Student 1 , you have successfully been enrolled to course Course 1 . Your profile page: [Link to the course profile page] Your email address: [Student's email address] Your first name: Student Your last name: 1 Your course role: student Switch to the Mailpit window. Verify that you will see a new email. Verify that the title is: Welcome to Course 1 Verify that the From address is the email address of the Teacher account in the course. Verify that the content of the email is Dear Student 1 , you have successfully been enrolled to course Course 1 . Your profile page: [Link to the course profile page] Your email address: [Student's email address] Your first name: Student Your last name: 1 Your course role: student   Testing 5 - Self enrolment Navigate to the created course > Participants. Click on the Enrolled users tertiary navigation and select Enrolment methods. Click Edit (Gear icon) on the Self enrolment (Student). Verify that you will see a setting called: Send course welcome message Verify that the default value is From the course contact . Verify that you will see a setting called: Custom welcome message Verify that the default value is: Dear {$a->fullname}, you have successfully been enrolled to course {$a->coursename} Verify that you will see an extra help text below the text area. Change the Send course welcome message to No. Verify that you will not see Custom welcome message. Verify that you will not see the extra help text below the text area.  
    • 6
    • Team Hedgehog 2023 Review 4, Team Hedgehog 2024 Sprint 1.1, Team Hedgehog 2024 Sprint 1.2, Team Hedgehog 2024 Sprint 1.3, Team Hedgehog 2024 Sprint 1.4

      Some enrolment methods (flatfile, paypal...) support automatic notification to students by email. The same facility would be desirable for manual enrolments (defining it in the enrolment configuration page).

            Votes:
            53 Vote for this issue
            Watchers:
            59 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 4 days, 3 hours, 12 minutes
                1w 4d 3h 12m

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