Skip to content

Commit 7cf111a

Browse files
committed
fix: using htmltools instead
1 parent 3d95be6 commit 7cf111a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: pw
22
Title: Test your 'golem' Apps with 'Playwright'
3-
Version: 0.0.0.9008
3+
Version: 0.0.0.9009
44
Authors@R:
55
person("Colin", "Fay", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0001-7343-1846"))
@@ -12,9 +12,9 @@ Imports:
1212
fs,
1313
golem,
1414
here,
15+
htmltools,
1516
pkgload,
1617
processx,
17-
rlang,
1818
uuid,
1919
withr
2020
Encoding: UTF-8

R/with_test_id.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#' @return A shiny tag with the data-testid attribute added
77
#' @export
88
with_test_id <- function(tag, test_id){
9-
shiny::tagAppendAttributes(
9+
htmltools::tagAppendAttributes(
1010
tag,
1111
`data-testid` = test_id
1212
)

tests/testthat/test-with_test_id.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
test_that("with_test_id works", {
2-
tag <- shiny::div()
2+
tag <- htmltools::div()
33
test_id <- "test-id"
44
tag_with_test_id <- with_test_id(tag, test_id)
55
expect_equal(

0 commit comments

Comments
 (0)