From dcd753fd3767da6037c095f322db557b80ecda1a Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Wed, 3 Apr 2024 18:11:22 +0700 Subject: [PATCH] MDL-81393 atto: Disable mediaplugin filter for Behat test --- lib/editor/atto/plugins/media/tests/behat/media.feature | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/editor/atto/plugins/media/tests/behat/media.feature b/lib/editor/atto/plugins/media/tests/behat/media.feature index 3f9b6114eff..2f254849086 100644 --- a/lib/editor/atto/plugins/media/tests/behat/media.feature +++ b/lib/editor/atto/plugins/media/tests/behat/media.feature @@ -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" -- 2.11.4.GIT