Skip to content

Commit

Permalink
Adds 1 second delay between actions, hoping this will give CI time to…
Browse files Browse the repository at this point in the history
… match input status
  • Loading branch information
edgararuiz committed Apr 3, 2024
1 parent e55ecce commit b1b4c50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-app-server.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ test_that("chattr app initial values are consistent", {
shiny_app,
options = list("chattr-shiny-test" = TRUE)
)
Sys.sleep(1)
app$expect_values(screenshot_args = FALSE)
app$set_inputs(prompt = "hello", allow_no_input_binding_ = TRUE)
Sys.sleep(1)
app$click("submit")
Sys.sleep(1)
app$expect_values(screenshot_args = FALSE)
app$click("options")
Sys.sleep(1)
app$expect_values(screenshot_args = FALSE)
app$click("saved")
Sys.sleep(1)
app$expect_values(screenshot_args = FALSE)
})

Expand Down

0 comments on commit b1b4c50

Please sign in to comment.