doing Minitest system tests in Capybara w/Cuprite but loosing current_user on form POSTs on Rails 7.2 w/TurboStream #2775
Replies: 1 comment
-
I decided to do what I should have done all along - To quote myself above it was easily ... about the dumbest question because I had c/p'ed the configuration verbatim from a post by someone who knew what they were doing!! So much for weaponizing monkeys 🤣 Once I edited the configuration to point to where I had actually put the configuration files everything was all confetti and hurrays TIL: don't blindfoldedly copy/paste configurations |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
this may easily be just about the dumbest question - and switching to Cuprite (from Selenium) was a huge bone - but it did not solve my initial issue 😢 and I apologise if I'm addressing the wrong crowd [ed. perhaps this is a Cuprite question]
The controller is working (and I've tested all "manually" and it also works) and my tests are all green - except for this system test which "spans" a POST and reports the following on
SLOMO=0.5 CI=true rails test test/system/teams_test.rb
i've battled this all day with 20 tabs open on Google, going through every example I have been able to get my hands on - yet no one of them have thrusted me in the right direction -
(the index action requires the sign_in too and so does the /teams/new url which tells me that the sign_in works in teams_test.rb too)
with the controller teams#create looking like this
Beta Was this translation helpful? Give feedback.
All reactions