@javascript and @selenium uses different databases #494

Closed
houen opened this Issue Sep 14, 2011 · 2 comments

Comments

Projects
None yet
2 participants

houen commented Sep 14, 2011

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 ;-)

Collaborator

jnicklas commented Sep 14, 2011

Actually... it does.

@jnicklas jnicklas closed this Sep 14, 2011

Collaborator

jnicklas commented Sep 14, 2011

On second thought, that documentation could definitely be improved.

@jnicklas jnicklas reopened this Sep 14, 2011

@jnicklas jnicklas closed this in 37ba641 Jan 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment