# Some basic test coverage of asFillContainer() and asFillItem(). # Note that these expectations aren't as important as the e2e test coverage # we'll have via bslib::card(), shiny::plotOutput(), shiny::uiOutput() # (those will also be testing the client-side CSS) test_that("asFillContainer() and asFillItem()", { x <- bindFillRole(div(), container = TRUE) expect_true( doRenderTags(x) == "
" ) x <- bindFillRole(div(), item = TRUE) expect_true( doRenderTags(x) == "" ) x <- bindFillRole(x, container = TRUE, overwrite = TRUE) expect_true( doRenderTags(x) == "" ) x <- bindFillRole( div(span()), .cssSelector = "span", container = TRUE, item = TRUE ) expect_true( doRenderTags(x) == "