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

file_type_restriction.feature fails

    XMLWordPrintable

Details

    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

              johno John Okely
              johno John Okely
              Ryan Wyllie Ryan Wyllie
              Andrew Lyons Andrew Lyons
              CiBoT CiBoT
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Nov/17