-
Notifications
You must be signed in to change notification settings - Fork 21
appDriver ignores enableBookmarking argument #379
Copy link
Copy link
Open
Description
I'm trying to test an app which displays button conditionally depending whether bookmarkStore option is set or not.
library(shiny)
# bookmarkable shiny app
ui <- fluidPage(
textInput("text", "Text", ""),
uiOutput("bookmark_button")
)
server <- function(input, output, session) {
shiny_option <- getShinyOption("bookmarkStore", "disabled")
print(shiny_option)
output$bookmark_button <- renderUI({
if (shiny_option != "disabled") {
bookmarkButton("Bookmark")
} else {
NULL
}
})
}
app <- shinyApp(ui, server, enableBookmarking = "url")- The app run normally displays bookmarkButton
app
- The app run through appDriver doesn't display a button
remdr <- shinytest2::AppDriver$new(app)
browseURL(remdr$get_url())Question:
- how to force appDriver to use
enableBookmarking?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

