test_that("header rows wrapped in thead when at top", { ht <- hux(matrix(c("a", "b", "c", "d"), 2, 2), add_colnames = FALSE) header_rows(ht)[1] <- TRUE html <- to_html(ht) expect_true(grepl("", html, fixed = TRUE)) expect_true(grepl("
", html, fixed = TRUE)) expect_true(grepl("