gray-kilobyte-89541
03/14/2022, 7:25 PMblockLists
acceptable-solstice-90676
03/14/2022, 7:28 PMacceptable-solstice-90676
03/14/2022, 7:29 PMfuture-gold-77198
03/14/2022, 7:31 PMacceptable-solstice-90676
03/14/2022, 7:32 PMacceptable-solstice-90676
03/14/2022, 7:32 PMbrave-terabyte-33430
03/14/2022, 10:59 PMcy.request()
wait for a few seconds between retries, or make it retry more times? My tests do the request to log in the user, and the service they talk to (currently) has some downtime during deployments.brave-terabyte-33430
03/14/2022, 11:01 PMcypress.json
settings -- currently at 3 -- but I'd have crank it up very high [as I believe the request failure happens very quickly], and I don't want (say) 100 retries for other failures.dazzling-salesclerk-15570
03/14/2022, 11:05 PMbrave-terabyte-33430
03/14/2022, 11:44 PMgray-kilobyte-89541
03/15/2022, 1:05 AMrough-van-84956
03/15/2022, 2:53 AMonclick=“if (!window.__cfRLUnblockHandlers) return false; document.location=‘/account-register’”
There's an XHR call to /cdn-cgi/...
A test will fail if it clicks the button before that call returns. I can't intercept/wait, because that call doesn't occur when testing a local (docker compose) site.
I'm trying to work out how to wait for the __cfRLUnblockHandlers
value to become true, otherwise I'm left inserting arbitrary waits.
In the short term, I've disabled RocketLoader for the test site, but I'd prefer to test in a Production config.crooked-easter-63692
03/15/2022, 4:15 PMcrooked-easter-63692
03/15/2022, 4:16 PMcrooked-easter-63692
03/15/2022, 4:17 PMmodule.exports = (on, config) => {
on('after:screenshot', (details) => {
const newPath = path.resolve(__dirname, '../reports/mochareports/assets/'+details.specName+'/'+details.specName+'(failed).png')
fs.renameSync(details.path, newPath)
return { path: newPath }
})
crooked-easter-63692
03/15/2022, 4:18 PMcrooked-easter-63692
03/15/2022, 4:19 PMcy.task('cypress-plugin-snapshot:getFile')
failed with the following error:
The 'task' event has not been registered in the plugins file. You must register it before using cy.task()
Fix this in your plugins file here:
/Users/cypress/plugins/index.js
Because this error occurred during a before all
hook we are skipping all of the remaining tests.brave-terabyte-33430
03/15/2022, 5:05 PMimportant-river-75795
03/16/2022, 10:44 AMdamp-country-52800
03/16/2022, 12:38 PMacoustic-answer-12539
03/16/2022, 4:49 PMbrave-terabyte-33430
03/17/2022, 8:23 PMpowerful-orange-86819
03/18/2022, 8:01 AMdamp-country-52800
03/18/2022, 10:53 AMdamp-country-52800
03/18/2022, 10:55 AMpowerful-orange-86819
03/18/2022, 11:02 AMfuture-baker-50174
03/21/2022, 10:24 AMget("#ididid").type("texttext", { delay: 0})
I have tried Cypress.config("keystrokeDelay", 0)
but it has no effect.alert-market-68946
03/22/2022, 8:00 AMfor (let i = 0; i < 10; i++) {
cy.request({
method: 'POST',
url: Cypress.env('webhookUrl'),
body: payload,
headers: header,
failOnStatusCode: false,
}).then((response) => {
expect(response.status).to.be.eq(200)
expect(response.body).is.not.null
})
}
gray-kilobyte-89541
03/22/2022, 2:41 PMpowerful-orange-86819
03/23/2022, 8:37 AM