Skip to content

Commit fee90d4

Browse files
committed
MOBILE-4470 behat: Fix Chat and Survey tests
They have been disabled in new Moodle instances in MDL-80866
1 parent 7519ef7 commit fee90d4

File tree

6 files changed

+6
-1
lines changed

6 files changed

+6
-1
lines changed

src/addons/mod/chat/tests/behat/basic_usage.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Feature: Test basic usage of chat in app
1515
| user | course | role |
1616
| student1 | C1 | student |
1717
| student2 | C1 | student |
18+
And I enable "chat" "mod" plugin
1819
And the following "activities" exist:
1920
| activity | name | intro | course | idnumber | groupmode |
2021
| chat | Test chat name | Test chat | C1 | chat | 0 |

src/addons/mod/chat/tests/behat/navigation.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Feature: Test chat navigation
1313
| user | course | role |
1414
| student1 | C1 | student |
1515
| student2 | C1 | student |
16+
And I enable "chat" "mod" plugin
1617
And the following "activities" exist:
1718
| activity | name | intro | course | idnumber | groupmode |
1819
| chat | Test chat name | Test chat | C1 | chat | 0 |

src/addons/mod/survey/tests/behat/basic_usage.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Feature: Test basic usage of survey activity in app
1616
| user | course | role |
1717
| student1 | C1 | student |
1818
| teacher1 | C1 | editingteacher |
19+
And I enable "survey" "mod" plugin
1920
And the following "activities" exist:
2021
| activity | name | intro | course | idnumber | groupmode |
2122
| survey | Test survey name | Test survey | C1 | survey | 0 |

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Feature: Test basic usage of one course in app
1717
| user | course | role |
1818
| teacher1 | C1 | editingteacher |
1919
| student1 | C1 | student |
20+
And I enable "chat" "mod" plugin
21+
And I enable "survey" "mod" plugin
2022
And the following "activities" exist:
2123
| activity | name | intro | course | idnumber | option | section |
2224
| choice | Choice course 1 | Test choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 1 |
@@ -345,7 +347,7 @@ Feature: Test basic usage of one course in app
345347
Scenario: Navigation between sections using the bottom arrows
346348
When I entered the course "Course 1" as "student1" in the app
347349
Then the header should be "Course 1" in the app
348-
And I should find "Test forum name" in the app
350+
And I should find "Test forum name" in the app
349351
And I should find "Test wiki name" in the app
350352
And I should find "Choice course 1" in the app
351353
And I should find "assignment" in the app

0 commit comments

Comments
 (0)