# -- integration tests: real-world patterns -------------------------------- test_that("full HTML document structure renders correctly", { doc <- tags$html( tags$head( tags$title("My Page"), tags$meta(charset = "utf-8"), tags$link(rel = "stylesheet", href = "style.css") ), tags$body( tags$h1("Hello"), tags$p("Welcome") ) ) html <- render(doc) expect_match(html, "^") expect_match(html, "$") expect_match(html, "