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

allow teachers to specify certain fields in database activity as required

    XMLWordPrintable

Details

    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_22_STABLE, MOODLE_28_STABLE
    • MOODLE_29_STABLE
    • MDL-5583-master
    • Hide

      Note, all parts of the test need to be completed. Behat is currently unable to fill in some of the database fields we use (e.g. file, picture).

      As this is a UI change, you'll need to check that the new UI elements display correctly in at least "clean" and "base" themes

      1. Run behat tests
      2. Create a new Database activity
      3. Add required fields for:
        1. checkbox
        2. file
        3. latlong
        4. menu
        5. number
        6. picture
        7. radio
        8. text
        9. textarea
        10. url
        11. multimenu
      4. Create templates
      5. Go to add a new entry
      6. Fill in all fields
      7. Save and view
      8. Confirm that the entry was added
      9. Add required fields for:
        1. checkbox
        2. file
        3. latlong
        4. menu
        5. number
        6. picture
        7. radio
        8. text
        9. textarea
        10. url
        11. multimenu
      10. Add another entry
      11. Don't fill in any of the fields
      12. Ensure that an error message appears next to all of the required fields, but not any of the others.
      13. Delete all of the required fields
      14. Add another entry
      15. Don't fill in any of the fields
      16. Confirm that the entry was added
      17. Backup the activity
      18. Restore the activity
      19. Confirm that the required state for your fields was copied across
      Show
      Note, all parts of the test need to be completed. Behat is currently unable to fill in some of the database fields we use (e.g. file, picture). As this is a UI change, you'll need to check that the new UI elements display correctly in at least "clean" and "base" themes Run behat tests Create a new Database activity Add required fields for: checkbox file latlong menu number picture radio text textarea url multimenu Create templates Go to add a new entry Fill in all fields Save and view Confirm that the entry was added Add required fields for: checkbox file latlong menu number picture radio text textarea url multimenu Add another entry Don't fill in any of the fields Ensure that an error message appears next to all of the required fields, but not any of the others. Delete all of the required fields Add another entry Don't fill in any of the fields Confirm that the entry was added Backup the activity Restore the activity Confirm that the required state for your fields was copied across
    • 20
    • FRONTEND Sprint 14, Team A Sprint 1, Team '; drop tables Sprint 2, Team ';drop tables Sprint 3, Team ';drop tables Sprint 4
    • Large

    Description

      When creating a database, allow the teacher to specify whether a field must be filled in or not.

      Attachments

        1. 17.zip
          30 kB
        2. 17-mandatory.zip
          29 kB

        Issue Links

          Activity

            People

              johno John Okely
              hatshepsut N Hansen
              Frédéric Massart Frédéric Massart
              David Monllaó David Monllaó
              Dave Cooper Dave Cooper
              Jake Dallimore, Mathew May, Mihail Geshoski
              Votes:
              46 Vote for this issue
              Watchers:
              29 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/15