Rev 1 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
@communication @communication_customlink @javascriptFeature: Communication custom linkIn order to facilitate easy access to an existing communication platformAs a teacherI need to be able to make a custom communication link available in my courseBackground: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 || Course 1 | C1 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || student1 | C1 | student |And the following config values are set as admin:| enablecommunicationsubsystem | 1 |Scenario: As a teacher I can configure a custom communication provider for my courseGiven I am on the "Course 1" "Course" page logged in as "teacher1"And "Chat to course participants" "button" should not be visibleWhen I navigate to "Communication" in current page administrationAnd the "Provider" select box should contain "Custom link"And I should not see "Custom link URL"And I select "Custom link" from the "Provider" singleselectAnd I should see "Custom link URL"And I set the following fields to these values:| communication_customlinkroomname | Test URL || customlinkurl | #wwwroot#/communication/provider/customlink/tests/behat/fixtures/custom_link_test_page.php |And I press "Save changes"Then "Chat to course participants" "button" should be visibleAnd I click on "Chat to course participants" "button"# Check the link hits the expected destination.And I switch to a second windowAnd I should see "Example messaging service - teacher1" in the "region-main" "region"And I close all opened windows# Ensure any communication subsystem tasks have no impact on availability.And I run all adhoc tasksAnd I am on the "Course 1" course pageAnd "Chat to course participants" "button" should be visibleAnd I click on "Chat to course participants" "button"And I switch to a second windowAnd I should see "Example messaging service - teacher1" in the "region-main" "region"And I close all opened windowsAnd I log out# Confirm student also has access to the custom link.And I am on the "Course 1" "Course" page logged in as "student1"And "Chat to course participants" "button" should be visibleAnd I click on "Chat to course participants" "button"And I switch to a second windowAnd I should see "Example messaging service - student1" in the "region-main" "region"Scenario: As a teacher I can disable and re-enable a custom communication provider for my courseGiven I am on the "Course 1" "Course" page logged in as "teacher1"And "Chat to course participants" "button" should not be visibleWhen I navigate to "Communication" in current page administrationAnd I select "Custom link" from the "Provider" singleselectAnd I set the following fields to these values:| communication_customlinkroomname | Test URL || customlinkurl | #wwwroot#/communication/provider/customlink/tests/behat/fixtures/custom_link_test_page.php |And I press "Save changes"And "Chat to course participants" "button" should be visibleAnd I run all adhoc tasksAnd I navigate to "Communication" in current page administrationAnd I select "None" from the "Provider" singleselectAnd I press "Save changes"And "Chat to course participants" "button" should not be visibleAnd I run all adhoc tasksAnd I am on the "Course 1" course pageAnd "Chat to course participants" "button" should not be visibleAnd I navigate to "Communication" in current page administrationAnd I select "Custom link" from the "Provider" singleselectAnd I set the following fields to these values:| communication_customlinkroomname | Test URL || customlinkurl | #wwwroot#/communication/provider/customlink/tests/behat/fixtures/custom_link_test_page.php |And I press "Save changes"And "Chat to course participants" "button" should be visibleAnd I run all adhoc tasksAnd I am on the "Course 1" course pageAnd "Chat to course participants" "button" should be visibleAnd I click on "Chat to course participants" "button"And I switch to a second windowAnd I should see "Example messaging service - teacher1" in the "region-main" "region"