Can anyone assist me with following the official guidelines from Cypress on how to enter offline mode?
Encountered an error =>
The callback function returned a promise that never resolved.
Here is the callback function in question:
() => {
return Cypress.automation('remote:debugger:protocol', {
command: 'Network.emulateNetworkConditions',
params: {
offline: true,
latency: -1,
downloadThroughput: -1,
uploadThroughput: -1
}
});
}
Any assistance or guidance would be greatly appreciated. Thank you.