Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

For an assertion failures for the steps I.see or I.dontSee methods assertion error messages are not able to capture as it's not available in test object in hook method _failure(test)

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

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

評価

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

調査の方向性

まず、Playwright のセットアップで I.seeI.dontSee のアサーションが失敗した場合について、CodeceptJS のフックメソッド _failure(test) を追跡します。アサーションメッセージがどこに保存されるか、また Allure レポートがそれを受け取るかを確認します。失敗メッセージがフックから利用でき、レポートに表示されれば完了です。

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

説明

stale
What are you trying to achieve?

For an assertion failures for the steps I.see or I.dontSee methods assertion error messages should be able to capture

What do you get instead?

Not able to capture the error message as the same is not available in test object in hook method _failure(test).
Screenshot 2024-08-21 at 11 27 11 AM

Hence not able to capture assertion failure message in Allure report:
Screenshot 2024-08-21 at 11 30 13 AM

Provide console output if related. Use --verbose mode for more details.

# paste output here

Provide test source code if related

// paste test
Details
  • CodeceptJS version: 3.6.4
  • NodeJS Version: 20
  • Operating System: MacOS
  • Playwright
  • Configuration file:
# paste config here
主要言語
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 を短くまとめたダイジェスト。