context("steps") test_that("test steps", { # type expect_is(single_step("step_1", "Step 1"), "shiny.tag") expect_is( steps( "steps", list( single_step("step_1", "Step 1"), single_step("step_1", "Step 1")) ), "shiny.tag" ) # empty input expect_error(single_step()) expect_error(steps()) # Single step single_step_str <- as.character(single_step("step_1", "Step 1")) expect_true(grepl("
\n
\n
Step 1
\n
\n
", # nolint single_step_str)) # Steps steps_str <- steps("steps", list(single_step("step_1", "Step 1"), single_step("step_1", "Step 1"))) expect_true(grepl("
\n
\n
\n
Step 1
\n
\n
\n
\n
\n
Step 1
\n
\n
\n
", # nolint steps_str)) })