Skip to content

Commit

Permalink
Updates for rstudio/shiny#3998
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Mar 20, 2024
1 parent 7544461 commit 69e4113
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 161 deletions.
9 changes: 8 additions & 1 deletion inst/apps/122-async-outputs/tests/testthat/test-mytest.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
library(shinytest2)

test_that("Migrated shinytest test: mytest.R", {
app <- AppDriver$new(load_timeout = 15000, seed = 100, shiny_args = list(display.mode = "normal"))
app <- AppDriver$new(
load_timeout = 15000, seed = 100,
shiny_args = list(display.mode = "normal"),
# Use legacy datatable implementation just for the
# info$datatable$colnames test below. We could, of course,
# update that test, but it's also good to test the legacy.
options = list(shiny.legacy.datatable = TRUE)
)

# Wait until an async value is available
app$wait_for_value(output = "printa", timeout = 10 * 1000)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@

},
"output": {
"datatable": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatablea": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatable": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"datatablea": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"image": {
"message": "OK",
"call": "NULL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@

},
"output": {
"datatable": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatablea": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatable": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"datatablea": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"image": {
"message": "OK",
"call": "NULL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@

},
"output": {
"datatable": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatablea": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatable": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"datatablea": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"image": {
"message": "OK",
"call": "NULL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@

},
"output": {
"datatable": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatablea": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatable": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"datatablea": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"image": {
"message": "OK",
"call": "NULL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@

},
"output": {
"datatable": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatablea": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatable": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"datatablea": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"image": {
"message": "OK",
"call": "NULL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@

},
"output": {
"datatable": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatablea": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatable": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"datatablea": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"image": {
"message": "OK",
"call": "NULL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@

},
"output": {
"datatable": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatablea": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatable": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"datatablea": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"image": {
"message": "OK",
"call": "NULL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@

},
"output": {
"datatable": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatablea": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatable": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"datatablea": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"image": {
"message": "OK",
"call": "NULL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@

},
"output": {
"datatable": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatablea": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatable": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"datatablea": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"image": {
"message": "OK",
"call": "NULL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@

},
"output": {
"datatable": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatablea": {
"message": "OK",
"call": "NULL",
"type": [
"shiny.silent.error",
"validation"
]
},
"datatable": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"datatablea": [
"OK",
"NULL",
"c(\"shiny.silent.error\", \"validation\")"
],
"image": {
"message": "OK",
"call": "NULL",
Expand Down

0 comments on commit 69e4113

Please sign in to comment.