Testing multiple sessions in the same test with Capybara
04-Mar-2021 1395
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 #multiple #sessions #Capybara #testing https://rubyonrails.ba/link/testing-multiple-sessions-in-the-same-test-with-capybara