Skip to content

Commit 989a513

Browse files
MOBILE-4515 module-summary: Add behat tests
1 parent 80f71a7 commit 989a513

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/core/features/course/tests/behat/disabled_features.feature

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,14 @@ Feature: Test disabled text is shown when opening a disabled activity.
290290
Then the header should be "Test workshop name" in the app
291291
And I should find "Test workshop description" in the app
292292
And I should find "This content is not available in the app" in the app
293+
294+
Scenario: View activity info download button
295+
Given the following "activities" exist:
296+
| activity | course | name | intro | content | showdescription |
297+
| page | C1 | Test page name | Test page description | CONTENT | 1 |
298+
And the following config values are set as admin:
299+
| disabledfeatures | NoDelegate_CoreOffline | tool_mobile |
300+
When I entered the course "Course 1" as "student1" in the app
301+
And I press "Test page name" in the app
302+
And I press "Information" "ion-button" in the app
303+
Then I should not find "Download" in the app

0 commit comments

Comments
 (0)