Skip to content

Unable to find input binding for element  #393

@BFalquet

Description

@BFalquet

What happened?

The package is working but when trying to run a shinytest that involves using filters on the right hand side panel there is an issue:
Example with the pca.app in test/testthat/test-pca.R:

  app <- AppDriver$new(
    app_dir = test_path("pca"),
    name = "pca",
    variant = platform_variant(),
    load_timeout = 300000,
    seed = default_app_seed
  )
ns2 <- NS("teal-main_ui-filter_panel")
 app$set_inputs(!!ns2("add-MAE-hd1-row_to_add") := "chromosome_name")

Error received while setting inputs: Unable to find input binding for element with id teal-main_ui-filter_panel-add-MAE-hd1-row_to_add
    ▆
 1. └─app$set_inputs(`:=`(!!ns2("add-MAE-hd1-row_to_add"), "chromosome_name"))
 2.   └─shinytest2:::app_set_inputs(...)

I tried to interact with the filtering panes with:

app$click("teal-teal_modules-pca-filter_panel-filters-available_filters-show")
app$set_inputs(`teal-teal_modules-pca-filter_panel-filters-MAE-MAE-hd1-row_to_add` = "chromosome")
app$set_inputs(`teal-teal_modules-pca-filter_panel-filters-MAE-hd1-MAE_chromosome_hd1_subset-inputs-selection` = character(0))

(I used shinytest2::record_test() to figure out the names of the namespace) but the selection is not updated. It feels like I am missing one step to validate the selection.

image

any idea @donyunardi @Dawid ?

sessionInfo()

No response

Relevant log output

No response

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions