MDL-72036 atto_h5p: Random error with external URL
authorSara Arjona <sara@moodle.com>
Fri, 2 Jul 2021 06:42:57 +0000 (08:42 +0200)
committerSara Arjona <sara@moodle.com>
Tue, 13 Jul 2021 06:36:33 +0000 (08:36 +0200)
After a major upgrade was done in h5p.com, some random errors appeared
in the "H5P options are ignored for H5P URLs" scenario.
They have been fixed replacing the URL for different (which should
load quicker). As we're checking external content, no other improvement
can be done on the Moodle site.

lib/editor/atto/plugins/h5p/tests/behat/h5p.feature

index 5e224f0..9205cc4 100644 (file)
@@ -211,16 +211,14 @@ Feature: Add h5ps to Atto
     And I follow "PageName1"
     And I navigate to "Edit settings" in current page administration
     And I click on "Insert H5P" "button" in the "#fitem_id_page" "css_element"
-    And I set the field with xpath "//input[@data-region='h5pfile']" to "https://moodle.h5p.com/content/1290752078589054689"
+    And I set the field with xpath "//input[@data-region='h5pfile']" to "https://moodle.h5p.com/content/1291366510035871129"
     And I click on "H5P options" "link"
     And I click on "Embed button" "checkbox"
     And I click on "Insert H5P" "button" in the "Insert H5P" "dialogue"
-    And I wait until the page is ready
     When I click on "Save and display" "button"
     Then ".h5p-placeholder" "css_element" should exist
-    And I wait until the page is ready
     And I switch to "h5pcontent" iframe
-    And I should see "History of strawberries"
+    And I should see "Far far away"
     And I should not see "Embed"
     And I switch to the main frame
     And I navigate to "Edit settings" in current page administration