Skip to content

Commit

Permalink
add some more deferred stops
Browse files Browse the repository at this point in the history
closes #37
  • Loading branch information
maxheld83 committed Nov 20, 2024
1 parent 6a24e6e commit 91825ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ test_that("example app for automatically numbered, named screenshots", {
name = "mpg",
variant = shinytest2::platform_variant(r_version = FALSE)
)
withr::defer(driver$stop())
driver$expect_screenshot()
driver$expect_screenshot()
})
Expand All @@ -40,6 +41,7 @@ test_that("example app for automatically numbered, unnamed screenshots", {
examples_app("05_sliders"),
variant = shinytest2::platform_variant(r_version = FALSE)
)
withr::defer(driver$stop())
driver$expect_screenshot()
driver$expect_screenshot()
})
Expand Down

0 comments on commit 91825ff

Please sign in to comment.