Build the regular expression to match consecutive screenshots
Source:R/shiny2screenshot.R
glue_regexp_snaps.Rd
shinytest2::AppDriver uses several schemes to name consecutive screenshot files. Use this regex to capture paths of screenshots.
Arguments
- name
The
name
passed to shinytest2::AppDriver to be used for screenshots. Can beNULL
, for no filtering by name.- auto_numbered
If
TRUE
, filter for snapshot files automatically numbered according to the scheme used by shinytest2::AppDriver. If you pass aname
only toshinytest2::AppDriver$new()
(recommended), and then invoke severalshinytest2::AppDriver$expect_snapshot()
, they resulting snapshots will all have the same name, appended by a counter from000
to999
. IfFALSE
, any filename{name}*.png
will be selected. You may need to setFALSE
if you pass a name toshinytest2::AppDriver$expect_snapshot()
directly.
See also
Other screenshot:
examples_app()
,
get_screenshot_args_attr()
,
get_screenshot_from_app()
,
get_screenshot_from_snaps
,
tag_shiny