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

How about switching back to resemblejs? #1541

Open
PeterChen1997 opened this issue Feb 6, 2024 · 1 comment
Open

How about switching back to resemblejs? #1541

PeterChen1997 opened this issue Feb 6, 2024 · 1 comment

Comments

@PeterChen1997
Copy link

I found that, the newest resemblejs support find the tiny difference between the gray and white color, while current node-resemble-js not.

Here's the result from resemblejs website

image

but current config will not find the diffs..

here is my config

{
  "id": "backstop_default",
  "viewports": [
    {
      "label": "phone",
      "width": 320,
      "height": 480
    },
    {
      "label": "pc",
      "width": 1400,
      "height": 1400
    }
  ],
  "onBeforeScript": "puppet/onBefore.js",
  "onReadyScript": "puppet/onReady.js",
  "scenarioDefaults": {
    "delay": 0,
    "postInteractionWait": 0,
    "selectors": [],
    "expect": 0,
    "misMatchThreshold": 0.0001,
    "requireSameDimensions": true
  },
  "scenarios": [
    {
      "label": "Storybook - autoSizeTextarea",
      "url": "http://localhost:6006/iframe.html?viewMode=story&id=components-autosizetextarea--override-background-color-style&args="
    }
  ],
  "resembleOutputOptions": {
    "usePreciseMatching": true,
    "errorType": "movementDifferenceIntensity"
  },
  "paths": {
    "bitmaps_reference": "backstop_data/bitmaps_reference",
    "bitmaps_test": "backstop_data/bitmaps_test",
    "engine_scripts": "backstop_data/engine_scripts",
    "html_report": "backstop_data/html_report",
    "ci_report": "backstop_data/ci_report"
  },
  "report": ["browser"],
  "engine": "puppeteer",
  "engineOptions": {
    "args": ["--no-sandbox"]
  },
  "asyncCaptureLimit": 5,
  "asyncCompareLimit": 50,
  "debug": false,
  "debugWindow": false
}
image

The color is obviously switched..

@PeterChen1997
Copy link
Author

image

@PeterChen1997 PeterChen1997 reopened this Feb 6, 2024
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

No branches or pull requests

1 participant