cypress-network-idle
Advanced tools
Comparing version 1.3.1 to 1.3.2
{ | ||
"name": "cypress-network-idle", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "A little Cypress.io plugin for waiting for network to be idle before continuing with the test", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -43,7 +43,10 @@ /// <reference types="cypress" /> | ||
counters.lastNetworkAt = +new Date() | ||
// console.log('out req at ', lastNetworkAt) | ||
req.continue(() => { | ||
// count the response timestamp | ||
// console.log('req %s %s', req.method, req.url, counters.lastNetworkAt) | ||
// seems using event callbacks allows the other stubs to be called | ||
// https://github.com/bahmutov/cypress-network-idle/issues/8 | ||
req.on('response', (res) => { | ||
counters.lastNetworkAt = +new Date() | ||
// console.log('response at', lastNetworkAt) | ||
// console.log('res %s %s', req.method, req.url, counters.lastNetworkAt) | ||
// console.log(res.body) | ||
}) | ||
@@ -109,7 +112,9 @@ }) | ||
counters.lastNetworkAt = +new Date() | ||
// console.log('out req at ', lastNetworkAt) | ||
req.continue(() => { | ||
// count the response timestamp | ||
// seems using event callbacks allows the other stubs to be called | ||
// https://github.com/bahmutov/cypress-network-idle/issues/8 | ||
req.on('response', (res) => { | ||
counters.lastNetworkAt = +new Date() | ||
// console.log('response at', lastNetworkAt) | ||
// console.log('res %s %s', req.method, req.url, counters.lastNetworkAt) | ||
// console.log(res.body) | ||
}) | ||
@@ -116,0 +121,0 @@ }).as(alias) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10300
151