What happened?
shinytests2 tests are failing on plot_with_settings when the resize popup does not render any contents
When inspecting the DOM, the recalculating class appears on the elements, hence the contents of the resize popup is empty
pkgload::load_all("/home/averissimo/work/roche🟦/packages📦/teal.widgets")
shiny::shinyApp(
ui = bslib::page_fluid(
shiny::actionButton("button", "Show/Hide"),
plot_with_settings_ui(
id = "plot_with_settings"
)
),
server = function(input, output, session) {
plot_r <- shiny::reactive({
ggplot2::ggplot(data.frame(x = 1:5, y = 1:5)) +
ggplot2::geom_point(ggplot2::aes(x = 1:5, y = 1:5))
})
show_hide_signal <- shiny::reactiveVal(TRUE)
shiny::observeEvent(input$button, {
show_hide_signal(
!show_hide_signal()
)
})
plot_data <- plot_with_settings_srv(
id = "plot_with_settings",
plot_r = plot_r,
height = c(400, 100, 1200),
width = c(500, 250, 750),
brushing = TRUE,
clicking = TRUE,
dblclicking = TRUE,
hovering = TRUE,
show_hide_signal = show_hide_signal
)
shiny::exportTestValues(
plot_r = plot_r,
plot_data = plot_data
)
}
)
sessionInfo()
Relevant log output
Code of Conduct
Contribution Guidelines
Security Policy
What happened?
shinytests2tests are failing onplot_with_settingswhen the resize popup does not render any contentsWhen inspecting the DOM, the
recalculatingclass appears on the elements, hence the contents of the resize popup is emptysessionInfo()
Relevant log output
Code of Conduct
Contribution Guidelines
Security Policy