context("modal") test_that("test modal created", { si_str <- as.character(modal()) expect_true(any(grepl("class=\"ui modal \"", si_str, fixed = TRUE))) }) test_that("test modal created with no header", { si_str <- as.character(modal()) expect_false(any(grepl("
", si_str, fixed = TRUE))) }) test_that("test modal created with given header", { si_str <- as.character(modal(header = "this is a test header")) expect_true(any(grepl("this is a test header", si_str, fixed = TRUE))) }) test_that("test modal created with no content", { si_str <- as.character(modal()) expect_true(any(grepl("", si_str, fixed = TRUE))) }) test_that("test modal created with given content", { si_str <- as.character(modal("this is a test content")) expect_true(any(grepl("this is a test content", si_str, fixed = TRUE))) }) test_that("test modal created with default footer", { si_str <- as.character(modal()) expect_true(any(grepl("