-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
A method to check for page stability when shiny is not busy #1222
Conversation
Code Coverage Summary
Diff against main
Results for commit: 6fc8dc2 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 30 suites 3m 17s ⏱️ Results for commit 6fc8dc2. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Additional test case details
Results for commit f605ab1 ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!! @vedhav minor comment with before merging into main
test with example.
pkgload::load_all()
data <- teal_data()
data <- within(data, {
IRIS <- iris
MTCARS <- mtcars
})
app_driver <- TealAppDriver$new(
data = data,
modules = modules(
example_module(datanames = "IRIS"),
example_module(datanames = "MTCARS")
)
)
# View the app in one window
app_driver$view()
# Here this will wait for 2 seconds stability period, During this time manually make changes to the app before 2 seconds and see if the R session is being blocked. If it is blocked the implementation is proper.
app_driver$.__enclos_env__$private$wait_for_page_stability(stability_period = 20000)
Introduces a private method for
TealAppDriver
calledwait_for_page_stability
which blocks the R process by sleeping until the page is unchanged till the stability period.This is used in two places:
This should potentially fix the CI errors in tmg and tmc.
Error in tmg:
Error in tmc: