Created
July 11, 2010 18:01
-
-
Save robyurkowski/471718 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Cucumber Scenario | |
@wip | |
Scenario: Login with correct details | |
Given a user named "brent" exists | |
When I go to login | |
And I fill in "Username" with "brent" | |
And I fill in "Password" with "screech" | |
And I press "Log In" | |
And show me the page | |
Then I should see "Logged in" # <-- Passes until here | |
## Error | |
expected the following element's content to include "Logged in": | |
Untitled | |
(Spec::Expectations::ExpectationNotMetError) | |
./features/step_definitions/web_steps.rb:146:in `/^(?:|I )should see "([^"]*)"$/' | |
features/users.feature:26:in `Then I should see "Logged in"' | |
## Response | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Untitled</title> | |
<link href="/stylesheets/application.css?1278814908" media="screen" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<div id="container"> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment