Skip to content

Cypress.config() does not return the complete configuration #509

@andreaazzara

Description

@andreaazzara
  • Operating System: macOS Sierra
  • Cypress Version: 0.19.2
  • Browser/Browser Version: Chrome 58

Are you requesting a feature or reporting a bug?

Possible bug

Current behavior:

My cypress.json is

{
  "projectId": "myId",
  "watchForFileChanges": false,
  "fileServerFolder": "www",
  "viewportWidth": 320,
  "viewportHeight": 568,
  "numTestsKeptInMemory": 5,
  "trashAssetsBeforeHeadlessRuns": false,
  "videoRecording": false,
  "defaultCommandTimeout": 30000,
  "pageLoadTimeout": 30000,
  "fixturesFolder": "/Users/some-custom-folder"
}

but Cypress.config() returns:

{
    "isHeadless": false,
    "numTestsKeptInMemory": 5,
    "waitForAnimations": true,
    "animationDistanceThreshold": 5,
    "defaultCommandTimeout": 30000,
    "pageLoadTimeout": 30000,
    "requestTimeout": 5000,
    "responseTimeout": 30000,
    "xhrUrl": "__cypress/xhrs/",
    "baseUrl": null,
    "viewportWidth": 320,
    "viewportHeight": 568,
    "execTimeout": 60000,
    "screenshotOnHeadlessFailure": true,
    "namespace": "__cypress"
}

where some keys are missing (fixturesFolder, videoRecording...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg/driverThis is due to an issue in the packages/driver directorytype: enhancementRequested enhancement of existing feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions