Skip to content

Commit

Permalink
chore: rewrite flaky server integration test (#26070)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthemanuel authored Mar 10, 2023
1 parent e576e2c commit 20cd105
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
20 changes: 2 additions & 18 deletions packages/server/test/integration/cypress_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,24 +596,8 @@ describe('lib/cypress', () => {
it('can change the reporter with cypress.config.js', async function () {
sinon.spy(Reporter, 'create')

await ctx.actions.project.setCurrentProjectAndTestingTypeForTestSetup(this.idsPath)

setCtx(makeDataContext({}))

return ctx.lifecycleManager.getFullInitialConfig()
.then((cfg) => {
this.cfg = cfg

return settings.read(this.idsPath)
}).then((json) => {
json.reporter = 'dot'

return settings.writeForTesting(this.idsPath, json)
}).then(async () => {
await clearCtx()

return cypress.start([`--run-project=${this.idsPath}`])
}).then(() => {
return cypress.start([`--run-project=${this.idsPath}`, `--config-file=${this.idsPath}/cypress.dot-reporter.config.js`])
.then(() => {
expect(Reporter.create).to.be.calledWith('dot')
this.expectExitWith(0)
})
Expand Down
4 changes: 4 additions & 0 deletions system-tests/projects/ids/cypress.dot-reporter.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
e2e: {},
reporter: 'dot',
}

5 comments on commit 20cd105

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 20cd105 Mar 10, 2023

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 arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.8.0/linux-arm64/develop-20cd105252f5ce6a91d12ea8a41cd362a7de57ec/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 20cd105 Mar 10, 2023

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 build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.8.0/linux-x64/develop-20cd105252f5ce6a91d12ea8a41cd362a7de57ec/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 20cd105 Mar 10, 2023

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 build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.8.0/darwin-x64/develop-20cd105252f5ce6a91d12ea8a41cd362a7de57ec/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 20cd105 Mar 10, 2023

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 build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.8.0/win32-x64/develop-20cd105252f5ce6a91d12ea8a41cd362a7de57ec/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 20cd105 Mar 10, 2023

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 arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.8.0/darwin-arm64/develop-20cd105252f5ce6a91d12ea8a41cd362a7de57ec/cypress.tgz

Please sign in to comment.