mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00

The "Private files" link does not exist in the site navigation when using the classic theme, so it is not possible to test the dedicated page via Behat at this time.
51 lines
2.4 KiB
Gherkin
51 lines
2.4 KiB
Gherkin
@core @core_files
|
|
Feature: View licence links
|
|
In order to get select the applicable licence when uploading a file
|
|
As a user
|
|
I need to be able to navigate to a page containing licence terms from the file manager
|
|
|
|
@javascript
|
|
Scenario: Uploading a file displays licence list modal
|
|
Given I log in as "admin"
|
|
And I follow "Manage private files..."
|
|
And I follow "Add..."
|
|
And I follow "Upload a file"
|
|
And I click on "Help with Choose licence" "icon" in the "File picker" "dialogue"
|
|
Then I should see "Follow these links for further information on the available licence options:"
|
|
|
|
@javascript @_file_upload
|
|
Scenario: Altering a file should display licence list modal
|
|
Given I log in as "admin"
|
|
And I follow "Manage private files..."
|
|
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
|
|
And I press "Save changes"
|
|
And I follow "Manage private files..."
|
|
And I click on "empty.txt" "link" in the "Manage private files" "dialogue"
|
|
And I click on "Help with Choose licence" "icon"
|
|
Then I should see "Follow these links for further information on the available licence options:"
|
|
|
|
@javascript @_file_upload
|
|
Scenario: Recent files should display licence list modal
|
|
Given I log in as "admin"
|
|
And I follow "Manage private files..."
|
|
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
|
|
And I press "Save changes"
|
|
And I follow "Manage private files..."
|
|
And I follow "Add..."
|
|
And I click on "Recent files" "link" in the "File picker" "dialogue"
|
|
And I click on "empty.txt" "link" in the "File picker" "dialogue"
|
|
And I click on "Help with Choose licence" "icon" in the ".fp-setlicense" "css_element"
|
|
Then I should see "Follow these links for further information on the available licence options:"
|
|
|
|
@javascript @_file_upload
|
|
Scenario: Private files should display licence list modal
|
|
Given I log in as "admin"
|
|
And I follow "Manage private files..."
|
|
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
|
|
And I press "Save changes"
|
|
And I follow "Manage private files..."
|
|
And I follow "Add..."
|
|
And I click on "Private files" "link" in the "File picker" "dialogue"
|
|
And I click on "empty.txt" "link" in the "File picker" "dialogue"
|
|
And I click on "Help with Choose licence" "icon" in the ".fp-setlicense" "css_element"
|
|
Then I should see "Follow these links for further information on the available licence options:"
|