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

More behat tests for filepicker



    • BACKEND Sprint 7


      Steps definitions for filepicker lack functionality essential for testing the references - filling the form when picking the file and overwriting an existing file in filemanager. This issue prepares the Moodle behat environment for reference-related tests.

      • Allow behat tests to use filepicker to pick files from different repositories (still only repositories that don't require login and don't have search form). This also allows to change the filename or other fields in select file dialogue.
      • Allow behat tests to change a file name when uploading a file
      • Allow behat tests to confirm "Overwrite" dialogue when picking the file with the same name as existing (both picking from repo and upload)
      • Create new behat test for picking file by shortcut (reference)
      • Create new behat test for overwriting the existing file in filemanager

      Also the "filemanager" was often referred to as "filepicker" in the steps definitions. This is confusing because "filepicker" is a modal window that allows to pick a file. "Filemanager" is a form element that allows to deal with files that have already been added, create folders and add new files using filepicker.

      The extra confusing part is that there is also a form_filepicker element for the forms but it is very rarely used.

      So in all new steps that I created I used the word "filemanager" when referring to the form element.


        Issue Links



              marina Marina Glancy
              marina Marina Glancy
              David Monllaó David Monllaó
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              0 Vote for this issue
              4 Start watching this issue