Post

How has this affected your test setup? That's was my initial concern: does it change the tests in a negative way that outweighs the supposed benefits of direct queries in controllers/LV?

look, many many sins were committed in the liveview tests. would love to start over given the time and budget. practically, there should be no impact to the lv tests, though. if the lv tests focus on behaviour, it shouldn't matter whether the read queries live in the LV or a context module.

one thing i may do differently in the future is test the presence of whatever components i'm using, then make assertions on the contents of those components in separate test modules. today, most of the lv tests i've written are doing way too much. this could be a six-vs-half-dozen problem in the end

0 reposts0 likes

No replies yet.