garris / garris/BackstopJS

ERR_ABORTED instability when running backstop test sequentially.

Open
#1,506 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm having trouble running backstop stably.

I currently have an app in Vue 2 and I created a script to authenticate onBefore and then take screenshots. I created a simple page with just the text ''hi'' to test, but I also used "complex" pages and both fail with the same error. The problem is that when running the tests sequentially (after passing, run again) the tests fail with the error below:

![image](https://github.com/garris/BackstopJS/assets/97542710/af699d7e-c4a1-413c-bcec-da4e858bb44d)

![image](https://github.com/garris/BackstopJS/assets/97542710/f6b09b03-fc83-4a6c-a72b-3015ea85ce7b)

Note: in the error it searches for the name with two underscores (0__1), but the reference file that was approved has only one:

![image](https://github.com/garris/BackstopJS/assets/97542710/e5fc6e8a-92b2-4a24-b6ed-5d12e35b8d13)

Any idea what it could be? Please help me, I've tried several alternatives and nothing works correctly. Thanks.

my json:

```
{
"id": "backstop_default",
"viewports": [
{
"label": "mobile",
"width": 360,
"height": 740
},
{
"label": "web",
"width": 1440,
"height": 1024
}
],
"onBeforeScript": "puppet/onBefore.js",
"onReadyScript": "puppet/onReady.js",
"scenarios": [
{
"label": "Teste",
"cookiePath": "backstop_data/engine_scripts/cookies.json",
"url": "http://localhost:3000/teste",
"referenceUrl": "",
"readyEvent": "",
"readySelector": "",
"delay": 4000,
"hideSelectors": [
"#tex-toast"
],
"removeSelectors": [],
"hoverSelector": "",
"clickSelector": "",
"postInteractionWait": 0,
"selectors": [],
"selectorExpansion": true,
"expect": 0,
"misMatchThreshold": 0.3,
"requireSameDimensions": true
}
],
"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": 4,
"asyncCompareLimit": 20,
"debug": false,
"debugWindow": false
}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.