Tests are now completely end to end (previously they didn't test inject/webchat, which is what all end users uses.)
Use yarn serve to start a server which responds with a webchat.html file with all the parameters pre-filled (this can also be used to test the inject script on the studio)
Tests also validate that the correct lifecycle events are called (loaded, ready, message sent, message received)
Still some work to do to address flakiness and test more features, future PR. I'll evaluate the need for the waits and update tests later.
Tests are now completely end to end (previously they didn't test inject/webchat, which is what all end users uses.)
yarn serve
to start a server which responds with a webchat.html file with all the parameters pre-filled (this can also be used to test the inject script on the studio)Still some work to do to address flakiness and test more features, future PR. I'll evaluate the need for the waits and update tests later.