Open camertron opened 1 month ago
Hey @camertron 👋
Thanks for reporting this. To be honest I would have expected that this should 'just work' but I must admit I don't know a whole lot about how Rails system tests work under the hood...
I haven't had a lot of time to spend on Lookbook recently but as soon as I get a chance I'll dig into this, would be interesting to figure out what is going on here.
Describe the bug
Hey there 👋 It's me again! Just popping in to describe some unexpected behavior around param coercion. My pair and I noticed today that visiting a Lookbook preview in a system test does not result in properly coerced parameters. We're visiting like this:
In the preview code, the
#preview_name
method has an@param
annotation for themy_param
parameter that indicates it should be coerced to a symbol. Unfortunately, the coercion does not occur:To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the
my_param
parameter to be of typeSymbol
instead ofString
.Version numbers
Please complete the following information: