tests/testthat/test-app-rprofile.R

test_that("{shinytest2} recording: dir-profile", {
  skip_if_no_apps()

  app <- AppDriver$new(
    test_path("apps/dir-rprofile"),
    name = "dir-profile",
    height = 1133,
    width = 1282
  )

  expect_equal(
    app$get_value(output = "txt"),
    "found!"
  )
})

Try the shinytest2 package in your browser

Any scripts or data that you put into this service are public.

shinytest2 documentation built on Jan. 10, 2026, 1:07 a.m.