Feature description
TealAppDriver has a method navigate_teal_tab() it would be nice to have get_tab_choices() function as well - then I could have a generic test which is "load app and navigate through all the tabs to make sure there are no validation errors".
Also, could TealAppDriver be exported? It's great functionality - I can use ::: of course in the meantime.
Would something like this work for me for now:
get_tab_choices <- function(app_driver) {
html <- app_driver$get_html(".teal-modules-tree a")
paste(html, collapse = "") |>
rvest::read_html() |>
rvest::html_elements("a") |>
rvest::html_text() |>
trimws()
}
I'm not sure the best value to put in get_html to make sure I capture all modules and nothing else.
Thanks
Code of Conduct
Contribution Guidelines
Security Policy
Feature description
TealAppDriverhas a methodnavigate_teal_tab()it would be nice to haveget_tab_choices()function as well - then I could have a generic test which is "load app and navigate through all the tabs to make sure there are no validation errors".Also, could
TealAppDriverbe exported? It's great functionality - I can use ::: of course in the meantime.Would something like this work for me for now:
I'm not sure the best value to put in
get_htmlto make sure I capture all modules and nothing else.Thanks
Code of Conduct
Contribution Guidelines
Security Policy