Skip to content

Commit

Permalink
MOBILE-4653 behat: Disable chat and survey tests on LMS 5.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
albertgasset committed Dec 11, 2024
1 parent 0bd4617 commit d721f0b
Show file tree
Hide file tree
Showing 9 changed files with 517 additions and 52 deletions.
2 changes: 1 addition & 1 deletion src/addons/mod/chat/tests/behat/basic_usage.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@addon_mod_chat @app @javascript
@addon_mod_chat @app @javascript @lms_upto4.5
Feature: Test basic usage of chat in app
As a student
I need basic chat functionality to work
Expand Down
2 changes: 1 addition & 1 deletion src/addons/mod/chat/tests/behat/navigation.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@addon_mod_chat @app @javascript
@addon_mod_chat @app @javascript @lms_upto4.5
Feature: Test chat navigation

Background:
Expand Down
2 changes: 1 addition & 1 deletion src/addons/mod/survey/tests/behat/basic_usage.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@addon_mod_survey @app @javascript
@addon_mod_survey @app @javascript @lms_upto4.5
Feature: Test basic usage of survey activity in app
In order to participate in surveys while using the mobile app
As a student
Expand Down
513 changes: 513 additions & 0 deletions src/core/features/course/tests/behat/basic_usage-405.feature

Large diffs are not rendered by default.

50 changes: 1 addition & 49 deletions src/core/features/course/tests/behat/basic_usage.feature
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ Feature: Test basic usage of one course in app
| user | course | role |
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And I enable "chat" "mod" plugin
And I enable "survey" "mod" plugin
And the following "activities" exist:
| activity | name | intro | course | idnumber | option | section |
| choice | Choice course 1 | Test choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 1 |
Expand All @@ -29,9 +27,6 @@ Feature: Test basic usage of one course in app
And the following "activities" exist:
| activity | name | intro | course | idnumber | groupmode | assessed | scale[modgrade_type] |
| forum | Test forum name | Test forum | C1 | forum | 0 | 5 | Point |
And the following "activities" exist:
| activity | name | intro | course | idnumber | groupmode | section |
| chat | Test chat name | Test chat | C1 | chat | 0 | 2 |
And the following "activities" exist:
| activity | name | intro | course | idnumber | section |
| data | Web links | Useful links | C1 | data1 | 4 |
Expand Down Expand Up @@ -61,9 +56,6 @@ Feature: Test basic usage of one course in app
| question | page |
| TF1 | 1 |
| TF2 | 2 |
And the following "activities" exist:
| activity | name | intro | course | idnumber | groupmode | section |
| survey | Test survey name | Test survey | C1 | survey | 0 | 1 |
And the following "activities" exist:
| activity | name | intro | course | idnumber | groupmode |
| wiki | Test wiki name | Test wiki | C1 | wiki | 0 |
Expand Down Expand Up @@ -102,8 +94,6 @@ Feature: Test basic usage of one course in app
And I should find "Choice course 1" in the app
And I should find "assignment" in the app
And I should find "Test external name" in the app
And I should find "Test survey name" in the app
And I should find "Test chat name" in the app
And I should find "Quiz 1" in the app
And I should find "Test scorm name" in the app
And I should find "Test feedback name" in the app
Expand Down Expand Up @@ -135,10 +125,6 @@ Feature: Test basic usage of one course in app
And I press "Test forum name" in the app
Then the header should be "Test forum name" in the app

When I go back in the app
And I press "Test chat name" in the app
Then the header should be "Test chat name" in the app

When I go back in the app
And I press "Web links" in the app
Then the header should be "Web links" in the app
Expand All @@ -161,10 +147,6 @@ Feature: Test basic usage of one course in app
And I press "Quiz 1" in the app
Then the header should be "Quiz 1" in the app

When I go back in the app
And I press "Test survey name" in the app
Then the header should be "Test survey name" in the app

When I go back in the app
And I press "Test wiki name" in the app
Then the header should be "Test wiki name" in the app
Expand All @@ -182,7 +164,6 @@ Feature: Test basic usage of one course in app
Then the header should be "Test workshop name" in the app
And the following events should have been logged for "student1" in the app:
| name | activity | activityname | course |
| \mod_survey\event\course_module_viewed | survey | Test survey name | Course 1 |
| \mod_wiki\event\course_module_viewed | wiki | Test wiki name | Course 1 |
| \mod_lesson\event\course_module_viewed | lesson | Test lesson name | Course 1 |
| \mod_scorm\event\course_module_viewed | scorm | Test scorm name | Course 1 |
Expand All @@ -191,7 +172,6 @@ Feature: Test basic usage of one course in app
| \mod_assign\event\course_module_viewed | assign | assignment | Course 1 |
| \mod_assign\event\submission_status_viewed | assign | assignment | Course 1 |
| \mod_forum\event\course_module_viewed | forum | Test forum name | Course 1 |
| \mod_chat\event\course_module_viewed | chat | Test chat name | Course 1 |
| \mod_data\event\course_module_viewed | data | Web links | Course 1 |
| \mod_lti\event\course_module_viewed | lti | Test external name | Course 1 |
| \mod_feedback\event\course_module_viewed | feedback | Test feedback name | Course 1 |
Expand All @@ -207,8 +187,6 @@ Feature: Test basic usage of one course in app
And I should find "Choice course 1" in the app
And I should find "assignment" in the app
And I should find "Test external name" in the app
And I should find "Test survey name" in the app
And I should find "Test chat name" in the app
And I should find "Quiz 1" in the app
And I should find "Test scorm name" in the app
And I should find "Test feedback name" in the app
Expand All @@ -223,13 +201,11 @@ Feature: Test basic usage of one course in app
And I should find "Test wiki name" in the app
But I should not find "Choice course 1" in the app
And I should not find "assignment" in the app
And I should not find "Test chat name" in the app
And I should not find "Web links" in the app
And I should not find "Test external name" in the app
And I should not find "Test feedback name" in the app
And I should not find "Test glossary" in the app
And I should not find "Quiz 1" in the app
And I should not find "Test survey name" in the app
And I should not find "Test lesson name" in the app
And I should not find "Test scorm name" in the app
And I should not find "Test workshop name" in the app
Expand All @@ -247,9 +223,7 @@ Feature: Test basic usage of one course in app
Then I should find "Choice course 1" in the app
And I should find "assignment" in the app
And I should find "Test external name" in the app
And I should find "Test survey name" in the app
But I should not find "Test forum name" in the app
And I should not find "Test chat name" in the app
And I should not find "Web links" in the app
And I should not find "Test feedback name" in the app
And I should not find "Test glossary" in the app
Expand All @@ -270,15 +244,10 @@ Feature: Test basic usage of one course in app
And I press "Test external name" in the app
Then the header should be "Test external name" in the app

When I go back in the app
And I press "Test survey name" in the app
Then the header should be "Test survey name" in the app

When I go back in the app
And I press "Course index" in the app
And I press "Section 2" in the app
Then I should find "Quiz 1" in the app
And I should find "Test chat name" in the app
And I should find "Test scorm name" in the app
But I should not find "Choice course 1" in the app
And I should not find "assignment" in the app
Expand All @@ -287,16 +256,11 @@ Feature: Test basic usage of one course in app
And I should not find "Test external name" in the app
And I should not find "Test feedback name" in the app
And I should not find "Test glossary" in the app
And I should not find "Test survey name" in the app
And I should not find "Test wiki name" in the app
And I should not find "Test lesson name" in the app
And I should not find "Test workshop name" in the app

When I press "Test chat name" in the app
Then the header should be "Test chat name" in the app

When I go back in the app
And I press "Quiz 1" in the app
When I press "Quiz 1" in the app
Then the header should be "Quiz 1" in the app

When I go back in the app
Expand All @@ -312,12 +276,10 @@ Feature: Test basic usage of one course in app
But I should not find "Choice course 1" in the app
And I should not find "assignment" in the app
And I should not find "Test forum name" in the app
And I should not find "Test chat name" in the app
And I should not find "Web links" in the app
And I should not find "Test external name" in the app
And I should not find "Test glossary" in the app
And I should not find "Quiz 1" in the app
And I should not find "Test survey name" in the app
And I should not find "Test wiki name" in the app
And I should not find "Test scorm name" in the app

Expand All @@ -339,12 +301,10 @@ Feature: Test basic usage of one course in app
But I should not find "Choice course 1" in the app
And I should not find "assignment" in the app
And I should not find "Test forum name" in the app
And I should not find "Test chat name" in the app
And I should not find "Test external name" in the app
And I should not find "Test feedback name" in the app
And I should not find "Test glossary" in the app
And I should not find "Quiz 1" in the app
And I should not find "Test survey name" in the app
And I should not find "Test wiki name" in the app
And I should not find "Test lesson name" in the app
And I should not find "Test scorm name" in the app
Expand All @@ -360,12 +320,10 @@ Feature: Test basic usage of one course in app
But I should not find "Choice course 1" in the app
And I should not find "assignment" in the app
And I should not find "Test forum name" in the app
And I should not find "Test chat name" in the app
And I should not find "Web links" in the app
And I should not find "Test external name" in the app
And I should not find "Test feedback name" in the app
And I should not find "Quiz 1" in the app
And I should not find "Test survey name" in the app
And I should not find "Test wiki name" in the app
And I should not find "Test lesson name" in the app
And I should not find "Test scorm name" in the app
Expand All @@ -383,8 +341,6 @@ Feature: Test basic usage of one course in app
And I should find "Choice course 1" in the app
And I should find "assignment" in the app
And I should find "Test external name" in the app
And I should find "Test survey name" in the app
And I should find "Test chat name" in the app
And I should find "Quiz 1" in the app
And I should find "Test scorm name" in the app
And I should find "Test feedback name" in the app
Expand Down Expand Up @@ -476,8 +432,6 @@ Feature: Test basic usage of one course in app
And I should find "Choice course 1" in the app
And I should find "assignment" in the app
And I should find "Test external name" in the app
And I should find "Test survey name" in the app
And I should find "Test chat name" in the app
And I should find "Quiz 1" in the app
And I should find "Test scorm name" in the app
And I should find "Test feedback name" in the app
Expand All @@ -498,8 +452,6 @@ Feature: Test basic usage of one course in app
And I should find "Choice course 1" in the app
And I should find "assignment" in the app
And I should find "Test external name" in the app
And I should find "Test survey name" in the app
And I should find "Test chat name" in the app
And I should find "Quiz 1" in the app
And I should find "Test scorm name" in the app
And I should find "Test feedback name" in the app
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d721f0b

Please sign in to comment.