Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/testthat/test-shinytest2-tm_g_pp_vitals.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ testthat::test_that(
app_driver <- app_driver_tm_g_pp_vitals()

testthat::expect_equal(
app_driver$get_text("#teal-teal_modules-active_tab .active > a"),
app_driver$get_text(".teal-modules-wrapper .module-button.active"),
"Vitals"
)
testthat::expect_equal(
Expand Down Expand Up @@ -118,6 +118,7 @@ testthat::test_that("e2e - tm_g_pp_vitals: Deselecting patient_id column throws
app_driver$stop()
})

#fails
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try adding app_driver$wait_for_idle() after app_driver <- app_driver_tm_g_pp_vitals().
And also check how I fixed similar tests on the feature branch
https://github.com/insightsengineering/teal.modules.clinical/pull/1441/files#r2565145226

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually this was updated and it works, after trying the new teal version

testthat::test_that(
"e2e - tm_g_pp_vitals: Selecting valid paramcd and paramcd_levels_vals changes plot
and doesn't throw validation errors.",
Expand Down Expand Up @@ -170,6 +171,7 @@ testthat::test_that("e2e - tm_g_pp_vitals: Deselecting paramcd throws validation
app_driver$stop()
})

#fails
testthat::test_that("e2e - tm_g_pp_vitals: Selecting xaxis changes plot and doesn't throw validation errors.", {
skip_if_too_deep(5)
app_driver <- app_driver_tm_g_pp_vitals()
Expand Down Expand Up @@ -198,6 +200,7 @@ testthat::test_that("e2e - tm_g_pp_vitals: Deselecting xaxis column throws valid
app_driver$stop()
})

#fails
testthat::test_that("e2e - tm_g_pp_vitals: Selecting aval_var changes plot and doesn't throw validation errors.", {
skip_if_too_deep(5)
app_driver <- app_driver_tm_g_pp_vitals()
Expand Down
Loading