diff --git a/tests/testthat/helper-HTML.R b/tests/testthat/helper-HTML.R
index 2f719c43c..3b9dac27c 100644
--- a/tests/testthat/helper-HTML.R
+++ b/tests/testthat/helper-HTML.R
@@ -86,5 +86,6 @@ getClassBound <- function(geom.class, position){
script.txt <- sprintf(
'document.getElementsByClassName("%s")[0].getBoundingClientRect().%s',
geom.class, position)
+ Sys.sleep(2)
runtime_evaluate(script=script.txt,return.value=TRUE)
}