End to end testing Rails with capybara

Sdílet
Vložit
  • čas přidán 8. 05. 2024
  • In this episode, you'll learn about how to setup capybara for end to end testing. We also cover how to login within the context of a test to access authenticated routes that are protected with devise.
    #rails #rubyonrails
  • Jak na to + styl

Komentáře • 10

  • @RatanachaiS
    @RatanachaiS Před rokem +1

    The content you cover in your videos are very in high quality. You deserve more subs and you just got one more. Thanks for sharing these.

  • @engelpintoruiz7613
    @engelpintoruiz7613 Před 2 lety +1

    It is a good video! Thanks man!

  • @xinrutang6883
    @xinrutang6883 Před 2 lety

    Nice done!

  • @haroldpepete
    @haroldpepete Před rokem

    what is the difference between system and features test?

  • @mondainicalvao6314
    @mondainicalvao6314 Před rokem

    I am trying to integrate capybara to my project, but when I try to use the login_as, it does not authenticate it. The page returns : 'You need to sign in or sign up before continuing'

    • @user-ic4ce8xb5v
      @user-ic4ce8xb5v Před rokem

      I'm trying to debug a similar problem right now, I think the problem is login_as is a warden method but I am using devise so I am trying to get it to work with sign_in which I used for request specs. I'll let you know if I figure it out.

  • @matthewalcala6975
    @matthewalcala6975 Před rokem +1

    Where’s the capybaras