Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e4d0e0d + 770b962 commit 9a2326aCopy full SHA for 9a2326a
packages/driver/cypress/integration/commands/files_spec.js
@@ -293,10 +293,10 @@ describe('src/cy/commands/files', () => {
293
err.filePath = '/path/to/foo.json'
294
295
Cypress.backend.rejects(err)
296
- let retries = 0
+ let hasRetried = false
297
298
cy.on('command:retry', () => {
299
- retries += 1
+ hasRetried = true
300
})
301
302
cy.on('fail', (err) => {
@@ -312,7 +312,8 @@ describe('src/cy/commands/files', () => {
312
\`/path/to/foo.json\``)
313
314
expect(err.docsUrl).to.eq('https://on.cypress.io/readfile')
315
- expect(retries).to.eq(2)
+
316
+ expect(hasRetried).to.be.true
317
318
done()
319
0 commit comments