Skip to contents

shinytest2::AppDriver uses several schemes to name consecutive screenshot files. Use this regex to capture paths of screenshots.

Usage

glue_regexp_snaps(name = NULL, auto_numbered = TRUE)

Arguments

name

The name passed to shinytest2::AppDriver to be used for screenshots. Can be NULL, 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 a name only to shinytest2::AppDriver$new() (recommended), and then invoke several shinytest2::AppDriver$expect_snapshot(), they resulting snapshots will all have the same name, appended by a counter from 000 to 999. If FALSE, any filename {name}*.png will be selected. You may need to set FALSE if you pass a name toshinytest2::AppDriver$expect_snapshot() directly.