Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@local @local_downloadcenter @amc
2
Feature: Within a moodle instance a student should be able to see books in Download Center
3
 
4
  Background:
5
    Given the following "users" exist:
6
      | username | firstname | lastname | email |
7
      | teacher1 | Tina | Teacher1 | teacher1@example.com |
8
      | student1 | Sam1 | Student1 | student1@example.com |
9
    And the following "courses" exist:
10
      | fullname | shortname | category |
11
      | Course 1 | C1 | 0 |
12
    And the following "course enrolments" exist:
13
      | user | course | role |
14
      | teacher1 | C1 | editingteacher |
15
      | student1 | C1 | student |
16
  Scenario: Check Book in Download Center
17
    Given I log in as "teacher1"
18
    And I am on "Course 1" course homepage with editing mode on
19
    And I add a "Book" to section "2" and I fill the form with:
20
      | Name | Test Book |
21
      | Description | Test Book|
22
    And I follow "Download center"
23
    Then I should see "Test Book"
24
    And I log out
25
    And I log in as "student1"
26
    And I am on "Course 1" course homepage
27
    And I follow "Download center"
28
    Then I should see "Test Book"