MOBILE-4470 behat: Fix Chat and Survey tests

They have been disabled in new Moodle instances in MDL-80866
main
Noel De Martin 2024-03-05 13:10:50 +01:00
parent 7519ef7bdf
commit fee90d49de
6 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,7 @@ Feature: Test basic usage of chat in app
| user | course | role | | user | course | role |
| student1 | C1 | student | | student1 | C1 | student |
| student2 | C1 | student | | student2 | C1 | student |
And I enable "chat" "mod" plugin
And the following "activities" exist: And the following "activities" exist:
| activity | name | intro | course | idnumber | groupmode | | activity | name | intro | course | idnumber | groupmode |
| chat | Test chat name | Test chat | C1 | chat | 0 | | chat | Test chat name | Test chat | C1 | chat | 0 |

View File

@ -13,6 +13,7 @@ Feature: Test chat navigation
| user | course | role | | user | course | role |
| student1 | C1 | student | | student1 | C1 | student |
| student2 | C1 | student | | student2 | C1 | student |
And I enable "chat" "mod" plugin
And the following "activities" exist: And the following "activities" exist:
| activity | name | intro | course | idnumber | groupmode | | activity | name | intro | course | idnumber | groupmode |
| chat | Test chat name | Test chat | C1 | chat | 0 | | chat | Test chat name | Test chat | C1 | chat | 0 |

View File

@ -16,6 +16,7 @@ Feature: Test basic usage of survey activity in app
| user | course | role | | user | course | role |
| student1 | C1 | student | | student1 | C1 | student |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
And I enable "survey" "mod" plugin
And the following "activities" exist: And the following "activities" exist:
| activity | name | intro | course | idnumber | groupmode | | activity | name | intro | course | idnumber | groupmode |
| survey | Test survey name | Test survey | C1 | survey | 0 | | survey | Test survey name | Test survey | C1 | survey | 0 |

View File

@ -17,6 +17,8 @@ Feature: Test basic usage of one course in app
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
| student1 | C1 | student | | student1 | C1 | student |
And I enable "chat" "mod" plugin
And I enable "survey" "mod" plugin
And the following "activities" exist: And the following "activities" exist:
| activity | name | intro | course | idnumber | option | section | | activity | name | intro | course | idnumber | option | section |
| choice | Choice course 1 | Test choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 1 | | 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
Scenario: Navigation between sections using the bottom arrows Scenario: Navigation between sections using the bottom arrows
When I entered the course "Course 1" as "student1" in the app When I entered the course "Course 1" as "student1" in the app
Then the header should be "Course 1" in the app Then the header should be "Course 1" in the app
And I should find "Test forum name" in the app And I should find "Test forum name" in the app
And I should find "Test wiki name" in the app And I should find "Test wiki name" in the app
And I should find "Choice course 1" in the app And I should find "Choice course 1" in the app
And I should find "assignment" in the app And I should find "assignment" in the app