ERR_ABORTED instability when running backstop test sequentially.

Abierto
#1,506 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
javascript
Área
testing

Línea de trabajo

Empieza reproduciendo la ejecución secuencial con la configuración de BackstopJS proporcionada; después, inspecciona puppet/onBefore.js y puppet/onReady.js junto con las rutas generadas de los bitmaps de referencia y de prueba. Compara la búsqueda fallida de 0__1 con el nombre de archivo aprobado y determina si las ejecuciones repetidas producen nombres de captura inconsistentes. Se considera terminado cuando las ejecuciones secuenciales se completan sin ERR_ABORTED y utilizan los nombres de bitmap esperados.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

image

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

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
} 

Lenguaje dominante
JavaScript
Estrellas
7.2k
Forks
617
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de garris/BackstopJS

Todos los issues de garris/BackstopJS

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.