insightsengineering / insightsengineering/teal.modules.hermes
Unable to find input binding for element
- Dominant language
- R
- Stars
- 7
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
### 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.

any idea @donyunardi @dawid ?
### sessionInfo()
_No response_
### Relevant log output
_No response_
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct.
### Contribution Guidelines
- [X] I agree to follow this project's Contribution Guidelines.
### Security Policy
- [X] I agree to follow this project's Security Policy.
Contributor guide
Assessment
This issue has not been assessed yet.