ilovecherries/glimmer

Testing with Cypress?

ilovecherries opened this issue · 1 comments

It would probably be a good idea to test certain flows using Cypress in order to make sure that things are working correctly. Things like login, sending messages, editing messages. These don't really rely on watching any internal state, it just watches that the displayed state (which would be received from the server) is in fact correct. If there's a way to test WebSocket things with this, that would also be amazing but I don't think you can interrupt things like the network?
Unit testing is possible too but unit testing is probably not that necessary except for comment chunk operations? There's definitely a lot more things that could be tested but like I just don't know what certifies lol

Oh, Cypress DOES have a way to go offline, so it IS possible to test WebSocket things with it, excellent! https://www.cypress.io/blog/2020/11/12/testing-application-in-offline-network-mode/ (there's probably a better documentation page on where this is better detailed)