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

Course renderer UI elements split into different methods

    XMLWordPrintable

Details

    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • MDL-68177-master_course_renderer_split_methods
    • Hide

      We need to ensure course information is shown exactly the same way after this improvement, so this test is basically regression testing.

      1. Login as administrator
      2. Access Site administration > Courses > Course custom fields to create a new customfield
        1. Add a new 'short text' customfield named 'credits'
      3. Access Site administration > Front page settings
        1. Add 'Combo list' in 'Front page items when logged in' setting
        2. Add 'Course search box' in 'Front page items when logged in' setting
      4. Create a new course 'Course 01'
        1. Add a course summary
        2. Add a course image
        3. Add some value to 'credits'  in 'Other fields' section
      5. Enrol some teachers in the course
      6. Enable 'guest access' in enrolment methods
      7. Access 'Site home'
        1. Check course info box for 'Course 01' is shown
        2. Click on "i" icon to show more information about 'Course 01' 
          1. Course name with link is visible
          2. Course summary is visible
          3. 'Guest access' icon is visible
          4. Course image is visible
          5. Course teachers are visible
          6. Course 'credits' is visible
      8. Access 'Site home'
        1. Search for "01" in 'Search courses'
        2. Check course info box for 'Course 01' is shown
          1. Course name with link is visible
          2. Course summary is visible
          3. 'Guest access' icon is visible
          4. Course image is visible
          5. Course teachers are visible
          6. Course 'credits' is visible
          7. Course category with link is visible
      Show
      We need to ensure course information is shown exactly the same way after this improvement, so this test is basically regression testing. Login as administrator Access Site administration > Courses > Course custom fields to create a new customfield Add a new 'short text' customfield named 'credits' Access Site administration > Front page settings Add 'Combo list' in 'Front page items when logged in' setting Add 'Course search box' in 'Front page items when logged in' setting Create a new course 'Course 01' Add a course summary Add a course image Add some value to 'credits'  in 'Other fields' section Enrol some teachers in the course Enable 'guest access' in enrolment methods Access 'Site home' Check course info box for 'Course 01' is shown Click on "i" icon to show more information about 'Course 01'  Course name with link is visible Course summary is visible 'Guest access' icon is visible Course image is visible Course teachers are visible Course 'credits' is visible Access 'Site home' Search for "01" in 'Search courses' Check course info box for 'Course 01' is shown Course name with link is visible Course summary is visible 'Guest access' icon is visible Course image is visible Course teachers are visible Course 'credits' is visible Course category with link is visible

    Description

      For Workplace theme, we need to override 'core_course_renderer' to work on a different design. Right now courses are rendered in just one block with all elements inside using 'course_info_box' method.
      It would be nice to have each UI element (course name, description, teachers, ...) as different methods so we could override them individually having more flexibility.

      Attachments

        Activity

          People

            mikelmartíncorrales Mikel Martín Corrales
            rafaellechugo Rafael Lechugo
            Paul Holden Paul Holden
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Anna Carissa Sadia Anna Carissa Sadia
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              15/Jun/20

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d