turingschool / curriculum-site

0 stars 0 forks source link

Feature Testing in Rails #95

Closed memcmahon closed 1 week ago

memcmahon commented 3 weeks ago

Existing Lesson - https://backend.turing.edu/module2/lessons/feature_testing_2

Note This issue is related to #93 #94 #96. These lessons should create/build on the Set List application

juliet-e commented 2 weeks ago

At this point, students will not know about one-to-many relationships, so we should just make sure this lesson doesn't use resources that have foreign keys/db relationships yet

ALSO, in order to allow Capybara to detect DOM changes, JS files need to be compiled with the test so we need to add the selenium webdriver gem to our Rails apps, and then add the js: true parameter when defining our test i.e. RSpec.describe . . . type: :feature, js: true do

We should teach students that if they have any JS dom manipulations on the page, they'll need this setup