Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5217

Dataform behat steps for setting view and entry templates.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.6.4, 2.7.1
    • Component/s: Set: Dataform
    • Labels:
      None
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE

      Description

      With this improvement it will be possible to use one "background" type step to set view or entry template in a view, instead of the long way via the view edit form.

      These steps will also work around a current limitation of the standard step

      I set the field "FIELDNAME" to "VALUE"
      

      which cannot handle values with multiple lines (because it uses javascript to set the editor content). The steps will use Py String for value and will perform low level update of the template, that is, via the dataformview api.

      The syntax of the new steps will be

      And view "VIEWNAME" in dataform "DATAFORMID" has the following view template:
      """
      first line of template content
      ...
      last line of template content
      """
      

      and

      And view "VIEWNAME" in dataform "DATAFORMID" has the following entry template:
      """
      first line of template content
      ...
      last line of template content
      """
      

        Attachments

          Activity

            People

            • Assignee:
              itamart Itamar Tzadok
              Reporter:
              itamart Itamar Tzadok
              Tester:
              Itamar Tzadok
              Participants:
              Component watchers:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Jul/14