From 40cef8afe7bd28656fd7e7338e21a5c2dcf0b67a Mon Sep 17 00:00:00 2001 From: Ferran Recio Date: Wed, 12 Feb 2020 12:25:13 +0100 Subject: [PATCH] MDL-67707 core_h5p: move shared h5p files to core fixtures --- filter/displayh5p/tests/behat/h5p_filter.feature | 8 ++++---- .../tests/fixtures/guess-the-answer.h5p | Bin .../displayh5p => h5p}/tests/fixtures/ipsums.h5p | Bin lib/editor/atto/plugins/h5p/tests/behat/h5p.feature | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) rename {lib/editor/atto => h5p}/tests/fixtures/guess-the-answer.h5p (100%) rename {filter/displayh5p => h5p}/tests/fixtures/ipsums.h5p (100%) diff --git a/filter/displayh5p/tests/behat/h5p_filter.feature b/filter/displayh5p/tests/behat/h5p_filter.feature index 4bad0907e61..df8f2207ed7 100644 --- a/filter/displayh5p/tests/behat/h5p_filter.feature +++ b/filter/displayh5p/tests/behat/h5p_filter.feature @@ -65,7 +65,7 @@ Feature: Render H5P content using filters And I add a "File" to section "1" And I set the following fields to these values: | Name | ipsumFile | - And I upload "filter/displayh5p/tests/fixtures/ipsums.h5p" file to "Select files" filemanager + And I upload "h5p/tests/fixtures/ipsums.h5p" file to "Select files" filemanager And I press "Save and return to course" And I follow "PageName1" And I navigate to "Edit settings" in current page administration @@ -102,7 +102,7 @@ Feature: Render H5P content using filters And I add a "File" to section "1" And I set the following fields to these values: | Name | ipsumFile | - And I upload "filter/displayh5p/tests/fixtures/ipsums.h5p" file to "Select files" filemanager + And I upload "h5p/tests/fixtures/ipsums.h5p" file to "Select files" filemanager And I press "Save and return to course" And I follow "PageName1" And I navigate to "Edit settings" in current page administration @@ -127,7 +127,7 @@ Feature: Render H5P content using filters And I add a "File" to section "1" And I set the following fields to these values: | Name | ipsumFileTeacher | - And I upload "filter/displayh5p/tests/fixtures/ipsums.h5p" file to "Select files" filemanager + And I upload "h5p/tests/fixtures/ipsums.h5p" file to "Select files" filemanager And I press "Save and return to course" And I follow "PageName1" And I navigate to "Edit settings" in current page administration @@ -151,7 +151,7 @@ Feature: Render H5P content using filters And I add a "File" to section "1" And I set the following fields to these values: | Name | ipsumFile | - And I upload "filter/displayh5p/tests/fixtures/ipsums.h5p" file to "Select files" filemanager + And I upload "h5p/tests/fixtures/ipsums.h5p" file to "Select files" filemanager And I press "Save and return to course" And I follow "PageName2" And I navigate to "Edit settings" in current page administration diff --git a/lib/editor/atto/tests/fixtures/guess-the-answer.h5p b/h5p/tests/fixtures/guess-the-answer.h5p similarity index 100% rename from lib/editor/atto/tests/fixtures/guess-the-answer.h5p rename to h5p/tests/fixtures/guess-the-answer.h5p diff --git a/filter/displayh5p/tests/fixtures/ipsums.h5p b/h5p/tests/fixtures/ipsums.h5p similarity index 100% rename from filter/displayh5p/tests/fixtures/ipsums.h5p rename to h5p/tests/fixtures/ipsums.h5p diff --git a/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature b/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature index 4ea2e13b538..fc51cf4639f 100644 --- a/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature +++ b/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature @@ -40,7 +40,7 @@ Feature: Add h5ps to Atto Scenario: Insert an h5p file Given I log in as "admin" And I follow "Manage private files..." - And I upload "lib/editor/atto/tests/fixtures/guess-the-answer.h5p" file to "Files" filemanager + And I upload "h5p/tests/fixtures/guess-the-answer.h5p" file to "Files" filemanager And I click on "Save changes" "button" And I am on "Course 1" course homepage And I follow "PageName1" @@ -145,7 +145,7 @@ Feature: Add h5ps to Atto Scenario: Enable/disable H5P options Given I log in as "admin" And I follow "Manage private files..." - And I upload "lib/editor/atto/tests/fixtures/guess-the-answer.h5p" file to "Files" filemanager + And I upload "h5p/tests/fixtures/guess-the-answer.h5p" file to "Files" filemanager And I click on "Save changes" "button" And I am on "Course 1" course homepage And I follow "PageName1" @@ -209,7 +209,7 @@ Feature: Add h5ps to Atto | student1 | C1 | student | And I log in as "admin" And I follow "Manage private files..." - And I upload "lib/editor/atto/tests/fixtures/guess-the-answer.h5p" file to "Files" filemanager + And I upload "h5p/tests/fixtures/guess-the-answer.h5p" file to "Files" filemanager And I click on "Save changes" "button" And I am on "Course 1" course homepage And I follow "PageName1"