@@ -48,6 +48,7 @@ app_driver_tm_t_pp_laboratory <- function() {
4848testthat :: test_that(" e2e - tm_t_pp_laboratory: Module initializes in teal without errors and produces table output." , {
4949 skip_if_too_deep(5 )
5050 app_driver <- app_driver_tm_t_pp_laboratory()
51+ app_driver $ wait_for_idle()
5152 app_driver $ expect_no_shiny_error()
5253 app_driver $ expect_no_validation_error()
5354 testthat :: expect_true(
@@ -108,8 +109,10 @@ testthat::test_that(
108109 {
109110 skip_if_too_deep(5 )
110111 app_driver <- app_driver_tm_t_pp_laboratory()
112+ app_driver $ wait_for_idle()
111113 table_before <- app_driver $ get_active_module_table_output(" lab_values_table" , which = 2 )
112114 app_driver $ set_active_module_input(" patient_id" , " AB12345-USA-1-id-261" )
115+ app_driver $ wait_for_idle()
113116 testthat :: expect_false(
114117 identical(
115118 table_before ,
@@ -145,8 +148,10 @@ testthat::test_that(
145148 {
146149 skip_if_too_deep(5 )
147150 app_driver <- app_driver_tm_t_pp_laboratory()
151+ app_driver $ wait_for_idle()
148152 table_before <- app_driver $ get_active_module_table_output(" lab_values_table" , which = 2 )
149153 app_driver $ set_active_module_input(" paramcd-dataset_ADLB_singleextract-select" , " STUDYID" )
154+ app_driver $ wait_for_idle()
150155 testthat :: expect_false(
151156 identical(
152157 table_before ,
@@ -182,8 +187,10 @@ testthat::test_that(
182187 {
183188 skip_if_too_deep(5 )
184189 app_driver <- app_driver_tm_t_pp_laboratory()
190+ app_driver $ wait_for_idle()
185191 table_before <- app_driver $ get_active_module_table_output(" lab_values_table" , which = 2 )
186192 app_driver $ set_active_module_input(" param-dataset_ADLB_singleextract-select" , " SEX" )
193+ app_driver $ wait_for_idle()
187194 testthat :: expect_false(
188195 identical(
189196 table_before ,
@@ -222,8 +229,10 @@ testthat::test_that(
222229 {
223230 skip_if_too_deep(5 )
224231 app_driver <- app_driver_tm_t_pp_laboratory()
232+ app_driver $ wait_for_idle()
225233 table_before <- app_driver $ get_active_module_table_output(" lab_values_table" , which = 2 )
226234 app_driver $ set_active_module_input(" timepoints-dataset_ADLB_singleextract-select" , " AGE" )
235+ app_driver $ wait_for_idle()
227236 testthat :: expect_false(
228237 identical(
229238 table_before ,
@@ -261,8 +270,10 @@ testthat::test_that(
261270 {
262271 skip_if_too_deep(5 )
263272 app_driver <- app_driver_tm_t_pp_laboratory()
273+ app_driver $ wait_for_idle()
264274 table_before <- app_driver $ get_active_module_table_output(" lab_values_table" , which = 2 )
265275 app_driver $ set_active_module_input(" avalu_var-dataset_ADLB_singleextract-select" , " SEX" )
276+ app_driver $ wait_for_idle()
266277 testthat :: expect_false(
267278 identical(
268279 table_before ,
@@ -300,8 +311,10 @@ testthat::test_that(
300311 {
301312 skip_if_too_deep(5 )
302313 app_driver <- app_driver_tm_t_pp_laboratory()
314+ app_driver $ wait_for_idle()
303315 table_before <- app_driver $ get_active_module_table_output(" lab_values_table" , which = 2 )
304316 app_driver $ set_active_module_input(" aval_var-dataset_ADLB_singleextract-select" , " AGE" )
317+ app_driver $ wait_for_idle()
305318 testthat :: expect_false(
306319 identical(
307320 table_before ,
@@ -337,8 +350,10 @@ testthat::test_that(
337350 {
338351 skip_if_too_deep(5 )
339352 app_driver <- app_driver_tm_t_pp_laboratory()
353+ app_driver $ wait_for_idle()
340354 table_before <- app_driver $ get_active_module_table_output(" lab_values_table" , which = 2 )
341355 app_driver $ set_active_module_input(" anrind-dataset_ADLB_singleextract-select" , " AGEU" )
356+ app_driver $ wait_for_idle()
342357 testthat :: expect_false(
343358 identical(
344359 table_before ,
0 commit comments