Add a stable, renderer-neutral web test API for Valdi apps
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- playwright, typescript
調査の方向性
Start by reading the existing debugger input/query protocol and the valdi_test component testing API; the issue does not name source files or tests. Define a renderer-neutral browser test contract with a browser runner adapter and conformance coverage, then verify applications can test the listed interactions without depending on renderer-specific DOM details.
索引モデルが issue の本文から書いたものです。
説明
Problem
Valdi applications currently have to test real browser behavior through renderer-specific DOM details. In our downstream app, Puppeteer tests must know whether a control renders as valdi-input, a native input, an element id, data-accessibility-id, or an ARIA attribute. Renderer upgrades can change those details even when the Valdi component tree and user-visible behavior are unchanged, forcing broad rewrites of otherwise valid tests.
valdi_test is useful for component logic, but it cannot replace browser-level coverage for layout, navigation/history, persistence, focus/keyboard input, scrolling, file picking, and other web integrations. Downstream apps need a supported contract for those behaviors that is independent of the web renderer's current DOM shape.
Proposed solution
Provide a first-party web test driver or harness whose public API is expressed in Valdi concepts rather than CSS selectors or generated DOM structure. At minimum it should support:
- locating elements by
accessibilityId(and optionally stable explicit test IDs) - tap/click, text replacement, key input, selection, scroll, and file upload
- normalized reads/assertions for text, value, existence, visibility, enabled state, and bounds
- a deterministic signal for initial render, re-render, and navigation completion
- adapters for a common browser runner such as Playwright or Puppeteer
- a renderer conformance suite so renderer changes update the adapter without breaking application tests
The existing debugger input/query protocol (query, tap, text, key, scroll) looks like a promising foundation if it can be exposed to browser tests as a documented, versioned API. The important part is that applications depend on a stable Valdi testing contract and the renderer owns the translation to DOM/native implementation details.
Alternatives considered
We currently maintain raw Puppeteer selectors with fallback unions such as valdi-input#field, input[name=field], #accessibility-id, [data-accessibility-id=...], and [aria-label=...]. This works temporarily but duplicates renderer knowledge across every downstream app and still requires widespread edits when the renderer changes.
Pure valdi_test component tests cover logic but miss browser integration. A downstream-only wrapper reduces repetition in one repository, but it cannot provide compatibility guarantees or a conformance suite for renderer changes.
Related discussion
No response
Additional context
A representative goal would be for an application test to say, conceptually, driver.findByAccessibilityId('gaugeSt').replaceText('28') and remain valid when Valdi changes the underlying web element or attribute mapping.
- 主要言語
- C++
- スター
- 16.4k
- フォーク
- 538
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Snapchat/Valdi のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
new issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
llvm/llvm-project#245835 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
EchoTools/nevr-runtime#2823 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
triton-lang/triton#12945 ·
メンテナーはふだん 1 日以内に返信
-
Releases do not move the `latest` Docker tag: the branch `30.12` is taken for the latest release branch対応中かも @alexey-milovidov が今日担当しました。 オープンcomp-ci-infrastructure unexpected behaviour
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ClickHouse/ClickHouse#134282 ·
メンテナーはふだん 1 日以内に返信