Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@local @local_downloadcenter
2
Feature: Check  Pages 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
  | student2 | Sam2 | Student2 | student2@example.com |
10
    And the following "courses" exist:
11
  | fullname | shortname | category |
12
  | Course 1 | C1 | 0 |
13
    And the following "course enrolments" exist:
14
  | user | course | role |
15
  | teacher1 | C1 | editingteacher |
16
  | student1 | C1 | student |
17
  | student2 | C1 | student |
18
    And the following "activities" exist:
19
  | activity | name                 | intro                   | course | idnumber | assignsubmission_onlinetext_enabled |
20
  | assign   | Test assignment name | Submit your online text | C1     | assign1  | 1                                   |
21
 
22
  @javascript
23
  Scenario: Check Pages in Download Center
24
    Given I log in as "teacher1"
25
    And I am on "Course 1" course homepage with editing mode on
26
    And I add a "Page" to section "2" and I fill the form with:
27
      | Name | Test Page |
28
      | Description | Test description |
29
      | Page content | https://www.climbing.com/.image/t_share/MTM1MjQ3MjI2NTYwNjM4OTQ2/cerrotorre-west_16999.jpg |
30
    And I follow "Download center"
31
    Then I should see "Test Page"
32
    And I log out
33
    And I log in as "student1"
34
    And I am on "Course 1" course homepage
35
    And I follow "Download center"
36
    Then I should see "Test Page"