##############################################################
##############################################################
# This is an example configuration provided by Wraith.
# Feel free to amend for your own requirements.
# ---
# This particular config is intended to demonstrate how
# to use Wraith in 'capture' mode, which is best suited to
# comparing a test and live version of the same website.
#
# `wraith capture capture.yaml`
#
##############################################################
##############################################################

# (required) The engine to run Wraith with. Examples: 'phantomjs', 'casperjs', 'slimerjs'
browser: "phantomjs"
phantomjs_options: --ignore-ssl-errors=true

# (required) The domains to take screenshots of.
domains:
  current:  "https://staging.sparkdesignsystem.com"
  new:      "http://localhost:3000"

# (required) The paths to capture. All paths should exist for both of the domains specified above.
paths:
  home:     /
  design-principles: /gettingstarted/design-principles.html
  designers: /gettingstarted/designers.html
  developers: /gettingstarted/developers.html
  color: /patterns/fundamentals/color.html
  layers: /patterns/fundamentals/layers.html
  layout: /patterns/fundamentals/layout.html
  space: /patterns/fundamentals/space.html
  typography: /patterns/fundamentals/typography.html
  accordions: /patterns/components/accordions.html
  alerts: /patterns/components/alerts.html
  buttons: /patterns/components/buttons.html
  card: /patterns/components/card.html
  dictionary: /patterns/components/dictionary.html
  dividers: /patterns/components/dividers.html
  footer: /patterns/components/footer.html
  highlight-board: /patterns/components/highlight-board.html
  icons: /patterns/components/icons.html
  inputs: /patterns/components/inputs.html
  links: /patterns/components/links.html
  lists: /patterns/components/lists.html
  masthead: /patterns/components/masthead.html
  modals: /patterns/components/modals.html
  navigation: /patterns/components/navigation.html
  pagination: /patterns/components/pagination.html
  promo: /patterns/components/promo.html
  tables: /patterns/components/tables.html
  tabbed-navigation: /patterns/components/tabs.html
  toggle: /patterns/components/toggle.html
  multi-property-utilities: /patterns/utilities/multi-property.html
  single-property-utilities: http://localhost:3000/patterns/utilities/single-property.html
  accessibility: /docs/accessibility.html
  class-naming-convention: /docs/class-naming-convention.html

# (required) Screen widths (and optional height) to resize the browser to before taking the screenshot.
screen_widths:
  - 320
  - 768
  - 1440

# (optional) JavaScript file to execute before taking screenshot of every path. Default: nil
#before_capture: 'javascript/disable_javascript--phantom.js'

# (required) The directory that your screenshots will be stored in
directory: 'wraith/shots'

# (required) Amount of fuzz ImageMagick will use when comparing images. A higher fuzz makes the comparison less strict.
fuzz: '20%'

# (optional) The maximum acceptable level of difference (in %) between two images before Wraith reports a failure. Default: 0
threshold: 6

# (optional) Specify the template (and generated thumbnail sizes) for the gallery output.
gallery:
  template: 'slideshow_template' # Examples: 'basic_template' (default), 'slideshow_template'
  thumb_width:  200
  thumb_height: 200

# (optional) Choose which results are displayed in the gallery, and in what order. Default: alphanumeric
# Options:
#   alphanumeric - all paths (with or without a difference) are shown, sorted by path
#   diffs_first - all paths (with or without a difference) are shown, sorted by difference size (largest first)
#   diffs_only - only paths with a difference are shown, sorted by difference size (largest first)
# Note: different screen widths are always grouped together.
mode: diffs_only
