thoughtbot/capybara-webkit — Issue #276: Database being cleaned between steps in @javascript scenario
Author: nicholaspufal
Created: 2012-02-16 13:02:11+00:00
State: open

There is a problem with some @javascript scenarios.

I have simplified my scenario a lot in order to help debugging this issue. Look:

@wip
Scenario: Fill basic form info
Given I have filled basic info for a person
When I click the save button
Then the company of this person should be "ACME"

This works just fine. However the same scenario with the `@javascript` annotation will fail.

I think there is no need to show the steps, because it's just a bunch of `fill_in`, `select ..., :from => ...`.

I came to this conclusion after inspecting (adding a `debugger`) before and after the `click_button("Save")`.

Btw, the same scenario, with or without `@javascript`, simply passes when using `selenium` in my `env.rb`.

Any ideas of what could be or how can I help more?