Skip to content

Commit

Permalink
Skip visual tests for rich text on Windows and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkox committed Jan 31, 2024
1 parent 435752f commit 52f302a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-richtext.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ library(ggplot2)

test_that("geom_fit_text() plots with rich text", {

skip_if_os(c("windows", "linux"))

expect_doppelganger("Basic rich text", {
ggplot(animals_rich, aes(x = type, y = flies, label = animal)) +
geom_tile(fill = "white", colour = "black") +
Expand Down Expand Up @@ -58,6 +60,8 @@ test_that("geom_fit_text() plots with rich text", {

test_that("geom_bar_text() plots with rich text", {

skip_if_os(c("windows", "linux"))

expect_doppelganger("Basic bar plot with rich text", {
ggplot(beverages_rich, aes(x = beverage, y = proportion, label = ingredient,
fill = ingredient)) +
Expand Down

0 comments on commit 52f302a

Please sign in to comment.