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

file_type_restriction.feature fails

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Covered by jenkins, but you might want to run mod/assign/submission/file/tests/behat/file_type_restriction.feature just to catch any problems early

      Show
      Covered by jenkins, but you might want to run mod/assign/submission/file/tests/behat/file_type_restriction.feature just to catch any problems early
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59725-master

      Description

      3.4 only.

       

      Acceptance tests site installed
      Acceptance tests environment enabled on http://127.0.0.1/stable_master, to run the tests use:
      vendor/bin/behat --config /Users/john/moodles/stable_master/moodledata_behat/behatrun/behat/behat.yml
      Behat ready!
      Preparing Behat testing
      Starting Selenium server
      Running Behat tests
      More output can be found at:
      /Users/john/moodles/stable_master/extra/behat
      http://john.per.in.moodle.com/mdk/stable_master/behat
      Moodle 3.4dev (Build: 20170804), 8146b1f06de51d1ca6b4043bc524ed2fe26aaa72
      Php: 7.0.20, pgsql: 9.6.3, OS: Darwin 16.6.0 x86_64
      Server OS "Darwin", Browser: "firefox"
      Started at 04-08-2017, 14:41
      ......................F.........F----------...............
       
      --- Failed steps:
       
      001 Scenario: File types validation for an assignment # /Users/john/moodles/stable_master/moodle/mod/assign/submission/file/tests/behat/file_type_restriction.feature:23
      Then the field "Accepted file types" matches value "image" # /Users/john/moodles/stable_master/moodle/mod/assign/submission/file/tests/behat/file_type_restriction.feature:44
      The 'Accepted file types' value is '', 'image' expected (Behat\Mink\Exception\ExpectationException)
       
      002 Scenario: Uploading permitted file types for an assignment # /Users/john/moodles/stable_master/moodle/mod/assign/submission/file/tests/behat/file_type_restriction.feature:47
      And I should see "Files of these types may be added to the submission" # /Users/john/moodles/stable_master/moodle/mod/assign/submission/file/tests/behat/file_type_restriction.feature:55
      "Files of these types may be added to the submission" text was not found in the page (Behat\Mink\Exception\ExpectationException)
       
      3 scenarios (1 passed, 2 failed)
      58 steps (46 passed, 2 failed, 10 skipped)
      2m35.04s (67.53Mb)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                johno John Okely
                Reporter:
                johno John Okely
                Peer reviewer:
                Ryan Wyllie
                Integrator:
                Andrew Nicols
                Tester:
                CiBoT
                Participants:
                Component watchers:
                Damyon Wiese, Adrian Greeve, Mihail Geshoski, Peter Dias, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17