Hello! I am just wondering about what the strategy is to test features that are using Turbo. For example, let’s say I have a dashboard module that can display up to 5 records and I want to verify with a test that no more than 5 records are shown.
My first instinct would be to write a request spec, and test the business logic at the controller level. However, the response is not simply a list of records since this is returning to a turbo frame. Should I instead be using a system test to verify the functionality in the interface or is there a strategy I’m missing with respect to testing turbo responses?