cf [/tests/testthat/test-plots.R#L92-L158](https://github.com/cran/psborrow/blob/f89abd290e6df1d43a85fbbc028104b57c65cf47/tests/testthat/test-plots.R#L92-L158) ggplot2 is removing the labels component we are testing against. https://github.com/tidyverse/ggplot2/issues/6290 Solution could be to use the new `get_labs()` https://github.com/tidyverse/ggplot2/pull/6078 eg ```r p <- ggplot(mpg, aes(displ, hwy)) + geom_point(aes(colour = drv, shape = drv)) get_labs(p) ```