Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_login
2
Feature: Login from a block
3
    In order to make it easier to login
4
    As an user
5
    In need to login through a block
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | password | firstname | lastname | email |
10
      | testuser | testpass | Test      | User     | student1@example.com |
11
    And the following "blocks" exist:
12
      | blockname | contextlevel | reference | pagetypepattern | defaultregion |
13
      | login     | System       | 1         | site-index      | side-pre      |
14
 
15
  Scenario: Login block visible to non-logged in users
16
    When I am on homepage
17
    Then "Login" "block" should exist
18
 
19
  Scenario: Login as student through login block
20
    Given I am on homepage
21
    When I set the field "Username" to "testuser"
22
    And I set the field "Password" to "testpass"
23
    And I click on "Log in" "button" in the "Login" "block"
24
    Then I should see "You are logged in as Test User"
25
    And "Login" "block" should not exist