File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,12 @@ Feature: It opens files properly.
59
59
Then I should find "This file may not work as expected on this device" in the app
60
60
61
61
Scenario : Open a PDF embedded using an iframe
62
- # Using http://webserver directly because $WWWROOT cannot be used in generators or when creating the page manually.
63
62
Given the following "activities" exist:
64
63
| activity | idnumber | course | name | content |
65
- | page | page1 | C1 | Page with embedded PDF | <iframe src ="http :// webserver /local /moodleappbehat /fixtures /dummy .pdf " width ="100 %" height ="500 "></iframe > |
64
+ | page | page1 | C1 | Page with embedded PDF | <iframe src ="# wwwroot # /local /moodleappbehat /fixtures /dummy .pdf " width ="100 %" height ="500 "></iframe > |
66
65
| page | page2 | C1 | Page with embedded web | <iframe src ="https ://moodle .org " width ="100 %" height ="500 " data -open -external ="true "></iframe > |
67
66
And the following config values are set as admin:
68
- | custommenuitems | PDF item \|http :// webserver /local /moodleappbehat /fixtures /dummy .pdf \|embedded | tool_mobile |
67
+ | custommenuitems | PDF item \|# wwwroot # /local /moodleappbehat /fixtures /dummy .pdf \|embedded | tool_mobile |
69
68
And I entered the course "Course 1" as "student1" in the app
70
69
71
70
When I press "Page with embedded PDF" in the app
You can’t perform that action at this time.
0 commit comments