In order to automate tests for when network conditions change, I think we need some way to:
Spawn n browsers
Open the same pad on each of them
Cut network for some of them
Re-enable network for some of them
Observe app behaviour
By network here I mean disable Websockets connections to a websocket-star relaying service (now that peerpad-core is going to use websocket-star for transport instead of WebRTC..).
Also, it would be nice if we could introduce some arbitrary latency between nodes.
(Also, I don't need to operate at the UI level: I could use the peerpad-core API instead).
In order to automate tests for when network conditions change, I think we need some way to:
By network here I mean disable Websockets connections to a websocket-star relaying service (now that peerpad-core is going to use websocket-star for transport instead of WebRTC..). Also, it would be nice if we could introduce some arbitrary latency between nodes.
(Also, I don't need to operate at the UI level: I could use the peerpad-core API instead).
@diasdavid has pointed me to piri-piri and karma-peer.
Any ideas, pointers or considerations?