Skip to content

Commit

Permalink
test: Updating readFile error test assertions that rely on consistent…
Browse files Browse the repository at this point in the history
… execution time (#21441)
  • Loading branch information
tbiethman committed May 11, 2022
1 parent 9b11e2c commit 770b962
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/driver/cypress/integration/commands/files_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,10 @@ describe('src/cy/commands/files', () => {
err.filePath = '/path/to/foo.json'

Cypress.backend.rejects(err)
let retries = 0
let hasRetried = false

cy.on('command:retry', () => {
retries += 1
hasRetried = true
})

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

expect(err.docsUrl).to.eq('https://on.cypress.io/readfile')
expect(retries).to.eq(2)

expect(hasRetried).to.be.true

done()
})
Expand Down

3 comments on commit 770b962

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 770b962 May 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/9.6.2/linux-x64/develop-770b96222d38726f5c70b8864e12264b186babfa/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 770b962 May 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/9.6.2/darwin-x64/develop-770b96222d38726f5c70b8864e12264b186babfa/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 770b962 May 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/9.6.2/win32-x64/develop-770b96222d38726f5c70b8864e12264b186babfa/cypress.tgz

Please sign in to comment.