AutorÃa | Ultima modificación | Ver Log |
@core @core_completion @javascriptFeature: Show activity completion status or activity completion configuration on the course pageIn order to understand the configuration or status of an activity's completionAs a userI need to see the appropriate completion information for each activity in the course homepageBackground:Given the following "courses" exist:| fullname | shortname | category | enablecompletion || Course 1 | C1 | 0 | 1 |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 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 studentsGiven I am on the "Course 1" course page logged in as student1And 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 teachersGiven I am on the "Course 1" course page logged in as teacher1And "Test forum name" should have the "Mark as done" completion conditionAnd "Test assignment name" should have the "View" completion conditionAnd there should be no completion information shown for "Test quiz name"And I am on "Course 1" course homepage with editing mode onAnd "Test forum name" should have the "Mark as done" completion conditionAnd "Test assignment name" should have the "View" completion conditionAnd there should be no completion information shown for "Test quiz name"Scenario: Show completion configuration to non-editing teachersGiven I am on the "Course 1" course page logged in as teacher2And "Test forum name" should have the "Mark as done" completion conditionAnd "Test assignment name" should have the "View" completion conditionAnd there should be no completion information shown for "Test quiz name"