MDL-81393 atto: Disable mediaplugin filter for Behat test

This commit is contained in:
Huong Nguyen 2024-04-03 18:11:22 +07:00
parent e02006b96e
commit dcd753fd37
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

View File

@ -25,7 +25,10 @@ Feature: Add media to Atto
@javascript
Scenario: Insert some media as a link
Given I click on "Browse repositories..." "button" in the "#id_summary_editor_link .atto_media_source.atto_media_link_source" "css_element"
# We need to disable the media plugin filter to be able to insert a link to a video file.
# Otherwise, the media plugin filter will try to render the video player instead of the link.
Given the "mediaplugin" filter is "off"
And I click on "Browse repositories..." "button" in the "#id_summary_editor_link .atto_media_source.atto_media_link_source" "css_element"
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
And I click on "moodle-logo.webm" "link"
And I click on "Select this file" "button"