thoughtbot/capybara-webkit — Issue #230: Wrong order of executed statements
Author: philly-mac
Created: 2011-12-21 05:26:27+00:00
State: open

Hi,

First off I just want to say that I am not sure whether to post this issue here, or on the sequel page, as I am not sure wherein lies the problem.

So here is what I am doing

I am using padrino + bacon + sequel + capybara + selenium | capybara-webkit to run tests.

When doing this with selenium, I get the output and result that I expect. See the following gist.

This snippet of code

https://gist.github.com/1504690

produces this out put

https://gist.github.com/f9a9a5bc122ff01d10f2

but with capybara-webkit I get this output

https://gist.github.com/42b9bee8347a7cbf5030

As you can see, the webkit output shows that when the button is clicked, the actions that happen within the controller are executed after all the actions in the test itself.

This seems very strange to me, as

1. The same setup works with selenium and browsing the code I haven't seen anything specific to transactional fixtures.
2. I am not using transactions for these tests at all

Now, as I said before I am not sure if this is a sequel issue or a capybara-webkit one. But seeing as I would prefer to use webkit over selenium, I thought I would try here first. I'll bug the sequel guy/s later if I get no luck here :)

Any ideas?