Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block_starredcourses
2
Feature: Starred courses
3
  In order for me to quickly navigate to my favourite courses
4
  As a user
5
  I must be able to add them to the Starred courses block
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email |
10
      | student1 | Student | 1 | student1@example.com |
11
    And the following "courses" exist:
12
      | shortname | fullname |
13
      | C1        | Course 1 |
14
      | C2        | Course 2 |
15
      | C3        | Course 3 |
16
    And the following "course enrolments" exist:
17
      | user      | course | role    |
18
      | student1  | C1     | student |
19
      | student1  | C2     | student |
20
      | student1  | C3     | student |
21
    And the following "blocks" exist:
22
      | blockname       | contextlevel | reference | pagetypepattern | defaultregion  |
23
      | starredcourses  | User         | student1  | my-index        | content        |
24
 
25
  @accessibility @javascript
26
  Scenario: User has no starred courses
27
    Given I log in as "student1"
28
    Then I should see "No starred courses"
29
    And the page should meet accessibility standards
30
 
31
  @accessibility @javascript
32
  Scenario: User has starred courses
33
    Given I am on the "My courses" page logged in as "student1"
34
    And I click on "Actions for course Course 1" "button"
35
    And I click on "Star for Course 1" "link"
36
    And I click on "Actions for course Course 3" "button"
37
    And I click on "Star for Course 3" "link"
38
    When I follow "Dashboard"
39
    Then the page should meet accessibility standards
40
    And I should see "Course 1" in the "Starred courses" "block"
41
    And I should see "Course 3" in the "Starred courses" "block"
42
    But I should not see "Course 2" in the "Starred courses" "block"