Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_my
2
Feature: Welcome message
3
  In order to welcome new or existing user
4
  As a user
5
  I will see welcome message when I log into moodle
6
 
7
  Scenario: Log in and being redirected to course page
8
    Given the following "users" exist:
9
      | username | password | firstname | lastname | email            |
10
      | wf       | test     | Fei       | Wang     | fei@example.com  |
11
    And the following "courses" exist:
12
      | fullname | shortname |
13
      | Math 101 | M1O1      |
14
    When I am on "Math 101" course homepage
15
    And I should see "You are not logged in" in the "page-footer" "region"
16
    And I set the field "Username" to "wf"
17
    And I set the field "Password" to "test"
18
    And I press "Log in"
19
    And I should see "Math 101" in the "page-header" "region"
20
    And I should not see "Welcome, Fei!" in the "page-header" "region"
21
    And I follow "Dashboard"
22
    Then I should see "Welcome, Fei!" in the "page-header" "region"
23
 
24
  @javascript
25
  Scenario: Log in and being redirected to default home page
26
    When I log in as "admin"
27
    And I should see "You are logged in as Admin User" in the "page-footer" "region"
28
    And I should see "Welcome, Admin!" in the "page-header" "region"
29
    And I log out
30
    And I should see "You are not logged in" in the "page-footer" "region"
31
    And I log in as "admin"
32
    Then I should see "Hi, Admin!" in the "page-header" "region"
11 efrain 33
 
34
  @accessibility @javascript
35
  Scenario Outline: The start page must meet accessibility standards when the welcome message is displayed
36
    Given the following config values are set as admin:
37
      | defaulthomepage | <defaulthomepage> |
38
    When I log in as "admin"
39
    Then I should see "Welcome, Admin!" in the "page-header" "region"
40
    And the page should meet accessibility standards
41
 
42
    Examples:
43
      | defaulthomepage |
44
      # Home.
45
      | 0               |
46
      # Dashboard.
47
      | 1               |
48
      # My courses.
49
      | 2               |