[Feature Request]: Make sure `validate_input` works with all shiny inputs

オープン
#280 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, r
領域
frontend, testing

調査の方向性

test-shinytest2-validate_input.R と JavaScript の validateInput 関数から始め、各 Shiny 入力タイプについて一覧にあるエンドツーエンドテストを確認します。入力が別のコンテナにラップされている場合も含め、バリデーションが正しいコンテナを見つけることを確認し、一覧にあるすべてのテストがパスすることを確認します。

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

説明

core enhancement
Feature description

See test-shinytest2-validate_input.R in teal and make sure that following tests are covered. Objective of the tests is making sure that js function validateInput is able to find the container with the input value.

    var selector1 = '.shiny-input-container#' + inputId;
    var selector2 = '.shiny-input-container:has(#' + inputId + ')';

If any input is wrapped in other container, then validation message will not find relevant place for it to show the message. (i don't expect such scenario but we need to make sure)

testthat::test_that("e2e: validate_input validates sliderInput")
testthat::test_that("e2e: validate_input validates selectInput")
testthat::test_that("e2e: validate_input validates selectizeInput")
testthat::test_that("e2e: validate_input validates radioButtons")
testthat::test_that("e2e: validate_input validates checkboxGroupInput")
testthat::test_that("e2e: validate_input validates checkboxInput")
testthat::test_that("e2e: validate_input validates dateInput")
testthat::test_that("e2e: validate_input validates dateRangeInput")
testthat::test_that("e2e: validate_input validates pickerInput")

Code of Conduct
  • I agree to follow this project's Code of Conduct.
Contribution Guidelines
  • I agree to follow this project's Contribution Guidelines.
Security Policy
  • I agree to follow this project's Security Policy.
主要言語
R
スター
2
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

pharmaverse/teal.transform のほかの issue

pharmaverse/teal.transform の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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