diff --git a/src/tests/behat/open_files.feature b/src/tests/behat/open_files.feature index 9b7885aff..5711b8dda 100644 --- a/src/tests/behat/open_files.feature +++ b/src/tests/behat/open_files.feature @@ -59,13 +59,12 @@ Feature: It opens files properly. Then I should find "This file may not work as expected on this device" in the app Scenario: Open a PDF embedded using an iframe - # Using http://webserver directly because $WWWROOT cannot be used in generators or when creating the page manually. Given the following "activities" exist: | activity | idnumber | course | name | content | - | page | page1 | C1 | Page with embedded PDF | | + | page | page1 | C1 | Page with embedded PDF | | | page | page2 | C1 | Page with embedded web | | And the following config values are set as admin: - | custommenuitems | PDF item\|http://webserver/local/moodleappbehat/fixtures/dummy.pdf\|embedded | tool_mobile | + | custommenuitems | PDF item\|#wwwroot#/local/moodleappbehat/fixtures/dummy.pdf\|embedded | tool_mobile | And I entered the course "Course 1" as "student1" in the app When I press "Page with embedded PDF" in the app