X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/completion/tests/behat
home
/
cbholdings
/
pasukulu
/
completion
/
tests
/
behat
/
📁
..
📄
activity_completion_criteria.feature
(8.06 KB)
📄
backup_restore_completion.feature
(3.22 KB)
📄
behat_completion.php
(19.11 KB)
📄
bulk_edit_activity_completion.feature
(6.73 KB)
📄
completion_course_page_display.feature
(3.12 KB)
📄
completion_no_calendar_capabilities.feature
(1.79 KB)
📄
completion_other_courses.feature
(1.48 KB)
📄
course_completion_activity_criteria.feature
(9.79 KB)
📄
custom_completion_display_conditions.feature
(4.52 KB)
📄
default_activity_completion.feature
(3.15 KB)
📄
enable_completion_on_pass_grade.feature
(2.81 KB)
📄
enable_completion_on_view_and_grade.feature
(5.1 KB)
📄
enable_manual_complete_mark.feature
(1.76 KB)
📄
passgrade_completion_criteria_gradeitem_visibility.feature
(8.28 KB)
📄
restrict_activity_by_date.feature
(2.84 KB)
📄
restrict_activity_by_grade.feature
(2.88 KB)
📄
restrict_section_availability.feature
(4.52 KB)
📄
teacher_manual_completion.feature
(1.97 KB)
Editing: completion_course_page_display.feature
@core @core_completion Feature: Show activity completion status or activity completion configuration on the course page In order to understand the configuration or status of an activity's completion As a user I need to see the appropriate completion information for each activity in the course homepage Background: Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | First | teacher1@example.com | | teacher2 | Teacher | Second | teacher2@example.com | | student1 | Student | First | student1@example.com | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | teacher2 | C1 | teacher | | student1 | C1 | student | And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I navigate to "Settings" in current page administration And I set the following fields to these values: | Enable completion tracking | Yes | And I press "Save and display" And the following "activities" exist: | activity | course | idnumber | name | intro | completion | completionview | completionexpected | | assign | C1 | assign1 | Test assignment name | Test assignment description | 2 | 1 | 0 | | quiz | C1 | quiz1 | Test quiz name | Test quiz description | 0 | 0 | 0 | | forum | C1 | forum1 | Test forum name | | 1 | 0 | 0 | Scenario: Show completion status to students Given I am on the "Course 1" course page logged in as student1 And the manual completion button of "Test forum name" is displayed as "Mark as done" And the "View" completion condition of "Test assignment name" is displayed as "todo" And there should be no completion information shown for "Test quiz name" Scenario: Show completion configuration to editing teachers Given I am on the "Course 1" course page logged in as teacher1 And the manual completion button for "Test forum name" should be disabled And "Test assignment name" should have the "View" completion condition And there should be no completion information shown for "Test quiz name" And I am on "Course 1" course homepage with editing mode on And the manual completion button for "Test forum name" should be disabled And "Test assignment name" should have the "View" completion condition And there should be no completion information shown for "Test quiz name" Scenario: Show completion configuration to non-editing teachers Given I am on the "Course 1" course page logged in as teacher2 And the manual completion button for "Test forum name" should be disabled And "Test assignment name" should have the "View" completion condition And there should be no completion information shown for "Test quiz name"
Upload File
Create Folder