Testing multiple sessions in the same test with Capybara

Sometimes a feature in your application will involve a back-and-forth between multiple users. When it comes time to write an automated system test, you can easily simulate switching between users using Capybara’s using_session helper.Instead of logging in and out or faking out another user making changes to the app, you can use multiple sessions within the same Capybara test.This can be very useful for testing features like notifications, chat, or even multi-person workflows where different users have to take action to move a process forward.
Testing multiple sessions in the same test with Capybara #ruby #rubydeveloper #rubyonrails #testing https://rubyonrails.ba/single/testing-multiple-sessions-in-the-same-test-with-capybara

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles