You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assets.cy.js >> @completeupload should complete successfully, when the image path and previous steps are correct
Actual Behaviour
assets.cy.js >> @completeupload times-out while the status of asset upload is 'Processing'
Steps to Reproduce
npx cypress run --headed --no-exit --browser chrome >> reports timeout for @completeupload step
Enhancement Proposal
Instead of cy.wait, we can rather invoke the more deterministic cy.waitUntil - as follows:
// wait for the /content/dam.completeUpload.json POST to complete before polling for the asset
cy.waitUntil(
() => ['@completeupload'], {
errorMsg: `asset ${imagePath} should be uploaded`,
timeout: 5000,
interval: 1000
}
);
Please let me know if this looks ok - will accordingly raise a PR.
The text was updated successfully, but these errors were encountered:
Expected Behaviour
assets.cy.js
>>@completeupload
should complete successfully, when the image path and previous steps are correctActual Behaviour
assets.cy.js
>>@completeupload
times-out while the status of asset upload is 'Processing'Steps to Reproduce
npx cypress run --headed --no-exit --browser chrome
>> reports timeout for@completeupload
stepEnhancement Proposal
Instead of
cy.wait
, we can rather invoke the more deterministiccy.waitUntil
- as follows:Please let me know if this looks ok - will accordingly raise a PR.
The text was updated successfully, but these errors were encountered: