Feature: Control Access to CoolApp

In order to access the private area of CoolApp
As a user
I want to control access to the application with a user and password

  Scenario: Login with correct username and password
    Given I visit "http://demo/coolapp"
    When I fill in "username" with "admin"
    And I fill in "password" with "secret"
    And I press "Login"
    Then I should see "You are now logged in"
    And I should see "Private Area"
    
  Scenario: Login without the correct password
    Given I visit "http://demo/coolapp"
    When I fill in "username" with "admin"
    And I fill in "password" with "password"
    And I press "Login"
    Then I should see "Bad login"
    And I should not see "Private Area"