Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

@javascript and @selenium uses different databases #494

Closed
houen opened this Issue · 2 comments

2 participants

@houen

I am using Cucumber, Capybara and Selenium with Spork with Factory Girl creating records that are needed in the background steps. I discovered that the @selenium tag on a test caused my RSpec Factory created records to not be seen by the selenium instance, while (after 2 days of debugging...) I found out that using the @javascript tag causes selenium to see the database.

I have no idea why, but it would be good if the README reflected that e.g. Factory Girl cannot interact with the database used by the @selenium tag-fired selenium instance.

Anyway, now it works, and thank you for a great library. I hope someone else can save this time I spent literally wading through forums ;-)

@jnicklas
Owner

Actually... it does.

@jnicklas jnicklas closed this
@jnicklas
Owner

On second thought, that documentation could definitely be improved.

@jnicklas jnicklas reopened this
@jnicklas jnicklas closed this in 37ba641
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.