Expand homepage browser coverage beyond the document title
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 88/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- testing-qa
調査の方向性
src/tests/e2e/home.spec.ts から始め、次に src/app/page.tsx と src/components/form.tsx を調べて、レンダリングされる見出し、アクセシブルなフォームコントロール、toast の動作、主要なリンクを特定します。ドキュメントタイトルのアサーションを維持したまま、ホームページの E2E テストのみを更新します。可視の見出し、アクセシブルな入力コントロールと送信コントロール、期待される主要なリンクをセマンティックなアサーションでカバーできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Task
Expand the homepage browser test with semantic assertions for the rendered headline, demo form, and primary links.
Context
The staging task-discovery review found that src/__tests__/e2e/home.spec.ts only asserts the document title, while src/app/page.tsx and src/components/form.tsx render the core headline, name input, submit control, toast behavior, and primary links.
Discovery report task-discovery-b8a8d41f-6598-45f5-8609-de35e88b9693 identified this open issue as the exact existing match. Continue this issue rather than creating a duplicate.
The subsequent discovery report task-discovery-2e9c1f39-93c9-42cf-9466-ec103ef8d13b also confirmed this issue as the matching open task. This publication update uses that report's completed repository inspection; it does not claim a new source inspection or test execution.
Confirmed source evidence
Previously recorded source inspection against main at commit 6b5e541f090e591b3faa3b46f6d0b764d3aa54e6:
src/__tests__/e2e/home.spec.ts, lines 3–6: navigates to/and asserts only the document title (/Next.js Starter/).src/app/page.tsx, lines 8–30: renders the localized headline,HeroForm, and the getting-started and GitHub links.src/components/form.tsx, lines 38–59: renders a name input with a localized placeholder and a localized submit button.
Additional confirmed evidence from report task-discovery-2e9c1f39-93c9-42cf-9466-ec103ef8d13b:
- Complete inspection of
src/__tests__/e2e/home.spec.ts, lines 3–7, confirms the browser test currently navigates to/and checks only the document title. - Complete inspection of
src/app/page.tsx, lines 8–33, andsrc/components/form.tsx, lines 36–63, confirms the localized heading, demo form input and submit control, and both primary links are rendered but lack assertions in that test. - Duplicate decision: continue open #349 rather than creating another homepage coverage issue. The report's issue-body excerpt was truncated; the full body was read for this publication update.
Scope
- Preserve the existing document-title assertion.
- Assert the visible homepage headline and the demo form's accessible input and submit control.
- Assert both expected primary links using semantic locators rather than brittle CSS or DOM structure.
Acceptance criteria
- The existing document-title assertion remains in place.
- The homepage E2E test verifies the visible localized headline using a semantic heading locator.
- It verifies the demo form's input and localized submit control using accessible, user-facing locators appropriate to the existing markup and localized input placeholder.
- It verifies both primary links using semantic link locators and their expected destinations: the starter's getting-started documentation and GitHub repository.
- Assertions do not depend on CSS classes, incidental DOM nesting, or styling.
Implementation Surface
- Inspect:
src/__tests__/e2e/home.spec.ts,src/app/page.tsx,src/components/form.tsx,src/messages/en.json,playwright.config.ts. - Update:
src/__tests__/e2e/home.spec.ts. - Public contracts affected: none.
Verification guidance
- With the repository's normal dependencies and environment configured, run
npm run e2e -- src/__tests__/e2e/home.spec.ts. - Run the focused test across all configured browser projects: Chromium, Firefox, and WebKit (
playwright.config.ts, lines 33–48); do not restrict validation to a single project. - Run the configured E2E suite with
npm run e2eto check for locator or rendering regressions. - Review locator choices for accessible semantics and localization-aware expectations rather than brittle structure/style matching.
- Record focused-test and configured-suite results when implementing; this issue update is evidence gathering and planning, not a test execution result.
Out of scope
- Repository selection, authentication changes, new homepage behavior, or unrelated visual redesign.
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 0
- 平均マージ
- 12分
- マージ済み PR(30日)
- 6
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
polka-codes/test のほかの issue
-
Return an explicit error response from the Stripe webhook outer catch対応中かも @xlc が 15 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
polka-codes/test#382 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
polka-codes/test#361 ·
メンテナーはふだん 1 日以内に返信
-
Validate helloAction input on the server before constructing a greeting対応中かも @xlc が 15 日前に担当しました。 オープンbug
難易度 3/5 半日 初心者へのやさしさ 72/100
polka-codes/test#381 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 1/100
polka-codes/test#366 ·
メンテナーはふだん 1 日以内に返信
-
Add focused tests for Stripe webhook validation and subscription handling対応中かも @xlc が 15 日前に担当しました。 オープンenhancement
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
polka-codes/test#348 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
polka-codes/test の issue をすべて見る
似ている issue
-
Replace discontinued crypto-js in the theme対応中かも @aelmanaa が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
PaloAltoNetworks/docusaurus-openapi-docs#1689 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
solana-foundation/solana-web3.js#4015 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
ivopogace/opencode-courier#422 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
chapel-lang/chapel-vscode#158 ·
メンテナーはふだん 1 日以内に返信