appDriver ignores enableBookmarking argument
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- r
- Domain
- testing-qa
Research direction
Start with the AppDriver$new(app) example and compare its get_url() behavior with running the app directly. Inspect how appDriver handles the app's enableBookmarking = "url" option. Done when the driver-launched app exposes bookmarkButton under the same option, with a regression test for this case.
Written by the indexing model from the issue text.
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?
- Dominant language
- R
- Stars
- 123
- Forks
- 23
- Avg merge
- 3h 13m
- Merged PRs (30d)
- 12
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rstudio/shinytest2
-
ai-generated-issue bug
Difficulty 4/5 3-5 days Newbie friendliness 53/100
rstudio/shinytest2#463 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
rstudio/shinytest2#432 ·
Maintainers usually reply within 1 day
-
Rhandsontable dropdown functionality breaks in Shinytest2 browser (JS permissions policy violation)Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rstudio/shinytest2#416 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
rstudio/shinytest2#390 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
rstudio/shinytest2#376 ·
Maintainers usually reply within 1 day
All issues in rstudio/shinytest2
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
cran-task-views/Spatial#127 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Add two cautions to the `simulate_dyad_responses()` helpPossibly taken A pull request linked to this issue is open or already merged. Opendocumentation priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Pascal-Kueng/dyadMLM#179 ·
Maintainers usually reply within 1 day