Powered by
you could use a foreach to reduce a bit of duplica...
# e2e-testing
a
agreeable-painting-90494
06/30/2022, 1:55 PM
you could use a foreach to reduce a bit of duplication.
errorHosts.forEach(hostname => cy.intercept({hostname}, {statusCode: 503});
where errorHosts is an array ['host1.com', 'host2.com, ...]
Previous
Next