| Línea 1... |
Línea 1... |
| 1 |
@core @core_courseformat
|
1 |
@core @core_courseformat
|
| 2 |
Feature: Varify section visibility interface
|
2 |
Feature: Verify section visibility interface
|
| 3 |
In order to edit the course sections visibility
|
3 |
In order to edit the course sections visibility
|
| 4 |
As a teacher
|
4 |
As a teacher
|
| 5 |
I need to be able to see the updated visibility information
|
5 |
I need to be able to see the updated visibility information
|
| Línea 6... |
Línea 6... |
| 6 |
|
6 |
|
| Línea 92... |
Línea 92... |
| 92 |
And I click on "Show on course page" "link" in the "[data-region='sectionbadges']" "css_element"
|
92 |
And I click on "Show on course page" "link" in the "[data-region='sectionbadges']" "css_element"
|
| 93 |
Then I should not see "Hidden from students" in the "[data-region='sectionbadges']" "css_element"
|
93 |
Then I should not see "Hidden from students" in the "[data-region='sectionbadges']" "css_element"
|
| 94 |
And I open the action menu in "page-header" "region"
|
94 |
And I open the action menu in "page-header" "region"
|
| 95 |
And I choose "Hide" in the open action menu
|
95 |
And I choose "Hide" in the open action menu
|
| 96 |
And I should see "Hidden from students" in the "[data-region='sectionbadges']" "css_element"
|
96 |
And I should see "Hidden from students" in the "[data-region='sectionbadges']" "css_element"
|
| - |
|
97 |
|
| - |
|
98 |
@javascript
|
| - |
|
99 |
Scenario: The section action menu should be updated properly when a section is hidden/shown
|
| - |
|
100 |
Given I open section "1" edit menu
|
| - |
|
101 |
When I choose "Hide" in the open action menu
|
| - |
|
102 |
Then I should see "Hidden from students" in the "Section 1" "section"
|
| - |
|
103 |
And I open section "1" edit menu
|
| - |
|
104 |
And I should see "Show" in the "Section 1" "section"
|
| - |
|
105 |
And I press the escape key
|
| - |
|
106 |
# Confirm the Section 2 menu hasn't been updated.
|
| - |
|
107 |
And I open section "2" edit menu
|
| - |
|
108 |
And I should see "Hide" in the "Section 2" "section"
|