Dotclear

source: features/admin/session.feature @ 2931:eed943c66a5f

Revision 2931:eed943c66a5f, 863 bytes checked in by Nicolas <nikrou77@…>, 11 years ago (diff)

Start adding behat tests

Line 
1Feature: Manage content
2  In order to manage my blog
3  As an administrator
4  I need to be able to connect to administration area
5
6  Background: init
7    Given a user:
8      | username | password | status |
9      | user1    | pass1    | normal |
10
11  Scenario: Login
12    Given I am on "/admin/"
13    And I am logged in as "user1" with password "pass1"
14    Then I should see "Dashboard"
15    And I should see "My preferences"
16
17  Scenario: Logout
18    Given I am on "/admin/"
19    And I am logged in as "user1" with password "pass1"
20    When I follow "My preferences"
21    When I follow "Logout"
22    Then I should not see "My preferences"
23
24  Scenario: Remember me
25    Given I am on "/admin/"
26    And I am logged in as "user1" with password "pass1" with remember me
27    Then I should see "My preferences"
28    When I restart my browser
29    Then I should see "My preferences"
Note: See TracBrowser for help on using the repository browser.

Sites map