Skip to content

Commit

Permalink
add test that getFirefoxGcInterval is correctly mounted
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Jan 21, 2020
1 parent 9a749de commit de36ca2
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@ describe('driver/src/util/firefox_forced_gc', () => {
isInteractive: false,
})).to.eq(10)
})

it('has been correctly mounted at Cypress.getFirefoxGcInterval', () => {
const oldGcInterval = Cypress.config('firefoxGcInterval')

Cypress.config('firefoxGcInterval', 5)

const real = Cypress.getFirefoxGcInterval
const fake = createIntervalGetter(Cypress.config)

expect(real()).to.eq(fake()).and.eq(5)

Cypress.config('firefoxGcInterval', oldGcInterval)
})
})

describe('#install', () => {
Expand Down

1 comment on commit de36ca2

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on de36ca2 Jan 21, 2020

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.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/3.8.3/linux-x64/circle-issue-1096-firefox-support-de36ca24526eef16d71949ba44bc26a2adc37137-234419/cypress.zip
npm install https://cdn.cypress.io/beta/npm/3.8.3/circle-issue-1096-firefox-support-de36ca24526eef16d71949ba44bc26a2adc37137-234409/cypress.tgz

Please sign in to comment.