ERR_ABORTED instability when running backstop test sequentially.

オープン
#1,506 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript
領域
testing

調査の方向性

まず、提供された BackstopJS 設定で逐次実行を再現し、次に puppet/onBefore.js と puppet/onReady.js を、生成されたリファレンス bitmap とテスト bitmap のパスと併せて調べます。失敗している 0__1 の検索結果を承認済みのファイル名と比較し、繰り返し実行した場合に一貫性のないキャプチャ名が生成されるかどうかを確認します。逐次実行が ERR_ABORTED なしで完了し、期待される bitmap 名を使用すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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
} 

主要言語
JavaScript
スター
7.2k
フォーク
617
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

garris/BackstopJS のほかの issue

garris/BackstopJS の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。