mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-38814_master' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
a5efbe6161
@ -25,7 +25,7 @@
|
||||
|
||||
// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php.
|
||||
|
||||
require_once(__DIR__ . '/../../behat/behat_files.php');
|
||||
require_once(__DIR__ . '/../../../lib/behat/behat_files.php');
|
||||
|
||||
use Behat\Mink\Exception\ExpectationException as ExpectationException;
|
||||
|
26
repository/tests/behat/create_folders.feature
Normal file
26
repository/tests/behat/create_folders.feature
Normal file
@ -0,0 +1,26 @@
|
||||
@core_form @filepicker
|
||||
Feature: Create folders in the file manager
|
||||
In order to create a directory structure in a file area
|
||||
As a moodle user
|
||||
I need to create folders and subfolders in a file area
|
||||
|
||||
@javascript
|
||||
Scenario: Create folders and subfolders
|
||||
Given the following "courses" exists:
|
||||
| fullname | shortname | category |
|
||||
| Course 1 | C1 | 0 |
|
||||
And I log in as "admin"
|
||||
And I follow "Course 1"
|
||||
And I turn editing mode on
|
||||
And I add a "Folder" to section "0"
|
||||
And I fill the moodle form with:
|
||||
| Name | Folder resource |
|
||||
| Description | The description |
|
||||
And I create "Folder 1" folder in "Files" filepicker
|
||||
And I open "Folder 1" folder from "Files" filepicker
|
||||
And I create "SubFolder 1" folder in "Files" filepicker
|
||||
When I open "Files" folder from "Files" filepicker
|
||||
Then I should see "Folder 1"
|
||||
And I open "Folder 1" folder from "Files" filepicker
|
||||
And I should see "SubFolder 1"
|
||||
And I press "Save and return to course"
|
@ -1,10 +1,11 @@
|
||||
@tool_behat @core_form @filepicker
|
||||
Feature: Manipulate filepicker
|
||||
In order to provide external resources
|
||||
@core_form @filepicker
|
||||
Feature: Zip folders and unzip compressed files
|
||||
In order to download or add contents to file areas easily
|
||||
As a moodle user
|
||||
I need to upload files to moodle
|
||||
I need to zip and unzip folders and files
|
||||
|
||||
Background:
|
||||
@javascript
|
||||
Scenario: Zip and unzip folders and files
|
||||
Given the following "courses" exists:
|
||||
| fullname | shortname | category |
|
||||
| Course 1 | C1 | 0 |
|
||||
@ -18,18 +19,7 @@ Feature: Manipulate filepicker
|
||||
And I create "Folder 1" folder in "Files" filepicker
|
||||
And I open "Folder 1" folder from "Files" filepicker
|
||||
And I create "SubFolder 1" folder in "Files" filepicker
|
||||
|
||||
@javascript
|
||||
Scenario: Create folders and subfolders
|
||||
When I open "Files" folder from "Files" filepicker
|
||||
Then I should see "Folder 1"
|
||||
And I open "Folder 1" folder from "Files" filepicker
|
||||
And I should see "SubFolder 1"
|
||||
And I press "Save and return to course"
|
||||
|
||||
@javascript
|
||||
Scenario: Zip and unzip folders and files
|
||||
Given I open "Files" folder from "Files" filepicker
|
||||
And I open "Files" folder from "Files" filepicker
|
||||
And I zip "Folder 1" folder from "Files" filepicker
|
||||
And I delete "Folder 1" from "Files" filepicker
|
||||
When I unzip "Folder 1.zip" file from "Files" filepicker
|
Loading…
x
Reference in New Issue
Block a user