diff --git a/filter/displayh5p/tests/behat/inline_editing_content.feature b/filter/displayh5p/tests/behat/inline_editing_content.feature index 76a15f0192a..69225e13f31 100644 --- a/filter/displayh5p/tests/behat/inline_editing_content.feature +++ b/filter/displayh5p/tests/behat/inline_editing_content.feature @@ -42,7 +42,7 @@ Feature: Inline editing H5P content anywhere # Add H5P content to the page. And I am on the "PageName1" "page activity" page logged in as "teacher1" And I navigate to "Settings" in current page administration - And I click on "Configure H5P content" "button" in the "#fitem_id_page" "css_element" + And I click on "Insert H5P content" "button" in the "#fitem_id_page" "css_element" And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue" And I select "Private files" repository in file picker And I click on "greeting-card.h5p" "file" in repository content area @@ -86,7 +86,7 @@ Feature: Inline editing H5P content anywhere # Add H5P content to the page. And I am on the "PageName1" "page activity" page And I navigate to "Settings" in current page administration - And I click on "Configure H5P content" "button" in the "#fitem_id_page" "css_element" + And I click on "Insert H5P content" "button" in the "#fitem_id_page" "css_element" And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue" And I select "Content bank" repository in file picker And I click on "Greeting card" "file" in repository content area @@ -130,7 +130,7 @@ Feature: Inline editing H5P content anywhere # Add H5P content to the page. And I am on the "PageName1" "page activity" page And I navigate to "Settings" in current page administration - And I click on "Configure H5P content" "button" in the "#fitem_id_page" "css_element" + And I click on "Insert H5P content" "button" in the "#fitem_id_page" "css_element" And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue" And I select "Content bank" repository in file picker And I click on "Greeting card" "file" in repository content area @@ -176,7 +176,7 @@ Feature: Inline editing H5P content anywhere # Add H5P content to the page. And I am on the "PageName1" "page activity" page And I navigate to "Settings" in current page administration - And I click on "Configure H5P content" "button" in the "#fitem_id_page" "css_element" + And I click on "Insert H5P content" "button" in the "#fitem_id_page" "css_element" And I set the field "H5P URL or file upload" to "https://moodle.h5p.com/content/1290772960722742119" And I click on "Insert H5P" "button" in the "Insert H5P content" "dialogue" And I click on "Save and display" "button" @@ -219,7 +219,7 @@ Feature: Inline editing H5P content anywhere | Text block title | H5PTest | | Content | - | And I configure the "H5PTest" block - And I click on "Configure H5P content" "button" in the "//div[contains(@id,'fitem_id_config_text')]" "xpath_element" + And I click on "Insert H5P content" "button" in the "//div[contains(@id,'fitem_id_config_text')]" "xpath_element" And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue" And I select "Content bank" repository in file picker And I click on "Greeting card" "file" in repository content area diff --git a/h5p/tests/behat/h5p_deployment.feature b/h5p/tests/behat/h5p_deployment.feature index f7d2ab26c7b..a01a7f1fe34 100644 --- a/h5p/tests/behat/h5p_deployment.feature +++ b/h5p/tests/behat/h5p_deployment.feature @@ -26,7 +26,7 @@ Feature: Undeployed H5P content should be only available to users that can deplo And the following "contentbank content" exist: | contextlevel | reference | contenttype | user | contentname | filepath | | Course | C1 | contenttype_h5p | teacher1 | filltheblanks.h5p | /h5p/tests/fixtures/filltheblanks.h5p | - And I click on the "Configure H5P content" button for the "Page content" TinyMCE editor + And I click on the "Insert H5P content" button for the "Page content" TinyMCE editor And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue" And I click on "Content bank" "link" in the ".fp-repo-area" "css_element" And I click on "filltheblanks.h5p" "link" diff --git a/lib/editor/tiny/plugins/h5p/tests/behat/h5p.feature b/lib/editor/tiny/plugins/h5p/tests/behat/h5p.feature index 0c6d6634718..075d9e1ab20 100644 --- a/lib/editor/tiny/plugins/h5p/tests/behat/h5p.feature +++ b/lib/editor/tiny/plugins/h5p/tests/behat/h5p.feature @@ -25,7 +25,7 @@ Feature: Use the TinyMCE editor to upload an h5p package Scenario: TinyMCE can be used to embed an H5P activity Given I change window size to "large" And I am on the PageName1 "page activity editing" page logged in as admin - And I click on the "Configure H5P content" button for the "Page content" TinyMCE editor + And I click on the "Insert H5P content" button for the "Page content" TinyMCE editor And I set the field "H5P URL or file upload" to "https://moodle.h5p.com/content/1290772960722742119" And I click on "Insert H5P content" "button" in the "Insert H5P content" "dialogue" When I click on "Save and display" "button" @@ -40,7 +40,7 @@ Feature: Use the TinyMCE editor to upload an h5p package | filepath | h5p/tests/fixtures/guess-the-answer.h5p | And I change window size to "large" And I am on the "PageName1" "page activity editing" page logged in as "admin" - And I click on the "Configure H5P content" button for the "Page content" TinyMCE editor + And I click on the "Insert H5P content" button for the "Page content" TinyMCE editor And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue" And I click on "Private files" "link" in the ".fp-repo-area" "css_element" And I click on "guess-the-answer.h5p" "link" @@ -55,7 +55,7 @@ Feature: Use the TinyMCE editor to upload an h5p package | capability | permission | role | contextlevel | reference | | tiny/h5p:addembed | Prohibit | editingteacher | Course | C1 | When I am on the PageName1 "page activity editing" page logged in as teacher1 - Then "Configure H5P content" "button" should not exist + Then "Insert H5P content" "button" should not exist @javascript Scenario: When a user does not have the Upload H5P capability, they can embed but not upload H5P content with TinyMCE @@ -63,7 +63,7 @@ Feature: Use the TinyMCE editor to upload an h5p package | capability | permission | role | contextlevel | reference | | moodle/h5p:deploy | Prohibit | editingteacher | Course | C1 | When I am on the PageName1 "page activity editing" page logged in as teacher1 - And I click on the "Configure H5P content" button for the "Page content" TinyMCE editor + And I click on the "Insert H5P content" button for the "Page content" TinyMCE editor Then I should not see "H5P file upload" in the "Insert H5P content" "dialogue" And I should see "H5P URL" in the "Insert H5P content" "dialogue" And I should not see "H5P options" in the "Insert H5P content" "dialogue" @@ -74,7 +74,7 @@ Feature: Use the TinyMCE editor to upload an h5p package | user | admin | | filepath | h5p/tests/fixtures/drag.h5p | And I am on the "PageName1" "page activity editing" page logged in as "admin" - And I click on the "Configure H5P content" button for the "Page content" TinyMCE editor + And I click on the "Insert H5P content" button for the "Page content" TinyMCE editor And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue" And I click on "Private files" "link" in the ".fp-repo-area" "css_element" And I click on "drag" "link" @@ -88,7 +88,7 @@ Feature: Use the TinyMCE editor to upload an h5p package And I switch to the main frame And I navigate to "Settings" in current page administration And I select the ".h5p-placeholder" "css_element" in the "Page content" TinyMCE editor - And I click on the "Configure H5P content" button for the "Page content" TinyMCE editor + And I click on the "Insert H5P content" button for the "Page content" TinyMCE editor And I set the field "H5P URL or file upload" to "https://moodle.h5p.com/content/1290772960722742119" And I click on "Insert H5P" "button" in the "Insert H5P content" "dialogue" And I wait "1" seconds @@ -103,7 +103,7 @@ Feature: Use the TinyMCE editor to upload an h5p package | user | admin | | filepath | h5p/tests/fixtures/guess-the-answer.h5p | And I am on the "PageName1" "page activity editing" page logged in as "admin" - And I click on the "Configure H5P content" button for the "Page content" TinyMCE editor + And I click on the "Insert H5P content" button for the "Page content" TinyMCE editor And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue" And I click on "Private files" "link" in the ".fp-repo-area" "css_element" And I click on "guess-the-answer.h5p" "link" @@ -116,7 +116,7 @@ Feature: Use the TinyMCE editor to upload an h5p package And I switch to the main frame And I navigate to "Settings" in current page administration And I select the ".h5p-placeholder" "css_element" in the "Page content" TinyMCE editor - And I click on the "Configure H5P content" button for the "Page content" TinyMCE editor + And I click on the "Insert H5P content" button for the "Page content" TinyMCE editor And I click on "H5P options" "link" And I click on "Allow download" "checkbox" And I click on "Insert H5P" "button" in the "Insert H5P content" "dialogue" @@ -130,7 +130,7 @@ Feature: Use the TinyMCE editor to upload an h5p package And I switch to the main frame And I navigate to "Settings" in current page administration And I select the ".h5p-placeholder" "css_element" in the "Page content" TinyMCE editor - And I click on the "Configure H5P content" button for the "Page content" TinyMCE editor + And I click on the "Insert H5P content" button for the "Page content" TinyMCE editor And I click on "Allow download" "checkbox" And I click on "Embed button" "checkbox" And I click on "Copyright button" "checkbox" @@ -147,7 +147,7 @@ Feature: Use the TinyMCE editor to upload an h5p package Scenario: H5P options are ignored for H5P URLs Given I change window size to "large" And I am on the PageName1 "page activity editing" page logged in as admin - And I click on the "Configure H5P content" button for the "Page content" TinyMCE editor + And I click on the "Insert H5P content" button for the "Page content" TinyMCE editor And I set the field "H5P URL or file upload" to "https://moodle.h5p.com/content/1291366510035871129" And I click on "H5P options" "link" And I click on "Embed button" "checkbox" @@ -160,7 +160,7 @@ Feature: Use the TinyMCE editor to upload an h5p package And I switch to the main frame And I navigate to "Settings" in current page administration And I select the ".h5p-placeholder" "css_element" in the "Page content" TinyMCE editor - And I click on the "Configure H5P content" button for the "Page content" TinyMCE editor + And I click on the "Insert H5P content" button for the "Page content" TinyMCE editor And I click on "H5P options" "link" And "input[aria-label=\"Embed button\"]:not([checked=checked])" "css_element" should exist @@ -176,7 +176,7 @@ Feature: Use the TinyMCE editor to upload an h5p package | user | admin | | filepath | h5p/tests/fixtures/guess-the-answer.h5p | And I am on the "PageName1" "page activity editing" page logged in as "admin" - And I click on the "Configure H5P content" button for the "Page content" TinyMCE editor + And I click on the "Insert H5P content" button for the "Page content" TinyMCE editor And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue" And I click on "Private files" "link" in the ".fp-repo-area" "css_element" And I click on "guess-the-answer.h5p" "link" diff --git a/mod/data/tests/behat/add_entries.feature b/mod/data/tests/behat/add_entries.feature index 266a1e69921..4102aa9e4db 100644 --- a/mod/data/tests/behat/add_entries.feature +++ b/mod/data/tests/behat/add_entries.feature @@ -81,7 +81,7 @@ Feature: Users can add entries to database activities And I am on the "Course 1" course page logged in as teacher1 When I click on "Test database name" "link" And I click on "Add entry" "button" - And I click on "Configure H5P content" "button" + And I click on "Insert H5P content" "button" Then I should see "Browse repositories..." in the "Insert H5P content" "dialogue" @javascript diff --git a/mod/forum/tests/behat/h5p_inline_editing_content.feature b/mod/forum/tests/behat/h5p_inline_editing_content.feature index 76299cde349..c84d49bd977 100644 --- a/mod/forum/tests/behat/h5p_inline_editing_content.feature +++ b/mod/forum/tests/behat/h5p_inline_editing_content.feature @@ -35,7 +35,7 @@ Feature: Inline editing H5P content in mod_forum Scenario: Edit H5P content from a forum intro using copy to content bank file Given I am on the "ForumName1" "forum activity editing" page logged in as admin # Add H5P content to the forum description. - And I click on "Configure H5P content" "button" in the "#fitem_id_introeditor" "css_element" + And I click on "Insert H5P content" "button" in the "#fitem_id_introeditor" "css_element" And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue" And I select "Content bank" repository in file picker And I click on "Greeting card" "file" in repository content area @@ -82,7 +82,7 @@ Feature: Inline editing H5P content in mod_forum # Add H5P content to a forum post as admin. And I set the following fields to these values: | Subject | Forum post by admin | - And I click on "Configure H5P content" "button" in the "#fitem_id_message" "css_element" + And I click on "Insert H5P content" "button" in the "#fitem_id_message" "css_element" And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue" And I select "Content bank" repository in file picker And I click on "Greeting card" "file" in repository content area