MDL-38486 behat: New test
Section highlighting can be turned off correctly using the toggle highlighting icon. According to MDLQA-1591, MDLQA-1592, MDLQA-1593, MDLQA-1594 and MDLQA-1595
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
@core_course @_cross_browser
|
||||
Feature: Topic's course sections highlighting
|
||||
In order to highlight parts of the course to students
|
||||
As a teacher
|
||||
I need to highlight one specific section
|
||||
|
||||
@javascript
|
||||
Scenario: Highlight a topic's course section
|
||||
Given the following "users" exists:
|
||||
| username | firstname | lastname | email |
|
||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||
| student1 | Student | 1 | student1@asd.com |
|
||||
And the following "courses" exists:
|
||||
| fullname | shortname | format |
|
||||
| Course 1 | C1 | topics |
|
||||
And the following "course enrolments" exists:
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I turn editing mode on
|
||||
When I turn section "1" highlighting on
|
||||
Then section "1" should be highlighted
|
||||
And I turn section "2" highlighting on
|
||||
And section "2" should be highlighted
|
||||
And section "1" should not be highlighted
|
||||
And I am on homepage
|
||||
And I follow "Course 1"
|
||||
And section "2" should be highlighted
|
||||
And section "1" should not be highlighted
|
||||
And I turn section "2" highlighting off
|
||||
And section "2" should not be highlighted
|
||||
And I reload the page
|
||||
And section "2" should not be highlighted
|
||||
And I am on homepage
|
||||
And I follow "Course 1"
|
||||
And section "2" should not be highlighted
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I follow "Course 1"
|
||||
And section "1" should not be highlighted
|
||||
And section "2" should not be highlighted
|
||||
Reference in New Issue
Block a user