mirror of
https://github.com/moodle/moodle.git
synced 2025-03-21 08:00:37 +01:00
MDL-75982 tiny_media: add tests for media video plugin
This commit is contained in:
parent
63f9ec9b40
commit
7e41864faa
29
lib/editor/tiny/plugins/media/tests/behat/video.feature
Normal file
29
lib/editor/tiny/plugins/media/tests/behat/video.feature
Normal file
@ -0,0 +1,29 @@
|
||||
@editor @editor_tiny @tiny_media @javascript
|
||||
Feature: Use the TinyMCE editor to upload a video
|
||||
In order to work with videos
|
||||
As a user
|
||||
I need to be able to upload and manipulate videos
|
||||
|
||||
Scenario: Clicking on the Video button in the TinyMCE editor opens the video dialog
|
||||
Given I log in as "admin"
|
||||
And I open my profile in edit mode
|
||||
When I click on the "Multimedia" button for the "Description" TinyMCE editor
|
||||
Then "Insert media" "dialogue" should exist
|
||||
|
||||
Scenario: Browsing repositories in the TinyMCE editor shows the FilePicker
|
||||
Given I log in as "admin"
|
||||
And I open my profile in edit mode
|
||||
When I click on the "Multimedia" button for the "Description" TinyMCE editor
|
||||
And I click on "Browse repositories" "button" in the "Insert media" "dialogue"
|
||||
Then "File picker" "dialogue" should exist
|
||||
|
||||
@_file_upload
|
||||
Scenario: Browsing repositories in the TinyMCE editor shows the FilePicker
|
||||
Given I log in as "admin"
|
||||
And I open my profile in edit mode
|
||||
When I click on the "Multimedia" button for the "Description" TinyMCE editor
|
||||
And I follow "Video"
|
||||
And I click on "Browse repositories..." "button" in the "#id_description_editor_video .tiny_media_source.tiny_media_media_source" "css_element"
|
||||
And I upload "/lib/editor/tiny/tests/behat/fixtures/moodle-logo.mp4" to the file picker for TinyMCE
|
||||
When I click on "Insert media" "button"
|
||||
And I select the "video" element in position "1" of the "Description" TinyMCE editor
|
BIN
lib/editor/tiny/tests/behat/fixtures/moodle-logo.mp4
Normal file
BIN
lib/editor/tiny/tests/behat/fixtures/moodle-logo.mp4
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user