teal icon indicating copy to clipboard operation
teal copied to clipboard

[Feature Request]: Add manual (non-API based) process to interact with app for end-2-end testing

Open averissimo opened this issue 11 months ago • 0 comments

Feature description

Problem

{shinytest2} e2e tests are currently created around AppDriver$set_input that will make the necessary changes via javascript: Shiny.setInput function (within {chromote} session).

Current approach successfully tests the app, but it lacks the real interactions that users have with the app, that is:

  • Is the input being used visible / existing in the UI
  • Can the user interact with it

Idea

  • Add to API functions that find <input> elements and can modify value (triggering observe callbacks in R)
    • methods for filter panel interaction to modify filters (alternative to set_active_filter_selection)
    • methods to change encoding panel (alternative to set_module_input)

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • [X] I agree to follow this project's Contribution Guidelines.

Security Policy

  • [X] I agree to follow this project's Security Policy.

averissimo avatar Mar 21 '24 16:03 averissimo