System Tests With Capybara and Selenium | Ruby On Rails 7 Tutorial
System tests are pretty easy with Capybara, but if you're on WSL 2 then you'll need a bit of extra setup. After setup though, we can try some TDD!
Checkout my course(s) at: learn.deanin.com
Source:
github.com/Deanout/rails_syst...
Links:
stackoverflow.com/questions/5...
sites.google.com/chromium.org...
github.com/teamcapybara/capybara
github.com/SeleniumHQ/selenium
Join this channel to help support these videos:
/ @deanin
Follow me on social media:
linktr.ee/deanin
If you liked this video, please consider subscribing: t.co/RZ4EwP0F2a
Timestamps
0:00 Setting up Capybara With WSL 2
7:57 Using Capybara For Test Driven Development Of Comments
#Deanin #Software #Programming
Пікірлер: 11
System tests are just a fancy way of saying QA is tired of manually having to click the button to tell the devs their latest build sucks, you can't change my mind.
Thank you for the video! Good to have the same video for "RSpec + Capypara"
You should also include FactoryBot when writing tests which is a huge benefit when working with Rails at scale.
Great videos!
Since WSL2 now supports GUI apps, isnt it just easier to install linux version of Chrome (or another browser) and treat it like a regular linux distro to run system tests?
@Deanin
Жыл бұрын
Good point! Not really sure which is preferred since it probably depends, but maybe I'll revisit this once I give the Linux GUI a try.
@mikeandeesa226
Жыл бұрын
@@Deanin So I struggled with WSL2 and selenium for a few hours following all these different bits and bobs around the internet.. this comment made me go look at the version of WSL2 I had installed.... it was older... turns out that opening powershell and running wsl --update was all I really needed! totally just works now...
I did not know : (
just buy a laptop to work and study, man ahhahahah i did this and was the best decision.
@JosephLKausi
7 ай бұрын
+ plus just one or two games