shinytest with dashboard

I am trying to set up shinytest with an app that uses shinydashboard.
How can I switch to a specific tabItem? The recorder doesn' change anything it only records the sidepanel modifications but doesn't actually change the view...
i.e. the only command I found is app$setInputs(sidebarItemExpanded = "name")
I guess, I am looking for something like tabsetPanel, only for shinydashboard.
Could you please guide me the correct doc?
Thx,
B

Just to follow-up on this, there's an issue being worked on now in shinytest's github related to this problem.

1 Like

This wasn't very obvious before, but sidebarMenu() needs an id in order for shinytest to record any click events on the sidebar. We've made this a little more clear in the documentation -- https://rstudio.github.io/shinydashboard/behavior.html#testing-with-shinytest

Hopefully that helps with your use case?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.