Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
zsigmas committed Jan 28, 2025
1 parent 223279e commit f34e213
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/testthat/test-bar_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -463,17 +463,14 @@ shiny_test <- {
expect_true(test)
}

app$get_screenshot(
file = "_snaps/test_tooltip.png"
)



# Starts hidden
expect_opacity(0, "hidden")
# Move in
ch$Input$dispatchMouseEvent(type = "mouseMoved", x = rect_1[1], y = rect_1[2], button = "left")
expect_opacity(1, "visible")
app$get_screenshot(
file = "_snaps/test_tooltip.png"
)
# Move out
ch$Input$dispatchMouseEvent(type = "mouseMoved", x = 0, y = 0, button = "left")
expect_opacity(0, "hidden")
Expand Down

0 comments on commit f34e213

Please sign in to comment.