From 5a8199304a12ec77b167efd6dc2cd1406c23fb80 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 31 Jan 2024 10:30:16 +0100 Subject: [PATCH] MOBILE-4173 behat: Don't hardcode webserver in embedded PDF test --- src/tests/behat/open_files.feature | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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