mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-38184 behat: Tests for filepicker steps
This commit is contained in:
parent
3db1aec528
commit
bd21f796cb
1 changed files with 40 additions and 0 deletions
40
admin/tool/behat/tests/behat/manipulate_filepicker.feature
Normal file
40
admin/tool/behat/tests/behat/manipulate_filepicker.feature
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
@tool_behat @core_form @filepicker
|
||||||
|
Feature: Manipulate filepicker
|
||||||
|
In order to provide external resources
|
||||||
|
As a moodle user
|
||||||
|
I need to upload files to moodle
|
||||||
|
|
||||||
|
Background:
|
||||||
|
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
|
||||||
|
|
||||||
|
@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 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
|
||||||
|
And I delete "Folder 1.zip" 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"
|
Loading…
Add table
Add a link
Reference in a new issue