keepTraceForPassedTests failure

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, playwright
領域
testing-qa

調査の方向性

server.js の37行目付近と Playwright.js:2509 の Playwright ヘルパーから始め、keepVideoForPassedTests または keepTraceForPassedTests を有効にした報告済みの設定を使用します。失敗を再現し、合格したテスト向けのオプションがヘルパーの状態にどのような影響を与えるかを追跡します。完了の条件は、どちらのオプションでも undefined screenshot エラーが発生せず、要求された trace または video が保持されることです。

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

説明

stale

I try to use the config options keepTraceForPassedTests and keepVideoForPassedTests.

I use the codeception module for php.

trace and video works. But when i try to activate one of the keepTraceForPassedTests and keepVideoForPassedTests options. it fails.

it use the playwright helper object. https://github.com/Codeception/module-playwright/blob/main/server.js#L37

playwright-1  | Init:  {
playwright-1  |   pw_debug: true,
playwright-1  |   timeout: 5000,
playwright-1  |   url: 'https://event-ticketing.local',
playwright-1  |   browser: 'webkit',
playwright-1  |   show: true,
playwright-1  |   fullPageScreenshots: true,
playwright-1  |   trace: true,
playwright-1  |   video: true,
playwright-1  |   ignoreHTTPSErrors: true,
playwright-1  |   emulate: {
playwright-1  |     userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1',
playwright-1  |     viewport: { width: 375, height: 812 },
playwright-1  |     deviceScaleFactor: 3,
playwright-1  |     isMobile: true,
playwright-1  |     hasTouch: true,
playwright-1  |     defaultBrowserType: 'webkit'
playwright-1  |   },
playwright-1  |   keepVideoForPassedTests: true
playwright-1  | }
playwright-1  | Error saving screenshot:  TypeError: Cannot read properties of undefined (reading 'screenshot')
playwright-1  |     at Playwright.saveScreenshot (/usr/lib/node_modules/codeception-module-playwright/node_modules/codeceptjs/lib/helper/Playwright.js:2509:21)
playwright-1  |     at /usr/lib/node_modules/codeception-module-playwright/server.js:69:28
playwright-1  |     at Layer.handle [as handle_request] (/usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/layer.js:95:5)
playwright-1  |     at next (/usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/route.js:149:13)
playwright-1  |     at Route.dispatch (/usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/route.js:119:3)
playwright-1  |     at Layer.handle [as handle_request] (/usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/layer.js:95:5)
playwright-1  |     at /usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/index.js:284:15
playwright-1  |     at router.process_params (/usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/index.js:346:12)
playwright-1  |     at next (/usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/index.js:280:10)
playwright-1  |     at /usr/lib/node_modules/codeception-module-playwright/node_modules/body-parser/lib/read.js:137:5
主要言語
JavaScript
スター
4.2k
フォーク
756
平均マージ
2日 9時間
マージ済み PR(30日)
16

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

codeceptjs/CodeceptJS のほかの issue

codeceptjs/CodeceptJS の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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