AutorÃa | Ultima modificación | Ver Log |
@block @block_loginFeature: Login from a blockIn order to make it easier to loginAs an userIn need to login through a blockBackground:Given the following "users" exist:| username | password | firstname | lastname | email || testuser | testpass | Test | User | student1@example.com |And the following "blocks" exist:| blockname | contextlevel | reference | pagetypepattern | defaultregion || login | System | 1 | site-index | side-pre |Scenario: Login block visible to non-logged in usersWhen I am on homepageThen "Login" "block" should existScenario: Login as student through login blockGiven I am on homepageWhen I set the field "Username" to "testuser"And I set the field "Password" to "testpass"And I click on "Log in" "button" in the "Login" "block"Then I should see "You are logged in as Test User"And "Login" "block" should not exist