X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/course/format/topics/tests/behat
home
/
cbholdings
/
pasukulu
/
course
/
format
/
topics
/
tests
/
behat
/
📁
..
📄
edit_delete_sections.feature
(4.82 KB)
📄
highlight_sections.feature
(2.34 KB)
Editing: highlight_sections.feature
@format @format_topics Feature: Sections can be highlighted In order to mark sections As a teacher I need to highlight and unhighlight sections Background: Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@example.com | And the following "courses" exist: | fullname | shortname | format | coursedisplay | numsections | | Course 1 | C1 | topics | 0 | 5 | And the following "activities" exist: | activity | name | intro | course | idnumber | section | | assign | Test assignment name | Test assignment description | C1 | assign1 | 0 | | book | Test book name | Test book description | C1 | book1 | 1 | | chat | Test chat name | Test chat description | C1 | chat1 | 4 | | choice | Test choice name | Test choice description | C1 | choice1 | 5 | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on @javascript Scenario: Highlight a section When I open section "2" edit menu And I click on "Highlight" "link" in the "Topic 2" "section" Then I should see "Highlighted" in the "Topic 2" "section" @javascript Scenario: Highlight a section when another section is already highlighted Given I open section "3" edit menu And I click on "Highlight" "link" in the "Topic 3" "section" And I should see "Highlighted" in the "Topic 3" "section" When I open section "2" edit menu And I click on "Highlight" "link" in the "Topic 2" "section" Then I should see "Highlighted" in the "Topic 2" "section" And I should not see "Highlighted" in the "Topic 3" "section" @javascript Scenario: Unhighlight a section Given I open section "3" edit menu And I click on "Highlight" "link" in the "Topic 3" "section" And I should see "Highlighted" in the "Topic 3" "section" When I open section "3" edit menu And I click on "Remove highlight" "link" in the "Topic 3" "section" Then I should not see "Highlighted" in the "Topic 3" "section"
Upload File
Create Folder