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

List available behat data generators on admin/tool/behat/index.php

    XMLWordPrintable

Details

    Description

      Currently the step definitions reference on admin/tools/behat/index.php lists the available step definitions, and the available options for some of the fields in a definition (for example, '"ELEMENT_STRING" "SELECTOR_STRING" should exist' displays the available selectors in place of SELECTOR_STRING).

      When using a data generator via the 'the following "ELEMENT_STRING" exist:' step, the only ways to find out what elements are available are by searching for other uses of the step in a feature file, or by looking at the code in behat_core_generator::get_creatable_entities() and others.

      It would make writing tests a lot easier of the step definitions list displayed a similar select list with the entities that can be generated.

      Attachments

        1. (I) Passed -- (311)MDL-75105.png
          (I) Passed -- (311)MDL-75105.png
          81 kB
        2. (I) Passed -- (39)MDL-75105.png
          (I) Passed -- (39)MDL-75105.png
          78 kB
        3. (I) Passed -- (400)MDL-75105.png
          (I) Passed -- (400)MDL-75105.png
          61 kB
        4. (I) Passed -- (401)MDL-75105.png
          (I) Passed -- (401)MDL-75105.png
          73 kB
        5. (I) Passed -- (Master)MDL-75105.png
          (I) Passed -- (Master)MDL-75105.png
          79 kB
        6. 75105.patch
          9 kB
        7. MDL-75105.png
          MDL-75105.png
          23 kB

        Issue Links

          Activity

            People

              marxjohnson Mark Johnson
              marxjohnson Mark Johnson
              Simey Lameze Simey Lameze
              Andrew Lyons Andrew Lyons
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                16/Jan/23

                Time Tracking

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