Skip to content

Fixes TealAppDriver & implement regression tests#1559

Merged
averissimo merged 47 commits into
mainfrom
1535-regression
Jul 24, 2025
Merged

Fixes TealAppDriver & implement regression tests#1559
averissimo merged 47 commits into
mainfrom
1535-regression

Conversation

@averissimo

@averissimo averissimo commented Jul 14, 2025

Copy link
Copy Markdown
Contributor

Pull Request

Fixes #1535

Changes description

  • Remove testthat::skip("chromium") from e2e tests
  • Ensure all e2e pass
  • Check that "is.null()" tests are not looking for removed HTML elements from UI/UX refactor
  • Add regression tests:
    • Sidebar visibility
    • Modal popping (already covered in existing tests)
    • Position of filter icons once collapsed

@averissimo averissimo changed the title WIP: Fixes TealAppDriver & implement regression tests Fixes TealAppDriver & implement regression tests Jul 16, 2025
@averissimo
averissimo marked this pull request as ready for review July 17, 2025 07:56
@github-actions

github-actions Bot commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

Unit Tests Summary

  1 files   25 suites   2m 6s ⏱️
266 tests 210 ✅ 56 💤 0 ❌
451 runs  395 ✅ 56 💤 0 ❌

Results for commit a831f25.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

Unit Test Performance Difference

Test Suite $Status$ Time on main $±Time$ $±Tests$ $±Skipped$ $±Failures$ $±Errors$
module_teal 💚 $107.05$ $-5.47$ $0$ $0$ $0$ $0$
Additional test case details
Test Suite $Status$ Time on main $±Time$ Test Case
shinytest2-data_summary 👶 $+0.09$ e2e_data_summary_UI_can_be_collpased_and_expanded_bslib_regression_
shinytest2-filter_panel 👶 $+0.07$ e2e_filter_panel_UI_can_be_collpased_and_expanded_bslib_regression_
shinytest2-filter_panel 💀 $0.01$ $-0.01$ e2e_filtering_a_module_specific_filter_is_not_refected_in_other_unshared_modules
shinytest2-filter_panel 👶 $+0.09$ e2e_filtering_a_module_specific_filter_is_not_reflected_in_other_unshared_modules
shinytest2-modules 💀 $0.01$ $-0.01$ e2e_all_the_nested_teal_modules_are_initiated_as_expected
shinytest2-modules 👶 $+0.08$ e2e_nested_modules_layout_in_navigation_respect_order_and_keeps_group_names
shinytest2-show-rcode 👶 $+0.08$ e2e_Module_with_Show_R_Code_has_code
shinytest2-show-rcode 👶 $+0.08$ e2e_Module_with_Show_R_Code_has_modal_with_dismiss_and_copy_to_clipboard_buttons
shinytest2-show-rcode 👶 $+0.09$ e2e_Module_with_Show_R_Code_initializes_with_visible_button
shinytest2-show-rcode 💀 $0.02$ $-0.02$ e2e_teal_app_initializes_with_Show_R_Code_modal
shinytest2-teal_data_module 👶 $+0.06$ e2e_datasets_from_teal_data_module_show_in_filter_panel
shinytest2-teal_data_module 💀 $0.02$ $-0.02$ e2e_teal_data_module_will_have_a_delayed_load_of_datasets
shinytest2-teal_data_module 💀 $0.01$ $-0.01$ e2e_teal_data_module_will_make_other_tabs_inactive_before_successful_data_load
shinytest2-wunder_bar 👶 $+0.07$ e2e_collapsing_wunderbar_hides_filter_and_data_summary
shinytest2-wunder_bar 👶 $+0.07$ e2e_initial_wunderbar_shows_filter_and_data_summary
shinytest2-wunder_bar 👶 $+0.08$ e2e_wunder_bar_srv_clicking_filter_icon_opens_filter_manager_modal
shinytest2-wunder_bar 👶 $+0.08$ e2e_wunder_bar_srv_clicking_snapshot_icon_opens_snapshot_manager_modal
shinytest2-wunder_bar 👶 $+0.07$ e2e_wunderbar_filter_and_data_summary_are_hidden_on_narrow_windows
shinytest2-wunder_bar 💀 $0.02$ $-0.02$ wunder_bar_srv_clicking_filter_icon_opens_filter_manager_modal
shinytest2-wunder_bar 💀 $0.01$ $-0.01$ wunder_bar_srv_clicking_snapshot_icon_opens_snapshot_manager_modal

Results for commit d589554

♻️ This comment has been updated with latest results.

@llrs-roche

Copy link
Copy Markdown
Contributor

I checked the tests added and I only found 2 bslib regression tests added about collapsing the data summary and the filters panel (no one about collapsing filters of an individual dataset). Not sure if we need to test for other things that might be tested on teal.slice but are modified by teal or some that are teal exclusive regarding bslib.

@llrs-roche llrs-roche left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work! Two very minor suggestions.

Given that insightsengineering/teal.slice#653 hasn't merged perhaps we should wait to merge but I give it the green light

Comment thread tests/testthat/test-shinytest2-filter_panel.R Outdated
Comment thread tests/testthat/test-shinytest2-filter_panel.R Outdated
Comment thread DESCRIPTION Outdated
averissimo and others added 13 commits July 23, 2025 14:18
Signed-off-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
Signed-off-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
Co-authored-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
Signed-off-by: Vedha Viyash <49812166+vedhav@users.noreply.github.com>
…ession

* origin/fix-test-ns@main:
  empty: trigger ci
  [skip style] [skip vbump] Restyle files
  Update R/TealAppDriver.R
  fix: make sure we assign the proper tab namespace based on the href
@averissimo
averissimo enabled auto-merge (squash) July 24, 2025 14:27
@averissimo
averissimo merged commit 78b13c9 into main Jul 24, 2025
24 checks passed
@averissimo
averissimo deleted the 1535-regression branch July 24, 2025 14:37
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement regression test

3 participants