-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step to switch Capybara sessions #66
Comments
If a project wants to switch between multiple Capybara sessions, we recommend you add steps for that in the project. However, a single Capybara session is enough for almost all projects. We won't be implementing this feature ourselves. Is this something you use regularly? |
I use this regularly in projects with shared data access for testing optimistic locking (https://api.rubyonrails.org/classes/ActiveRecord/Locking/Optimistic.html) on data objects ...
... or else data would be overwritten. However I understand, that different projects do not work on shared data or do not test it, because of time/money/etc. |
We have two projects where we also needed to test content locking. We solved that with custom steps that open new tabs via JavaScript. If we want to support this, I think the proposed step ( Another use case that I had once was realtime updates from another user (implemented with ActionCable, PubNubSub, Pusher or similar). |
Using separate sessions for testing locking is a good use case, and saner than using a separate tab or window. So let's add a step for that to Spreewald. Suggestions welcome. :) |
http://collectiveidea.com/blog/archives/2011/08/04/simultaneous-capybara-sessions-in-cucumber/
The text was updated successfully, but these errors were encountered: