MDL-78129 communication_matrix: Remove Behat test

This change requires a change in the mock server which we don't have
    time to do before Beta. This will be done in the coming days and this
    commit content reverted.
This one will be re-introduced in MDL-79460
This commit is contained in:
Huong Nguyen 2023-09-22 13:17:00 +07:00
parent af14974b13
commit 9a517653b1
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

View File

@ -1,50 +0,0 @@
@communication @communication_matrix @javascript
Feature: Communication matrix
Access the Matrix room using the link provided
As a student or a teacher
Background: Make sure the mock server is initialized and a course is created
Given a Matrix mock server is configured
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@example.com |
And the following "courses" exist:
| fullname | shortname | category | selectedcommunication | communicationroomname |
| Test course | Test course | 0 | communication_matrix | matrixroom |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | Test course | editingteacher |
| student1 | Test course | student |
# Skipping while we update the Mock Server with the new route.
# And I run all adhoc tasks
# Scenario: I can access the matrix room using the room link icon as a teacher
# Given I am on the "Test course" "Course" page logged in as "teacher1"
# Then ".btn-footer-communication" "css_element" should be visible
# And I change window size to "mobile"
# Then ".btn-footer-communication" "css_element" should not be visible
# # You should not be able to see the following line unless you are in Mobile view.
# # Behat is currently setup to always show footer links.
# And ".footer-link-communication" "css_element" should be visible
#
# Scenario: I can access the matrix room using the room link icon as a student
# Given I am on the "Test course" "Course" page logged in as "student1"
# Then ".btn-footer-communication" "css_element" should be visible
# And I change window size to "mobile"
# Then ".btn-footer-communication" "css_element" should not be visible
# # You should not be able to see the following line unless you are in Mobile view.
# # Behat is currently setup to always show footer links.
# And ".footer-link-communication" "css_element" should be visible
#
# Scenario: I cannot see the matrix room link when communication provider is disabled
# Given I am on the "Test course" "Course" page logged in as "teacher1"
# When I navigate to "Communication" in current page administration
# And I set the following fields to these values:
# | selectedcommunication | none |
# And I press "Save changes"
# And I run all adhoc tasks
# And I reload the page
# Then ".btn-footer-communication" "css_element" should not be visible
# And I change window size to "mobile"
# And ".footer-link-communication" "css_element" should not be visible