{
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id": "SchematicsNightwatch",
  "title": "Nightwatch Options Schema",
  "type": "object",
  "additionalProperties": false,
  "description": "Creates Nightwatchjs config, and add definition in the given or default project.",
  "properties": {
    "removeProtractor": {
      "description": "When true, the protractor dependency and e2e directory will be removed from the project",
      "type": "boolean",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "Would you like to remove Protractor from the project?"
    },
    "cucumberRunner": {
      "description": "When true, cucumber test runner configuration will be added in nightwatch config",
      "type": "boolean",
      "$default": {
        "$source": "argv",
        "index": 1
      },
      "default": false,
      "x-prompt": "Would you like to use cucumber as a test runner?"
    },
    "environment": {
      "description": "The browser you want to run your e2e tests",
      "type": "string",
      "enum": ["chrome", "firefox", "safari", "selenium"],
      "$default": {
        "$source": "argv",
        "index": 2
      },
      "default": "firefox",
      "x-prompt": "Which browser do you want to run the test on? (default: firefox)"
    },
    "componentTesting": {
      "default": false,
      "type": "boolean",
      "x-prompt": "Would you like to enable component testing?"
    },
    "noBuilder": {
      "description": "When true, the angular.json file will not be modified to add Nightwatch commands, requiring the user to run Nightwatch from the command line independent of the Angular CLI",
      "type": "boolean"
    }
  },
  "required": ["environment", "cucumberRunner"]
}
