test_that("dash_nav_refresh_button() returns a shiny tag/tagList", { btn <- dash_nav_refresh_button("refresh") expect_true(inherits(btn, c("shiny.tag", "shiny.tag.list"))) }) test_that("dash_nav_refresh_button() respects custom label", { btn <- dash_nav_refresh_button("refresh", label = "Reload Page") expect_match(as.character(btn), "Reload Page", fixed = TRUE) }) test_that("dash_nav_refresh_button() allows empty label (icon only)", { expect_no_error(dash_nav_refresh_button("refresh", label = "")) }) test_that("dash_nav_help_button() returns a shiny tag/tagList", { btn <- dash_nav_help_button("help") expect_true(inherits(btn, c("shiny.tag", "shiny.tag.list"))) }) test_that("dash_nav_help_button() respects custom label", { btn <- dash_nav_help_button("help", label = "Support") expect_match(as.character(btn), "Support", fixed = TRUE) }) test_that("dash_nav_item() wraps content in a nav-item li", { item <- dash_nav_item(shiny::tags$span("inner")) html <- as.character(item) expect_match(html, "nav-item", fixed = TRUE) expect_match(html, "", { result <- dash_user_menu(bs4Dash::dropdownMenu(type = "notifications")) html <- as.character(result) expect_match(html, "