@@ -35,13 +35,18 @@ testthat::test_that("e2e - tm_variable_browser: content is displayed correctly."
3535
3636 # Test tab name
3737 testthat :: expect_equal(
38- trimws(app_driver $ get_text(" #teal-teal_modules-active_tab > li .active" )),
38+ trimws(app_driver $ get_text(" #teal-teal_modules-active_tab .active" )),
3939 " Variable browser (e2e)"
4040 )
4141
4242 # Plot is visible
4343 testthat :: expect_true(
44- app_driver $ is_visible(app_driver $ active_module_element(" variable_plot-plot_out_main" ))
44+ app_driver $ is_visible(
45+ sprintf(
46+ " %s .shiny-plot-output" ,
47+ app_driver $ active_module_element(" variable_plot-plot_out_main" )
48+ )
49+ )
4550 )
4651
4752 # All datanames are available on the left sidebar
@@ -68,7 +73,7 @@ testthat::test_that("e2e - tm_variable_browser: Selecting 'treat variable as fac
6873
6974 # Categorical type have levels table in main output
7075 current_var <- trimws(app_driver $ get_text(
71- sprintf(" %s .nav li .active" , app_driver $ active_module_element(" ui_variable_browser" ))
76+ sprintf(" %s li .active" , app_driver $ active_module_element(" ui_variable_browser" ))
7277 ))
7378
7479 app_driver $ set_active_module_input(
@@ -100,7 +105,7 @@ testthat::test_that("e2e - tm_variable_browser: selection of categorical variabl
100105
101106 # Categorical type have levels table in main output
102107 current_var <- trimws(app_driver $ get_text(
103- sprintf(" %s .nav li .active" , app_driver $ active_module_element(" ui_variable_browser" ))
108+ sprintf(" %s li .active" , app_driver $ active_module_element(" ui_variable_browser" ))
104109 ))
105110
106111 categorical_selector <- app_driver $ active_module_element(
@@ -195,8 +200,6 @@ testthat::test_that("e2e - tm_variable_browser: changing plot setting encodings
195200 app_driver <- app_driver_tm_variable_browser()
196201
197202 # Test changing plot settings
198- testthat :: expect_false(app_driver $ is_visible(app_driver $ active_module_element(" ggplot_theme-selectized" )))
199-
200203 app_driver $ set_active_module_input(" ggplot_theme" , " bw" )
201204 app_driver $ expect_no_validation_error()
202205 app_driver $ set_active_module_input(" ggplot_theme" , " light" )
0 commit comments