Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override specific scenarios via template? #30

Open
ghost opened this issue Dec 3, 2019 · 0 comments
Open

Override specific scenarios via template? #30

ghost opened this issue Dec 3, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 3, 2019

I need to use backstop-crawl to regenerate my test senarios from time to time.

This is my backstop.template.json

{
  "viewports": [
    {
      "label": "phone",
      "width": 320,
      "height": 480
    },
    {
      "label": "tablet",
      "width": 1024,
      "height": 768
    },
    {
      "name": "desktop",
      "width": 1440,
      "height": 900
    }
  ],
  "defaultScenario": {
    "label": "",
    "url": "",
    "referenceUrl": "",
    "selectors": ["document"],
    "hideSelectors": [],
    "delay": 1500,
    "misMatchThreshold": 0.1
  },
  "scenarios": [],
  "paths": {
    "bitmaps_reference": "backstop_data/bitmaps_reference",
    "bitmaps_test": "backstop_data/bitmaps_test",
    "casper_scripts": "backstop_data/casper_scripts",
    "html_report": "backstop_data/html_report",
    "ci_report": "backstop_data/ci_report"
  },
  "casperFlags": [],
  "engine": "puppeteer",
  "report": ["browser"],
  "debug": false
}

I know that a handful of my scenarios fail unless I up the delay to 3000 instead of 1500.

Is it possible to modify this template in some way so that when I run backstop crawl and generate my backstop.js, those cases use a different delay value than the default?

@ghost ghost mentioned this issue Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants