e2e | rework setup `host` and `port` option
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- nuxt, playwright, typescript
- 領域
- testing
調査の方向性
e2e の setup() エントリーポイントから始めて、現在の開発/テストサーバーオプションの処理を確認します。提案されている testServer host、port、build、already-running-server、baseURL の動作を Vitest runner およびブラウザフローと比較します。これらのオプションが、指定された非 localhost の baseURL とサーバー構成をサポートすれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the feature
I think we should consider reworking the host and port options for the e2e setup() function.
In my opinion, it is currently not possible to specify a base URL with the default setup dev/test server. Sometimes e2e needs a non-localhost base URL to be able to implement csrf token/session cookies.
The current workaround would be to start the dev server before testing.
Proposal
await setup({
runner: 'vitest',
// testServer: false // run against an already running server
testServer: {
build: true, // boolean
host: '0.0.0.0', // or whatever
port: 80,
},
baseURL: 'http://frontend.local.test', // https://playwright.dev/docs/api/class-testoptions#test-options-base-url
browser: true,
})
baseURL can be different form testServer.host. (echo "127.0.0.1 frontend.local.test" >> /etc/hosts)
Additional information
- Would you be willing to help implement this feature?
- Could this feature be implemented as a module?
Final checks
- Read the contribution guide.
- Check existing discussions and issues.
- 主要言語
- TypeScript
- スター
- 445
- フォーク
- 121
- 平均マージ
- 3日 11時間
- マージ済み PR(30日)
- 23
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nuxt/test-utils のほかの issue
-
nuxt environment: `fetch(new Request(url))` fails with `Failed to parse URL from [object Request]`対応中かも @yamachi4416 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
nuxt/test-utils#1891 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
nuxt/test-utils#1889 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
nuxt/test-utils#1883 ·
メンテナーはふだん 2 日以内に返信
-
pending triage
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
nuxt/test-utils#1671 · コメント 5 件 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
`@vitest-environment-options` is not working対応中かも @yamachi4416 が 210 日前に担当しました。 オープンpending triage
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
nuxt/test-utils#1541 · リアクション 2 件 ·
メンテナーはふだん 2 日以内に返信
nuxt/test-utils の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: Search input loses focus while typing on the Inventory, Reservations and Locations lists (view_configurations enabled)対応中かも @medusa-os-bot が今日担当しました。 オープンstatus: needs triaging type: bug version: 2.0
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
medusajs/medusa#17886 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
marimo-team/marimo#11949 ·
メンテナーはふだん 1 日以内に返信
-
bug server-time v2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
modelcontextprotocol/servers#5559 ·
メンテナーはふだん 1 日以内に返信
-
D1 Time Travel restore help advertises 30 days without a plan qualifier対応中かも @akhil9tiet が今日担当しました。 オープンbug package:wrangler product:d1
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
cloudflare/workers-sdk#17000 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信