github/swordfish — pull request #84 by zef (2013-01-24 20:09:20+00:00)
Title: Open first item on first page load

Fixes #20

The line I removed from the Items feature tests this functionality, but it also removes a test for item list navigation.

I tried to test that with something like the following, but I think there are some timing issues and I'm unsure of the best way to handle that. It would be nice to have some fixtures or something, but given the encryption I'm not sure where to start with that.

Let me know if you have any thoughts. Thanks!

Scenario: Navigating the item list
When I follow "New Item"
And I fill in "Title" with "First item"
And I fill in "Username" with "First username"
And I fill in "Password" with "mypassword"
And I fill in "Confirm" with "mypassword"
And I press "Create"

And I follow "New Item"
And I fill in "Title" with "Second item"
And I fill in "Username" with "Second username"
And I fill in "Password" with "mypassword"
And I fill in "Confirm" with "mypassword"
And I press "Create"

When I follow "First item"
Then I should see "First username"

When I follow "Second item"
Then I should see "Second username"