8000 fix: address various check/test/CI issues by cpsievert · Pull Request #2441 · plotly/plotly.R · GitHub
[go: up one dir, main page]

Skip to content

fix: address various check/test/CI issues #2441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 5, 2025
Next Next commit
Follow up to #1999: update test expectation to not expect warning
  • Loading branch information
cpsievert committed Jun 5, 2025
commit 70b459041f9b9bfb70583cad38a9c9043288ffa8
3 changes: 1 addition & 2 deletions tests/testthat/test-plotly.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ test_that("Character strings correctly mapped to a positional axis", {
letters <- LETTERS[as.numeric(sort(as.character(1:26)))]
p <- plot_ly(x = letters, y = seq_along(letters)) %>%
add_bars(color = rep(c("a1", "a2"), length.out = 26))
l <- expect_warning(expect_traces(p, 2, "character-axis"),
regexp = "minimal value for n is 3")
l <- expect_traces(p, 2, "character-axis")
expect_equivalent(l$layout$xaxis$type, "category")
expect_equivalent(l$layout$xaxis$categoryorder, "array")
expect_equivalent(l$layout$xaxis$categoryarray, LETTERS)
Expand Down
0