Does not respect configuration hooks
まだ誰も着手していません。
評価
- 難易度
- 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 はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codeceptjs/ui のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
codeceptjs/ui#737 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
codeceptjs/ui#719 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
codeceptjs/ui#685 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 52/100
codeceptjs/ui#673 ·
-
Missing CORS headers オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
codeceptjs/ui#536 ·
似ている issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
georgestephanis/p2026#40 ·
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·