@@ -14,36 +14,39 @@ app_driver_tm_missing_data <- function() {
1414 })
1515
1616 init_teal_app_driver(
17- data = data ,
18- modules = tm_missing_data(
19- label = " Missing data" ,
20- plot_height = c(600 , 400 , 5000 ),
21- plot_width = NULL ,
22- datanames = " all" ,
23- ggtheme = " gray" ,
24- ggplot2_args = list (
25- " Combinations Hist" = teal.widgets :: ggplot2_args(
26- labs = list (subtitle = " Plot produced by Missing Data Module" , caption = NULL )
17+ app = init(
18+ data = data ,
19+ modules = tm_missing_data(
20+ label = " Missing data" ,
21+ plot_height = c(600 , 400 , 5000 ),
22+ plot_width = NULL ,
23+ datanames = " all" ,
24+ ggtheme = " gray" ,
25+ ggplot2_args = list (
26+ " Combinations Hist" = teal.widgets :: ggplot2_args(
27+ labs = list (subtitle = " Plot produced by Missing Data Module" , caption = NULL )
28+ ),
29+ " Combinations Main" = teal.widgets :: ggplot2_args(labs = list (title = NULL ))
2730 ),
28- " Combinations Main" = teal.widgets :: ggplot2_args(labs = list (title = NULL ))
29- ),
30- pre_output = NULL ,
31- post_output = NULL
31+ pre_output = NULL ,
32+ post_output = NULL
33+ )
3234 ),
3335 timeout = 3000 ,
3436 seed = 1
3537 )
3638}
3739
3840test_that(" e2e - tm_missing_data: Initializes without errors" , {
39- testthat :: skip( " chromium " )
41+
4042 skip_if_too_deep(5 )
4143 app_driver <- app_driver_tm_missing_data()
4244
4345 app_driver $ expect_no_shiny_error()
4446
47+
4548 testthat :: expect_equal(
46- app_driver $ get_text(" #teal-teal_modules-active_tab .active " ),
49+ app_driver $ get_text(selector = " #teal-teal_modules-active_module_id > div.dropdown.nav-item-custom > div > ul > li > ul > li > a " ),
4750 " Missing data"
4851 )
4952
@@ -58,7 +61,7 @@ test_that("e2e - tm_missing_data: Initializes without errors", {
5861})
5962
6063test_that(" e2e - tm_missing_data: Default settings and visibility of the summary graph" , {
61- testthat :: skip( " chromium " )
64+
6265 skip_if_too_deep(5 )
6366 app_driver <- app_driver_tm_missing_data()
6467 # default summary tab
@@ -91,7 +94,7 @@ test_that("e2e - tm_missing_data: Default settings and visibility of the summary
9194})
9295
9396test_that(" e2e - tm_missing_data: Check default settings and visibility of the combinations graph and encodings" , {
94- testthat :: skip( " chromium " )
97+
9598 skip_if_too_deep(5 )
9699 app_driver <- app_driver_tm_missing_data()
97100
@@ -129,7 +132,7 @@ test_that("e2e - tm_missing_data: Check default settings and visibility of the c
129132})
130133
131134test_that(" e2e - tm_missing_data: Validate functionality and UI response for 'By Variable Levels'" , {
132- testthat :: skip( " chromium " )
135+
133136 skip_if_too_deep(5 )
134137 app_driver <- app_driver_tm_missing_data()
135138 # By variable levels
@@ -160,7 +163,7 @@ test_that("e2e - tm_missing_data: Validate functionality and UI response for 'By
160163})
161164
162165test_that(" e2e - tm_missing_data: Validate 'By Variable Levels' table values" , {
163- testthat :: skip( " chromium " )
166+
164167 skip_if_too_deep(5 )
165168 app_driver <- app_driver_tm_missing_data()
166169
0 commit comments