Skip to content

Instantly share code, notes, and snippets.

@gabrielfalcao
Created December 21, 2011 23:11
Show Gist options
  • Save gabrielfalcao/1508140 to your computer and use it in GitHub Desktop.
Save gabrielfalcao/1508140 to your computer and use it in GitHub Desktop.
Sample lettuce feature
Feature: exemplify why step.behave_as can be a not-so-good option
Scenario: Login should work
Given I am at the login page
When I type the username "root"
And I type the password "123"
And I try to perform the login
Then it works and I am redirected to the admin page
Scenario: Get in the user management admin page
Given I log in as "admin" with password "123"
When I click to manage users
Then I am pointed out to the user management page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment