We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f9096 commit da72b71Copy full SHA for da72b71
tests/testthat/test-plotly-symbol.R
@@ -50,7 +50,7 @@ test_that("Formula resulting in logical vector works", {
50
test_that("Can specify a scale manually", {
51
pal <- c("1" = "cross", "0" = "diamond")
52
p <- plot_ly(mtcars, x = ~mpg, y = ~disp, symbol = ~factor(vs), symbols = pal)
53
- l <- expect_traces(p, 2, "symbol-manual")
+ l <- expect_warning(expect_traces(p, 2, "symbol-manual"), "maximum of 6 discrete values")
54
markers <- lapply(l$data, "[[", "marker")
55
expected <- setNames(pal[sapply(l$data, "[[", "name")], NULL)
56
expect_equivalent(expected, sapply(markers, "[[", "symbol"))
0 commit comments