Skip to content

Commit 205e200

Browse files
committed
Update test
1 parent bc18d57 commit 205e200

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

tests/testthat/test-05-mod_edish.R

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,23 @@ test_that("default settings are visible after Single-Sign-On redirect", {
5353
test_that("the app's state is restored when bookmarking" %>%
5454
vdoc[["add_spec"]](specs$framework_specs$bookmarking), {
5555
# Initialize test app
56-
app_bmk <- shinytest2::AppDriver$new(
57-
app_dir = "./apps/bookmarking_app", name = "test_bookmarking"
58-
)
59-
56+
app_bmk <- shinytest2::AppDriver$new(
57+
app_dir = "./apps/bookmarking_app", name = "test_bookmarking"
58+
)
59+
6060
app_bmk$wait_for_idle()
6161

6262
# Update values
6363
app_bmk$set_inputs(`edish-arm_id` = c("arm1", "arm2"))
6464
app_bmk$set_inputs(`edish-x_axis` = "test 2")
65-
app_bmk$set_inputs(`edish-x_ref` = 4.1)
65+
app_bmk$set_inputs(`edish-x_ref` = 4.0)
6666
app_bmk$set_inputs(`edish-x_plot_type` = "Baseline")
6767

6868
# It is not possible to set shinyWidgets::numericalRangeInput using shinytest2
6969
# We use an alternative approach by setting the url query part manually
70-
# app_bmk$set_inputs(`edish-x_rng` = c(.5, 2.5))
71-
# app_bmk$set_inputs(`edish-y_rng` = c(.5, 1.5))
72-
range_url_part <- "&edish-x_rng=%5B0.5%2C2.5%5D&edish-y_rng=%5B0.5%2C1.5%5D"
70+
# app_bmk$set_inputs(`edish-x_rng` = c(0.1, 5.1))
71+
# app_bmk$set_inputs(`edish-y_rng` = c(0.1, 7.1))
72+
range_url_part <- "&edish-x_rng=%5B0.1%2C5.1%5D&edish-y_rng=%5B0.1%2C7.1%5D"
7373

7474
# Bookmark
7575
app_bmk$set_inputs(!!"._bookmark_" := "click") # nolint
@@ -90,9 +90,9 @@ test_that("the app's state is restored when bookmarking" %>%
9090
`edish-arm_id` = c("arm1", "arm2"),
9191
`edish-x_axis` = "test 2",
9292
`edish-x_plot_type` = "Baseline",
93-
`edish-x_ref` = 4.1,
94-
`edish-x_rng` = c(.5, 2.5),
95-
`edish-y_rng` = c(.5, 1.5)
93+
`edish-x_ref` = 4.0,
94+
`edish-x_rng` = c(0.1, 5.1),
95+
`edish-y_rng` = c(0.1, 7.1)
9696
)
9797
)
9898
testthat::expect_identical(actual, expected)

0 commit comments

Comments
 (0)