AutorÃa | Ultima modificación | Ver Log |
@block @block_activity_resultsFeature: The activity results block doesn't displays student scores for unconfigured blockIn order to be display student scoresAs a userI need to see the activity results blockBackground:Given the following "users" exist:| username | firstname | lastname | email | idnumber || teacher1 | Teacher | 1 | teacher1@example.com | T1 |And the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |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 onScenario: Add the block to a the course with Javascript disabledGiven I add the "Activity results" blockThen I should see "Please configure this block and select which activity it should display results from." in the "Activity results" "block"@javascriptScenario: Add the block to a the course with Javascript enabledGiven I add the "Activity results" block to the default region with:| config_showbest | 3 |Then I should see "Please configure this block and select which activity it should display results from." in the "Activity results" "block"Scenario: Try to configure the block on the course page in a course without activitiesGiven I add the "Activity results" blockWhen I configure the "Activity results" blockAnd I should see "There are not yet any activities in this course."And I press "Save changes"Then I should see "Please configure this block and select which activity it should display results from." in the "Activity results" "block"Scenario: Try to configure the block on a resource page in a course without activitiesGiven the following "activity" exists:| activity | page || course | C1 || idnumber | 0001 || name | Test page name || intro | Test page description || section | 1 || content | This is a page |And I am on "Course 1" course homepageWhen I add the "Activity results" blockAnd I configure the "Activity results" blockAnd I should see "There are not yet any activities in this course."And I press "Save changes"Then I should see "Please configure this block and select which activity it should display results from." in the "Activity results" "block"