Skip to content

Instantly share code, notes, and snippets.

@chrislerum
Created May 31, 2010 03:48
Show Gist options
  • Save chrislerum/419509 to your computer and use it in GitHub Desktop.
Save chrislerum/419509 to your computer and use it in GitHub Desktop.
cucumber features/logging_in.feature
Using the default profile...
Feature: Logging in
In order to log in
As a user
I want pretty things
Background: # features/logging_in.feature:6
Given a user: # features/step_definitions/seed_steps.rb:1
| login | password | email |
| Radar | password | [email protected] |
Scenario: Logging in # features/logging_in.feature:11
Given I am on the homepage # features/step_definitions/web_steps.rb:18
When I follow "Login" # features/step_definitions/web_steps.rb:32
no link with title, id or text 'Login' found (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:34:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:13:in `with_scope'
./features/step_definitions/web_steps.rb:33:in `/^(?:|I )follow "([^\"]*)"(?: within "([^\"]*)")?$/'
features/logging_in.feature:13:in `When I follow "Login"'
And I fill in "Login" with "Radar" # features/step_definitions/web_steps.rb:38
And I fill in "Password" with "Password" # features/step_definitions/web_steps.rb:38
And I press "Login" # features/step_definitions/web_steps.rb:26
Then I should see "Logged in successfully" # features/step_definitions/web_steps.rb:99
Failing Scenarios:
cucumber features/logging_in.feature:11 # Scenario: Logging in
1 scenario (1 failed)
7 steps (1 failed, 4 skipped, 2 passed)
0m0.134s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment