question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incremental Reference Screenshot Updates Isn't Working

See original GitHub issue

The docs say “If you need to update references (or test) for just one app-state you can do so by invoking BackstopJS with the following argument: $ backstop reference --filter=<scenario.label>

The scenario that I want to update is the 10th item (0-index) in my list of scenarios, so I tried running: $ backstop reference --configPath=prod_backstop.json --filter=scenario[10].label. And I’m getting zsh errors as a result: zsh: no matches found: --filter=scenarios[10].label. Note: I initially used scenarios.label (plural) instead of the singular version in the docs, because the config file has the plural; but I also tried the singular scenario.label with the same result.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
garriscommented, Oct 14, 2016

🐥 Hey great! Thanks for the feedback – so glad it’s useful for you!

Cheers.

1reaction
angelariggscommented, Oct 14, 2016

My config file is this (with just a couple of scenarios for a shorter example):

{
  "id": "meyer_prod_config",
  "viewports": [
    {
      "name": "desktop",
      "width": 1200,
      "height": 3000
    },
  ],
  "scenarios": [
    {
      "label": "Item 0: Meyer > Homepage",
      "url": "https://mmt.pantheonsite.io/",
      "hideSelectors": [],
      "removeSelectors": [],
      "selectors": [
        "body"
      ],
      "readyEvent": null,
      "delay": 500,
      "misMatchThreshold" : 0.1
    },
    {
      "label": "Item 1: Meyer > Trustee Landing Page",
      "url": "https://mmt.pantheonsite.io/about/trustees",
      "hideSelectors": [],
      "removeSelectors": [],
      "selectors": [
        "body"
      ],
      "readyEvent": null,
      "delay": 500,
      "misMatchThreshold" : 0.1
    },
    {
      "label": "Item 2: Meyer > Trustee: Toya Fick",
      "url": "https://mmt.pantheonsite.io/about/trustees/toya-fick",
      "hideSelectors": [],
      "removeSelectors": [],
      "selectors": [
        "body"
      ],
      "readyEvent": null,
      "delay": 500,
      "misMatchThreshold" : 0.1
    }
  ],
  "paths": {
    "bitmaps_reference": "backstop_data/prod_reference",
    "bitmaps_test": "backstop_data/prod_test",
    "casper_scripts": "backstop_data/casper_scripts",
    "html_report": "backstop_data/prod_html_report",
    "ci_report": "backstop_data/prod_ci_report"
  },
  "casperFlags": [
    "--ignore-ssl-errors=true",
    "--ssl-protocol=any"
  ],
  "engine": "phantomjs",
  "report": ["browser"],
  "debug": false
}

So if I wanted to re-do the references for Item 1, would I technically run backstop reference --configPath=prod_backstop.json --filter=Item 1: Meyer > Trustee Landing Page? (Which would mean I picked terrible labels 😃 )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot incremental refresh and real-time data in Power BI
Incremental refresh isn't designed to support cases where the filtered date column is updated in the source system. An update is interpreted as ......
Read more >
Solved: Incremental refresh can not toggle to ON
Hi, Need help to understand why I can't toggle Incremental refresh to ON. Followed the official documentation to set up the parameters for...
Read more >
How to increment worksheet reference automatically in Excel?
Increment worksheet reference automatically with Kutools for Excel. The above method can help to reference a specific cell value from multiple same format ......
Read more >
Snapshots Are NOT Backups - Oracle
The RMAN incrementally updated backup method requires an initial image copy backup of the database, i.e. 1X copy of the database minus temp...
Read more >
How to get Excel file Cell Value from specific reference and ...
Need to increment Column and Rowas also. I have used below activit but not able to get the expected output. Below is the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found