Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a2326a

Browse files
authored
Merge branch 'develop' into tbiethman/chore/electron-18-update
2 parents e4d0e0d + 770b962 commit 9a2326a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/driver/cypress/integration/commands/files_spec.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ describe('src/cy/commands/files', () => {
293293
err.filePath = '/path/to/foo.json'
294294

295295
Cypress.backend.rejects(err)
296-
let retries = 0
296+
let hasRetried = false
297297

298298
cy.on('command:retry', () => {
299-
retries += 1
299+
hasRetried = true
300300
})
301301

302302
cy.on('fail', (err) => {
@@ -312,7 +312,8 @@ describe('src/cy/commands/files', () => {
312312
\`/path/to/foo.json\``)
313313

314314
expect(err.docsUrl).to.eq('https://on.cypress.io/readfile')
315-
expect(retries).to.eq(2)
315+
316+
expect(hasRetried).to.be.true
316317

317318
done()
318319
})

0 commit comments

Comments
 (0)