Setting the network to offline in this way will now cause the Cypress runner socket to disconnect and the test run to hang. This can be replicated in Chromium 97+ and with Chrome's latest version as of this posting (v101).
We need to re-evaluate this recipe and provide updated guidance for this testing flow.
A bug correction was released in Chromium 97 that ensures that websockets adhere to emulated network conditions set with
Network.emulateNetworkConditions
: https://bugs.chromium.org/p/chromium/issues/detail?id=1139824Setting the network to offline in this way will now cause the Cypress runner socket to disconnect and the test run to hang. This can be replicated in Chromium 97+ and with Chrome's latest version as of this posting (v101).
We need to re-evaluate this recipe and provide updated guidance for this testing flow.