AutorÃa | Ultima modificación | Ver Log |
@local @local_downloadcenter @amc
Feature: Within a moodle instance a student should be able to see books in Download Center
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Tina | Teacher1 | teacher1@example.com |
| student1 | Sam1 | Student1 | student1@example.com |
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
Scenario: Check Book in Download Center
Given I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I add a "Book" to section "2" and I fill the form with:
| Name | Test Book |
| Description | Test Book|
And I follow "Download center"
Then I should see "Test Book"
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Download center"
Then I should see "Test Book"