[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/blocks/activity_results/tests/behat/ -> addunconfiguredblock.feature (source)

   1  @block @block_activity_results
   2  Feature: The activity results block displays student scores
   3    In order to be display student scores
   4    As a user
   5    I need to see the activity results block
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email | idnumber |
  10        | teacher1 | Teacher | 1 | teacher1@example.com | T1 |
  11      And the following "courses" exist:
  12        | fullname | shortname | category |
  13        | Course 1 | C1 | 0 |
  14      And the following "course enrolments" exist:
  15        | user | course | role |
  16        | teacher1 | C1 | editingteacher |
  17      And I log in as "teacher1"
  18      And I follow "Course 1"
  19      And I turn editing mode on
  20  
  21    Scenario: Add the block to a the course
  22      Given I add the "Activity results" block
  23      Then I should see "Please configure this block and select which activity it should display results from." in the "Activity results" "block"
  24  
  25    Scenario: Try to configure the block on the course page in a course without activities
  26      Given I add the "Activity results" block
  27      When I configure the "Activity results" block
  28      And I should see "There are not yet any activities in this course."
  29      And I press "Save changes"
  30      Then I should see "Please configure this block and select which activity it should display results from." in the "Activity results" "block"
  31  
  32    Scenario: Try to configure the block on a resource page in a course without activities
  33      Given I add a "Page" to section "1"
  34      And I set the following fields to these values:
  35        | Name | Test page name |
  36        | Description | Test page description |
  37        | page | This is a page |
  38      And I press "Save and display"
  39      When I add the "Activity results" block
  40      And I configure the "Activity results" block
  41      And I should see "There are not yet any activities in this course."
  42      And I press "Save changes"
  43      Then I should see "Please configure this block and select which activity it should display results from." in the "Activity results" "block"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1