Skip to content

Commit

Permalink
fix: threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
ESCRI11 committed May 16, 2024
1 parent fb33422 commit 0745330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-snapshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ test_that("example data loads with no error",{
App$wait_for_idle(duration = 3000, timeout = duration)
}

App$expect_screenshot(cran = TRUE, name = paste0(board, "_", tab), threshold = 10, selector = "viewport", threshold = 40)
App$expect_screenshot(cran = TRUE, name = paste0(board, "_", tab), threshold = 40, selector = "viewport")
})
} else {
App$wait_for_idle(duration = 3000)
App$expect_screenshot(cran = TRUE, name = board, threshold = 10, selector = "viewport", threshold = 40)
App$expect_screenshot(cran = TRUE, name = board, threshold = 40, selector = "viewport")
}
})
})

0 comments on commit 0745330

Please sign in to comment.