Creating Tests page uses deprecated TestBench ElementQuery API

オープン 初心者向け
#6,596 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@jcgueriaud1 がすでに取り組んでいます。

2026年11月12日 から。

  • #6633 @jcgueriaud1 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
83/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
documentation

調査の方向性

articles/flow/testing/end-to-end/creating-tests.adocから始め、挙げられている置き換えとフィルターについて、現在のTestBench ElementQuery APIを確認してください。既存のコンポーネント型を使い、フォームの値をgetText()と比較するように例を更新してください。ページで非推奨のメソッドを教えておらず、例のアサーションが有効であれば完了です。他のend-to-endページは別個の後続作業です。

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

説明

The Creating Tests page (articles/flow/testing/end-to-end/creating-tests.adoc) shows ElementQuery methods that are deprecated in current TestBench, and omits their replacements:

  • first() and waitForFirst() are deprecated (since 10.0, for removal) in favor of single() and waitForSingle(), or get(int) when picking from several matches is intentional.
  • attribute(name, value) is deprecated (since 9.3) in favor of withAttribute(name, value).
  • The filter methods added in 9.3 and later aren't listed: withId(), withTestId()/testId(), withAttribute*(), withClassName(), withTheme(), withLabel(), withText(), withCaption(), withPlaceholder(), withCondition(), withPropertyValue(), and so on.
  • The example uses LabelElement, whose component no longer exists.
  • The form example compares a String with a DivElement in assertEquals(), so the test would always fail; it needs getText().

Other pages under articles/flow/testing/end-to-end/ also use first() and waitForFirst() and could be updated separately.

主要言語
AsciiDoc
スター
38
フォーク
225
平均マージ
17時間 38分
マージ済み PR(30日)
214

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

vaadin/docs のほかの issue

vaadin/docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

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

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