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

Does not respect configuration hooks

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

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

評価

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

調査の方向性

まず example codecept.conf.js と @codeceptjs/configure のフックを確認し、次に表示された設定とフックによって調整された値を比較します。UI が設定をどのように解析して表示するかを追跡します。setBrowser、setHeadlessWhen、setTestHost、setCommonPlugins などのフックで設定された構成が UI に表示されるか、その動作が意図的なものとして文書化されていれば完了です。

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

説明

The UI does not appear to account for configuration set through hooks from @codeceptjs/configure.

As an example, I have the following codecept.conf.js:

const {
  setHeadlessWhen,
  setCommonPlugins,
  setBrowser,
  setTestHost
} = require('@codeceptjs/configure');

const productionHost = 'https://example.com';

setBrowser(process.env.BROWSER || 'chromium');
setHeadlessWhen(process.env.HEADLESS);
setTestHost(process.env.TESTHOST || productionHost)
setCommonPlugins();

exports.config = {
  name: 'example-ui-tests',
  tests: './integration/**/*.test.ts',
  output: './output',
  helpers: {
    Playwright: {
      show: true,
      waitForNavigation: 'networkidle',
    },
  },
  bootstrap: null,
  include: {
    I: './custom-steps.js',
  },
  require: ['ts-node/register']
};

When I run the UI and view the config, it's as follows:

{
 "output": "./output",
 "helpers": {
  "Playwright": {
   "show": true,
   "waitForNavigation": "networkidle"
  }
 },
 "include": {
  "I": "./custom-steps.js"
 },
 "mocha": {},
 "bootstrap": null,
 "timeout": null,
 "teardown": null,
 "hooks": [],
 "gherkin": {},
 "plugins": {
  "screenshotOnFail": {
   "enabled": true
  }
 },
 "stepTimeout": 0,
 "stepTimeoutOverride": [
  {
   "pattern": "wait.*",
   "timeout": 0
  },
  {
   "pattern": "amOnPage",
   "timeout": 0
  }
 ],
 "name": "example-ui-tests",
 "tests": "./integration/**/*.test.ts",
 "require": [
  "ts-node/register"
 ]
}

It doesn't seem to be applying any hooks to the parsed config. Is this intended behavior with a workaround or a bug?

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

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

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

はじめの一歩

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

codeceptjs/ui のほかの issue

codeceptjs/ui の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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